/* ==========================================================================
   s11 — Book your free consultation
   Layout archetype: CENTERED multi-step form panel + a phone confirmation
   beside it (form-forward; the act of using it sells the UX). Deliberately
   differs from neighbours: s10 was a calm centered accordion (no device); s9 a
   split two-device handoff. Signature motion (ONE): the active step SLIDES +
   crossfades horizontally while the progress rail fills; the phone settles with
   a single gentle rotateY on entry. Transform/opacity only.
   No-JS: every step is shown stacked (a plain long form). The .is-js class
   (added by the inline script) switches to the single-step interactive mode.
   ========================================================================== */

#s11 .s11-head { max-width: var(--maxw-prose); margin-inline: auto; text-align: center; }
#s11 .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  justify-content: center;
  margin-bottom: var(--sp-3);
}
#s11 .eyebrow::before,
#s11 .eyebrow::after {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft));
}
#s11 .eyebrow::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }
#s11 .s11-title {
  font-size: var(--fs-h2);
  font-weight: 600; line-height: 1.08; letter-spacing: -0.01em;
  color: var(--ice); text-wrap: balance;
  margin-top: 0;
}
#s11 .s11-title .accent { color: var(--gold-bright); font-style: italic; font-weight: 500; }
#s11 .s11-lead {
  margin-top: var(--sp-3);
  color: var(--parchment-dim);
  font-size: var(--fs-lead);
  line-height: 1.5;
  text-wrap: pretty;
}

/* ----- Two-column shell: form left, phone right (stacks on mobile) ----- */
#s11 .s11-grid {
  margin-top: clamp(36px, 6vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
/* R2: the phone mockup beside the form was removed; the form now stands alone,
   centred in a single readable column. */
#s11 .s11-grid--solo {
  grid-template-columns: minmax(0, 1fr);
  max-width: 640px;
  margin-inline: auto;
}

/* ----- Form panel ----- */
#s11 .s11-formwrap {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(20px, 3.4vw, 36px);
  box-shadow: 0 30px 60px -34px rgba(0,0,0,0.7);
}
#s11 .s11-form { position: relative; }

/* ----- Steps area (R5: single list, all questions stacked) ----- */
#s11 .s11-steps { position: relative; }
#s11 .s11-step {
  border: 0; margin: 0; padding: 0; min-width: 0;
}
#s11 [hidden] { display: none !important; }

#s11 .s11-step__q {
  font-family: var(--font-serif); font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  color: var(--ice); padding: 0; line-height: 1.3;
}
#s11 .s11-step__hint {
  margin-top: 6px; color: var(--steel); font-size: 0.9rem;
}
#s11 .s11-label__opt { color: var(--steel); font-style: italic; font-size: 0.82em; }

/* Every question stacks, separated by a hairline. */
#s11 .s11-step:first-of-type { margin-top: var(--sp-2); }
#s11 .s11-step + .s11-step { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--hairline-soft); }

/* ----- Choices (checkbox / radio cards) ----- */
#s11 .s11-choices { margin-top: var(--sp-4); display: flex; flex-direction: column; gap: 10px; }
#s11 .s11-choices--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#s11 .s11-choices--row { flex-direction: row; flex-wrap: wrap; gap: 10px; }

#s11 .s11-choice {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out), transform .12s var(--ease-out);
}
#s11 .s11-choice:hover { border-color: var(--gold-soft); }
#s11 .s11-choice:active { transform: translateY(1px); }
#s11 .s11-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }

#s11 .s11-choice__box {
  flex: 0 0 auto; width: 19px; height: 19px;
  border: 1.5px solid var(--steel); border-radius: 5px;
  display: grid; place-items: center;
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
}
#s11 .s11-choice--radio .s11-choice__box { border-radius: 50%; }
#s11 .s11-choice__box::after {
  content: ""; opacity: 0; transition: opacity .15s var(--ease-out);
}
#s11 .s11-choice:not(.s11-choice--radio) .s11-choice__box::after {
  width: 9px; height: 5px; margin-top: -2px;
  border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg);
  transform: rotate(-45deg);
}
#s11 .s11-choice--radio .s11-choice__box::after {
  width: 9px; height: 9px; border-radius: 50%; background: var(--bg);
}
#s11 .s11-choice__txt { color: var(--ice); font-size: 0.96rem; line-height: 1.3; }

/* checked state */
#s11 .s11-choice input:checked ~ .s11-choice__box {
  border-color: var(--gold-bright); background: var(--gold-bright);
}
#s11 .s11-choice input:checked ~ .s11-choice__box::after { opacity: 1; }
#s11 .s11-choice:has(input:checked) {
  border-color: var(--gold-bright);
  background: rgba(196,162,101,0.10);
}
/* keyboard focus ring on the custom control */
#s11 .s11-choice input:focus-visible ~ .s11-choice__box {
  outline: 2px solid var(--gold-bright); outline-offset: 3px;
}

#s11 .s11-choice--chip { padding: 9px 16px; }

/* ----- Text fields ----- */
#s11 .s11-field { margin-top: var(--sp-4); }
#s11 .s11-field:first-of-type { margin-top: var(--sp-4); }
#s11 .s11-label {
  display: block; margin-bottom: 7px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--steel);
}
#s11 .s11-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--ice);
  font-family: var(--font-serif); font-size: 1rem;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
#s11 .s11-input::placeholder { color: var(--steel); }
#s11 .s11-input:focus-visible {
  outline: none; border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(196,162,101,0.22);
}
#s11 .s11-textarea { resize: vertical; min-height: 96px; font-family: var(--font-serif); line-height: 1.5; }
#s11 .s11-count { margin: 6px 0 0; text-align: right; color: var(--steel); font-size: 0.8rem; }
/* date input legibility on dark */
#s11 input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.8); cursor: pointer; }

/* date + time side by side; stack on narrow screens */
#s11 .s11-datetime {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
#s11 .s11-datetime .s11-field { margin-top: var(--sp-4); }

/* native select styled to match the text inputs, with a custom caret */
#s11 .s11-select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  cursor: pointer;
  padding-right: 38px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%236E7684' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
#s11 .s11-select option { color: #111; }

/* ----- "At your place" address expand + autofill suggestions ----- */
#s11 .s11-address {
  margin-top: var(--sp-3);
  position: relative;
  padding: 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: rgba(196,162,101,0.06);
}
#s11 .s11-address .s11-step__hint { margin-top: 8px; }
#s11 .s11-address__list {
  position: absolute;
  left: 14px; right: 14px;
  z-index: 5;
  margin: 2px 0 0;
  padding: 4px;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.8);
  max-height: 220px; overflow: auto;
}
#s11 .s11-address__opt {
  padding: 9px 11px; border-radius: 6px;
  font-family: var(--font-serif); font-size: 0.9rem; color: var(--ice);
  cursor: pointer;
}
#s11 .s11-address__opt:hover,
#s11 .s11-address__opt:focus-visible {
  background: rgba(196,162,101,0.14); outline: none;
}

/* ----- Inline validation ----- */
#s11 .s11-error {
  margin-top: 8px;
  color: #E89B9B; font-size: 0.85rem;
  font-family: var(--font-mono); letter-spacing: 0.2px;
}

/* ----- Submit (single button at the foot of the list form) ----- */
#s11 .s11-nav {
  margin-top: var(--sp-6);
  display: flex; align-items: center; gap: 12px;
}
#s11 .s11-submit { margin-left: auto; }

/* ----- Success state ----- */
#s11 .s11-done {
  text-align: center;
  padding: var(--sp-4) var(--sp-2);
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
#s11 .s11-done.is-in { opacity: 1; transform: none; }
#s11 .s11-done__tick {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--gold-bright);
  margin-bottom: var(--sp-3);
}
#s11 .s11-done__tick::after {
  content: ""; width: 16px; height: 9px; margin-top: -3px;
  border-left: 2.5px solid var(--gold-bright); border-bottom: 2.5px solid var(--gold-bright);
  transform: rotate(-45deg);
}
#s11 .s11-done__title { font-family: var(--font-serif); font-size: 1.35rem; color: var(--ice); }
#s11 .s11-done__txt { margin-top: var(--sp-2); color: var(--parchment-dim); max-width: 34ch; margin-inline: auto; line-height: 1.55; }

/* visually-hidden helper for a label we don't want shown */
#s11 .s11-vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   PHONE confirmation card
   ========================================================================== */
#s11 .s11-scene { perspective-origin: 50% 45%; }
#s11 .s11-confirm { gap: 10px; }
#s11 .s11-confirm__head {
  display: flex; align-items: center; gap: 11px;
  padding-bottom: 11px; border-bottom: 1px solid var(--hairline-soft);
}
#s11 .s11-confirm__logo {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px;
  background-color: var(--gold-bright);
  -webkit-mask: var(--logo-mask) center / 78% no-repeat;
          mask: var(--logo-mask) center / 78% no-repeat;
}
#s11 .s11-confirm__brand { font-family: var(--font-serif); font-size: 0.82rem; color: var(--ice); line-height: 1.1; }
#s11 .s11-confirm__sub { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--steel); margin-top: 3px; }

#s11 .s11-confirm__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
#s11 .s11-confirm__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
#s11 .s11-confirm__k { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--steel); flex: 0 0 auto; }
#s11 .s11-confirm__v {
  font-family: var(--font-serif); font-size: 0.8rem; color: var(--ice);
  text-align: right; line-height: 1.25;
  transition: color .3s var(--ease-out);
}

#s11 .s11-confirm__status {
  margin-top: auto;
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px;
  background: rgba(168,200,224,0.05);
  border: 1px solid var(--hairline-soft);
  border-radius: 10px;
}
#s11 .s11-confirm__statustick {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--steel);
  display: grid; place-items: center;
  transition: border-color .35s var(--ease-out), background .35s var(--ease-out);
}
#s11 .s11-confirm__statustick::after {
  content: ""; width: 7px; height: 4px; margin-top: -1px;
  border-left: 2px solid var(--steel); border-bottom: 2px solid var(--steel);
  transform: rotate(-45deg);
  transition: border-color .35s var(--ease-out);
}
#s11 .s11-confirm__statustxt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--steel); }

#s11 .s11-confirm__status.is-confirmed { border-color: rgba(59,208,122,0.4); background: rgba(59,208,122,0.08); }
#s11 .s11-confirm__status.is-confirmed .s11-confirm__statustick { border-color: var(--green-live); background: rgba(59,208,122,0.15); }
#s11 .s11-confirm__status.is-confirmed .s11-confirm__statustick::after { border-color: var(--green-live); }
#s11 .s11-confirm__status.is-confirmed .s11-confirm__statustxt { color: var(--green-live); }

#s11 .s11-confirm__foot { font-family: var(--font-serif); font-size: 0.72rem; color: var(--steel); text-align: center; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  #s11 .s11-grid {
    grid-template-columns: 1fr;
    gap: clamp(28px, 8vw, 44px);
  }
  /* phone first visually would crowd; keep form first, phone below, smaller */
  #s11 .s11-aside { order: 2; }
  #s11 .s11-phone { width: min(230px, 60vw); }
}

@media (max-width: 560px) {
  #s11 .s11-formwrap { padding: 18px 16px; }
  #s11 .s11-choices--grid { grid-template-columns: 1fr; }
  #s11 .s11-datetime { grid-template-columns: 1fr; gap: 0; }
  #s11 .s11-nav { gap: 10px; }
  #s11 .s11-nav .btn { padding-inline: 18px; }
  #s11 .s11-submit { width: 100%; margin-left: 0; }
}

/* ==========================================================================
   REDUCED MOTION — keep the step logic, drop the slide; instant swaps.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  #s11 .s11-done,
  #s11 .s11-confirm__v,
  #s11 .s11-confirm__status,
  #s11 .s11-confirm__statustick,
  #s11 .s11-confirm__statustick::after {
    transition: none !important;
  }
  #s11 .s11-done { opacity: 1; transform: none; }
}
