/* contact.html only: interest selector preview, left of the waiting-list form.
   The page stays two columns at ≥700px, whether the inquiry form is open or
   closed: left = Quick question, right = Join the waiting list card with the
   inquiry form inside it. Below 700px the waitlist column stacks first.
   The sticky header must not cover #form on hash jump. */
#form{
  scroll-margin-top:160px;
}

/* Nested #form.form otherwise inherits .v2 .form{padding:48px}, which ate the
   already-split column and crushed .row fields to ~65px. The outer .wl-card
   already provides padding. */
.wl-interest-layout #form{
  margin-top:0;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
  min-width:0;
  max-width:100%;
  width:100%;
  box-sizing:border-box;
}
.wl-interest-layout #form .row,
.wl-interest-layout #form .field,
.wl-interest-layout #form input,
.wl-interest-layout #form select,
.wl-interest-layout #form textarea{
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
#f-interested{width:100%;max-width:100%;box-sizing:border-box}

.wl-card{
  container-type:inline-size;
  container-name:wl-card;
}

.wl-interest-layout{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
  align-items:start;
  margin-top:20px;
  min-width:0;
  width:100%;
}

/* Side-by-side photo | form only when the preview is open and the full-width
   card can actually fit ~350px + ~400px + gap. Otherwise stack. */
@container wl-card (min-width:820px){
  .wl-interest-layout:has(#wl-cat-dialog:not([hidden])){
    grid-template-columns:minmax(350px,1fr) minmax(400px,1.15fr);
    gap:28px;
  }
}

/* Without container queries, keep the photo stacked above the form so the
   right-hand column cannot overflow at tablet/desktop widths. */

.wl-cat-dialog{
  box-sizing:border-box;
  background:#FFFEF8;
  color:#292b30;
  border:1px solid rgba(176,138,74,.28);
  border-radius:16px;
  padding:20px 20px 22px;
  max-width:100%;
  min-width:0;
}
.wl-cat-dialog[hidden]{display:none}
.wl-cat-close{
  float:right;
  margin:0 0 8px 12px;
  padding:8px 12px;
  min-height:44px;
  border:1px solid #b7b4ac;
  border-radius:8px;
  background:#fff;
  color:#141518;
  font:600 14px Inter,system-ui,sans-serif;
  cursor:pointer;
}
.wl-cat-close:focus-visible{outline:2px solid #141518;outline-offset:2px}
.wl-cat-dialog h3{
  margin:0 0 12px;
  font-family:var(--serif);
  font-weight:500;
  font-size:clamp(22px,2.4vw,28px);
  line-height:1.2;
  color:#141518;
}
.wl-cat-figure{margin:0 0 14px;max-width:100%}
.wl-cat-figure img{
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:min(70vh,720px);
  object-fit:contain;
  background:#f4f3ee;
}
.wl-cat-dialog p#wl-cat-desc{
  margin:0 0 12px;
  max-width:40em;
  font-size:15px;
  line-height:1.55;
  color:#292b30;
  overflow-wrap:anywhere;
}
.wl-cat-link-wrap{margin:0}
.wl-cat-litter{color:#141518;font-weight:600;font-size:15px}
.wl-newtab{font-weight:500;font-size:13px;color:#5b5f66}

@media (min-width:900px){
  .wl-cat-dialog{position:sticky;top:110px}
  .wl-cat-figure img{max-height:min(75vh,800px)}
}
@media (max-width:899px){
  .wl-interest-layout,
  .wl-interest-layout:has(#wl-cat-dialog:not([hidden])){
    grid-template-columns:1fr;
    gap:20px;
  }
  .wl-cat-dialog{padding:16px 14px 18px;position:static}
  .wl-cat-figure img{max-height:min(60vh,560px);margin-inline:auto}
  .wl-interest-layout #form .row{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  .wl-cat-dialog{transition:none}
}

/* Default questions | waitlist split starts at tablet width, not 900px.
   Two columns at ≥700px stay in place with the form open or closed.
   Below 700px, stack with the waitlist form first and questions below. */
@media (min-width:700px){
  .forms{grid-template-columns:minmax(0,5fr) minmax(0,7fr)}
}
@media (max-width:699px){
  .forms{grid-template-columns:1fr}
  .forms > .wl-card{order:-1}
  .forms > .forms-left{order:1}
}

/* $50 waiting-list fee pay buttons on the inquiry form.
   Visual match for the Venya .pay-method-pick row (same colors, type, sizes). */
#form .wl-fee-pay{margin:24px 0 0}
#form .wl-fee-pay-title{
  margin:0 0 10px;
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:22px;
  font-weight:500;
  line-height:1.2;
  color:#141518;
}
#form .wl-fee-pay .pay-methods{
  display:flex;
  flex-wrap:nowrap;
  gap:10px;
  align-items:stretch;
  padding:0;
}
#form .wl-fee-pay .pay-method-pick{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex:1 1 0;
  min-width:0;
  min-height:44px;
  margin:0;
  padding:8px 14px;
  box-sizing:border-box;
  border:0;
  border-radius:0;
  cursor:pointer;
  font-family:Inter,system-ui,sans-serif;
  font-size:15px;
  font-weight:600;
  letter-spacing:0;
  line-height:1.2;
  text-transform:none;
  text-decoration:none;
  white-space:nowrap;
  appearance:none;
  -webkit-appearance:none;
}
#form .wl-fee-pay .pay-method-pick img{display:block;flex:none}
#form .wl-fee-pay .pay-method-pick--venmo{background:#008CFF;color:#0B0B0B}
#form .wl-fee-pay .pay-method-pick--venmo img{width:18px;height:18px}
#form .wl-fee-pay .pay-method-pick--cashapp{background:#00D632;color:#0B0B0B}
#form .wl-fee-pay .pay-method-pick--cashapp img{width:18px;height:18px}
#form .wl-fee-pay .pay-method-pick--card{background:#635BFF;color:#fff}
#form .wl-fee-pay .pay-method-pick--card img{width:28px;height:12px}
#form .wl-fee-pay .pay-method-pick:hover{filter:brightness(0.95)}
#form .wl-fee-pay .pay-method-pick:focus-visible{outline:2px solid #141518;outline-offset:3px}
#form .wl-fee-pay-note{
  margin:10px 0 0;
  font:13px/1.5 Inter,system-ui,sans-serif;
  color:#141518;
}
@media (max-width:390px){
  #form .wl-fee-pay .pay-method-pick{font-size:13px;padding:8px 8px;gap:6px}
  #form .wl-fee-pay .pay-method-pick--venmo img,
  #form .wl-fee-pay .pay-method-pick--cashapp img{width:14px;height:14px}
  #form .wl-fee-pay .pay-method-pick--card img{width:22px;height:10px}
}


/* Two-step waiting-list flow: details, then pay.
   Without JS, payment stays visible above Send inquiry (same as before). */
.wl-progress{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:10px 22px;
  margin:0 0 22px;
  padding:0;
  max-width:100%;
}
.wl-progress li{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0;
  font:500 14px/1.3 Inter,system-ui,sans-serif;
  color:#8a8d93;
}
.wl-progress li.is-current{
  color:#141518;
  font-weight:600;
}
.wl-progress li.is-done{
  color:#3d4046;
}
.wl-progress-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:50%;
  border:1px solid #c8c6be;
  background:#FFFEF8;
  font:600 12px/1 Inter,system-ui,sans-serif;
  color:#5b5f66;
  flex:none;
}
.wl-progress li.is-current .wl-progress-num{
  border-color:#141518;
  background:#141518;
  color:#FFFEF8;
}
.wl-progress li.is-done .wl-progress-num{
  border-color:#141518;
  background:#141518;
  color:#FFFEF8;
}
#form .wl-pay-status{
  margin:0 0 14px;
  max-width:40em;
  font:15px/1.5 Inter,system-ui,sans-serif;
  color:#292b30;
}
#form .wl-pay-status:empty{display:none}
#form .wl-submit-wrap{
  margin-top:28px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 24px;
}
.wl-step-cue{
  margin:0;
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:16px;
  font-weight:500;
  font-variant-numeric:lining-nums;
  line-height:1.3;
  color:#8a8d93;
}
.wl-step-cue-1{
  color:#141518;
  font-weight:600;
}
.wl-step-cue-2{
  color:#8a8d93;
  font-weight:500;
}
#inquiry.is-sent .wl-step-cue-1{
  color:#8a8d93;
  font-weight:500;
}
#inquiry.is-sent .wl-step-cue-2{
  color:#141518;
  font-weight:600;
}
.wl-btn-js{display:none}
html.js .wl-btn-js{display:inline}
html.js .wl-btn-nojs{display:none}
html.js #wl-step-pay:not(.is-open){display:none}
html.js #inquiry.is-sent #wl-step-details,
html.js #inquiry.is-sent #f-submit,
html.js #inquiry.is-sent #f-status{display:none}
html.js #inquiry.is-sent .wl-submit-wrap{
  margin-top:16px;
  justify-content:flex-end;
}
html.js #inquiry.is-sent #wl-step-pay{margin-top:0}
@media (max-width:520px){
  #form .wl-submit-wrap{
    flex-direction:column;
    align-items:flex-start;
  }
  html.js #inquiry.is-sent .wl-submit-wrap{justify-content:flex-start}
  .wl-step-cue{font-size:15px}
}
@media (max-width:390px){
  .wl-progress{gap:8px 16px}
  .wl-progress li{font-size:13px}
}

#form .wl-fee-pay .pay-method-notes{
  margin:12px 0 0;
  max-width:40em;
  color:#5E636B;
  font:13px/1.6 Inter,system-ui,sans-serif;
  font-weight:400;
  font-style:normal;
}
#form .wl-fee-pay .pay-note-line{display:block;margin:0}
.form-privacy{
  margin:12px 0 0;
  font:13px/1.5 Inter,system-ui,sans-serif;
  color:#5E636B;
}
.form-privacy a{color:inherit;text-decoration:underline;text-underline-offset:2px}


/* Mobile-only quick-question toggle above the waitlist (≤760px).
   Desktop/tablet above 760px is unchanged: this chrome stays hidden and
   #quick remains in .forms-left. */
.quick-mobile{display:none}
@media (max-width:760px){
  html.quick-mobile-ready .quick-mobile{
    display:block;
    order:-2;
    width:100%;
    min-width:0;
    margin:0;
  }
  html.quick-mobile-ready .forms{grid-template-columns:1fr}
  html.quick-mobile-ready .forms > .wl-card{order:-1}
  html.quick-mobile-ready .forms > .forms-left{order:1}
  html.quick-mobile-ready .forms > .forms-left:not(:has(:not([hidden]))){display:none}
  .quick-mobile-toggle{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    width:100%;
    box-sizing:border-box;
    min-height:44px;
    margin:0 0 16px;
    padding:10px 14px;
    border:1px solid rgba(20,21,24,.22);
    border-radius:2px;
    background:#FFFEF8;
    color:#141518;
    font:15px/1.4 Inter,system-ui,sans-serif;
    font-weight:500;
    text-align:left;
    cursor:pointer;
    appearance:none;
    -webkit-appearance:none;
  }
  .quick-mobile-toggle:focus-visible{outline:2px solid #141518;outline-offset:3px}
  .quick-mobile-mark{
    flex:none;
    font-size:20px;
    font-weight:400;
    line-height:1;
    color:#141518;
  }
  .quick-mobile-panel{margin:0 0 18px}
  .quick-mobile-panel[hidden]{display:none}
  #quick-mobile-panel #quick{
    margin:0;
    padding:20px 16px 18px;
    background:#FDF6E9;
    border:1px solid var(--line,#E2D6C3);
    border-radius:2px;
    box-shadow:none;
    box-sizing:border-box;
  }
}
@media (max-width:760px) and (prefers-reduced-motion:reduce){
  .quick-mobile-panel,
  #quick-mobile-panel #quick{
    transition:none !important;
    animation:none !important;
  }
}

/* Waitlist form opens smoothly when revealed by the toggle. */
html.js #form:not([hidden]){
  animation:wlFormOpen .35s ease;
}
@keyframes wlFormOpen{
  from{opacity:0;transform:translateY(-8px)}
  to{opacity:1;transform:none}
}
@media (prefers-reduced-motion:reduce){
  html.js #form:not([hidden]){animation:none}
}

#wl-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
#wl-toggle .chevron,
.contact-slim-toggle .chevron,
.quick-mobile-toggle .chevron,
.cinfo-toggle .chevron{
  display:inline-block;
  width:7px;
  height:7px;
  margin-left:2px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg);
  transform-origin:center;
  transition:transform .2s ease;
  flex:none;
}
#wl-toggle[aria-expanded="true"] .chevron,
.contact-slim-toggle[aria-expanded="true"] .chevron,
.quick-mobile-toggle[aria-expanded="true"] .chevron,
.cinfo-toggle[aria-expanded="true"] .chevron{
  transform:rotate(-135deg);
}
@media (prefers-reduced-motion:reduce){
  #wl-toggle .chevron,
  .contact-slim-toggle .chevron,
  .quick-mobile-toggle .chevron,
  .cinfo-toggle .chevron{transition:none}
}

/* Desktop: contact details stay under Quick questions. Mobile: after the waitlist card. */
@media (min-width:761px){
  .contact1 .forms{
    display:grid;
    grid-template-columns:minmax(0,5fr) minmax(0,7fr);
    grid-template-areas:"left wait";
    align-items:start;
  }
  .contact1 .forms > .forms-left{grid-area:left}
  .contact1 .forms > .wl-card{grid-area:wait}
  .contact1 .forms > .cinfo{grid-area:cinfo;margin-top:20px;text-align:left}
  .contact1 .cinfo-toggle{display:none}
  .contact1 .forms > .quick-mobile{display:none}
}
@media (max-width:760px){
  .contact1 .forms{
    display:flex;
    flex-direction:column;
  }
  .contact1 .forms > .quick-mobile{order:0}
  .contact1 .forms > .forms-left{order:4}
  .contact1 .forms > .wl-card{order:1}
  .contact1 .forms > .cinfo-toggle{order:2}
  .contact1 .forms > .cinfo{order:3;margin-top:12px}

  .contact-slim-toggle,
  .quick-mobile-toggle,
  .cinfo-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    width:auto;
    max-width:100%;
    min-height:44px;
    margin:0 0 12px;
    padding:8px 12px;
    box-sizing:border-box;
    border:1px solid rgba(20,21,24,.22);
    border-radius:2px;
    background:#FFFEF8;
    color:#141518;
    font:15px/1.3 Inter,system-ui,sans-serif;
    font-weight:500;
    text-align:left;
    cursor:pointer;
    appearance:none;
    -webkit-appearance:none;
  }
  .quick-mobile-toggle{width:auto}
  html.quick-mobile-ready .quick-mobile-toggle{width:auto}
  .cinfo-toggle:focus-visible,
  .quick-mobile-toggle:focus-visible{outline:2px solid #141518;outline-offset:3px}
}

@media (max-width:760px){
  html.quick-mobile-ready .contact1 .forms > .quick-mobile{order:0}
  html.quick-mobile-ready .contact1 .forms > .wl-card{order:1}
  html.quick-mobile-ready .contact1 .forms > .cinfo-toggle{order:2}
  html.quick-mobile-ready .contact1 .forms > .cinfo{order:3}
  html.quick-mobile-ready .contact1 .forms > .forms-left{order:4}
}

/* Required-field errors (waiting list + quick question) */
.form .is-invalid:not(fieldset):not([type=checkbox]){border-color:#b3261e !important;box-shadow:0 0 0 1px #b3261e;border-radius:0}
.form fieldset.is-invalid > legend{color:#b3261e}
.form .check input.is-invalid{outline:2px solid #b3261e;outline-offset:2px}
.form .check input.is-invalid + span{color:#b3261e}
.form .form-errors{margin:0 0 14px;padding:10px 12px;border:1px solid #b3261e;border-radius:0;background:#fff}
