/* =====================================================================
   Schedule form — Typeform-style multi-step intake
   ===================================================================== */

:root {
  --sf-bg-0:     #0A0F12;
  --sf-bg-1:     #11181D;
  --sf-bg-2:     #1A2229;
  --sf-fg:       #F2F4F6;
  --sf-fg-mute:  #A6B0B8;
  --sf-border:   rgba(255,255,255,0.10);
  --sf-border-hi:rgba(255,255,255,0.32);
  --sf-accent:   #B8956A;
  --sf-accent-2: #E8C99A;
  --sf-card:     rgba(20,28,34,0.55);
  --sf-card-hi:  rgba(28,38,46,0.75);
  --sf-error:    #E26C5A;
}

html, body { height: 100%; }
body.sf-body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(184,149,106,0.05) 0%, transparent 70%),
    repeating-linear-gradient(135deg,
      transparent 0px,
      transparent 22px,
      rgba(255,255,255,0.018) 22px,
      rgba(255,255,255,0.018) 23px,
      transparent 24px,
      transparent 60px,
      rgba(0,0,0,0.30) 60px,
      rgba(0,0,0,0.30) 64px
    ),
    linear-gradient(135deg, var(--sf-bg-0) 0%, var(--sf-bg-1) 50%, var(--sf-bg-2) 100%);
  background-attachment: fixed;
  color: var(--sf-fg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
body.sf-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(184,149,106,0.07), transparent 35%),
    radial-gradient(circle at 88% 90%, rgba(80,140,170,0.05), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.sf-top {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sf-fg-mute);
}
.sf-top a { color: var(--sf-fg-mute); text-decoration: none; transition: color .2s; }
.sf-top a:hover { color: var(--sf-fg); }
.sf-brand { font-family: 'Playfair Display', serif; font-size: 18px; text-transform: none; letter-spacing: 0; color: var(--sf-fg); }

.sf-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.05);
  z-index: 20;
}
.sf-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--sf-accent), var(--sf-accent-2));
  transition: width 480ms cubic-bezier(0.16,1,0.3,1);
}

.sf-stage {
  position: relative;
  z-index: 5;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 80px;
}

.sf-step {
  width: 100%;
  max-width: 760px;
  display: none;
  animation: sf-in 480ms cubic-bezier(0.16,1,0.3,1);
}
.sf-step.is-active { display: block; }
@keyframes sf-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Welcome step */
.sf-welcome { text-align: center; }
.sf-welcome-photo {
  width: 280px;
  height: 280px;
  margin: 0 auto 28px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0,0,0,0.50), 0 0 0 1px rgba(255,255,255,0.04);
}
.sf-welcome-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-welcome h1 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: #fff;
  line-height: 1.15;
}
.sf-welcome p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--sf-fg);
  margin: 0 auto 18px;
  max-width: 600px;
}
.sf-welcome .sf-note {
  color: var(--sf-fg-mute);
  font-style: italic;
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto 32px;
}
.sf-welcome .sf-note a { color: var(--sf-accent-2); text-decoration: underline; text-underline-offset: 3px; }
.sf-welcome .sf-time {
  margin-top: 18px;
  color: var(--sf-fg-mute);
  font-size: 13px;
}
.sf-welcome .sf-time i { margin-right: 6px; }

/* Question header */
.sf-q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--sf-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--sf-fg);
  margin-right: 12px;
  vertical-align: middle;
}
.sf-q-title {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.sf-q-title .sf-required { color: var(--sf-accent); margin-left: 4px; }
.sf-q-hint {
  color: var(--sf-fg-mute);
  font-size: 14px;
  margin: 0 0 28px;
}

/* Choice cards */
.sf-choices {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sf-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--sf-card);
  border: 1px solid var(--sf-border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  color: var(--sf-fg);
  transition: all 180ms cubic-bezier(0.16,1,0.3,1);
  user-select: none;
}
.sf-choice:hover {
  background: var(--sf-card-hi);
  border-color: var(--sf-border-hi);
}
.sf-choice input { position: absolute; opacity: 0; pointer-events: none; }
.sf-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--sf-border);
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--sf-fg);
  flex-shrink: 0;
  transition: all 180ms cubic-bezier(0.16,1,0.3,1);
}
.sf-choice.is-selected,
.sf-choice:has(input:checked) {
  background: rgba(184,149,106,0.10);
  border-color: var(--sf-accent);
  box-shadow: 0 0 0 1px var(--sf-accent), 0 0 30px rgba(184,149,106,0.15);
}
.sf-choice.is-selected .sf-kbd,
.sf-choice:has(input:checked) .sf-kbd {
  background: var(--sf-accent);
  border-color: var(--sf-accent);
  color: #fff;
}

/* Text & phone inputs */
.sf-input-wrap { position: relative; margin: 0 0 28px; }
.sf-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--sf-border-hi);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  padding: 12px 0;
  outline: none;
  transition: border-color 200ms;
}
.sf-input::placeholder { color: rgba(255,255,255,0.32); font-weight: 400; }
.sf-input:focus { border-bottom-color: var(--sf-accent); }
.sf-input.sf-error { border-bottom-color: var(--sf-error); }
.sf-error-msg {
  color: var(--sf-error);
  font-size: 13px;
  margin-top: 8px;
  display: none;
}
.sf-error-msg.is-visible { display: block; }

/* Phone field with country prefix */
.sf-phone-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--sf-border-hi);
  padding: 8px 0;
}
.sf-phone-wrap:focus-within { border-bottom-color: var(--sf-accent); }
.sf-phone-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  color: var(--sf-fg);
  padding: 2px 6px;
}
.sf-phone-flag::after { content: "▾"; font-size: 12px; color: var(--sf-fg-mute); }
.sf-phone-wrap .sf-input { border: 0; padding: 4px 0; }

/* OK / submit button */
.sf-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #111;
  border: 0;
  border-radius: 6px;
  padding: 14px 26px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(0,0,0,0.30);
  transition: transform 160ms cubic-bezier(0.16,1,0.3,1), box-shadow 160ms;
}
.sf-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,0.45); }
.sf-btn:active { transform: translateY(0); }
.sf-btn-primary {
  background: var(--sf-accent);
  color: #fff;
}
.sf-btn-primary:hover { background: var(--sf-accent-2); color: #111; }
.sf-press-enter {
  font-size: 12px;
  color: var(--sf-fg-mute);
  letter-spacing: 0.08em;
}
.sf-press-enter kbd {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--sf-border);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  margin: 0 4px;
  color: var(--sf-fg);
}

/* Welcome Start button */
.sf-start-btn {
  background: #fff;
  color: #111;
  padding: 16px 56px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 36px rgba(0,0,0,0.45);
  transition: all 200ms cubic-bezier(0.16,1,0.3,1);
}
.sf-start-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 50px rgba(0,0,0,0.55); }

/* Bottom navigation arrows */
.sf-nav-arrows {
  position: fixed;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 4px;
  z-index: 12;
}
.sf-nav-arrow {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--sf-border);
  color: var(--sf-fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 160ms;
  font-size: 14px;
}
.sf-nav-arrow:hover:not(:disabled) {
  background: rgba(255,255,255,0.12);
  border-color: var(--sf-border-hi);
}
.sf-nav-arrow:disabled { opacity: 0.35; cursor: not-allowed; }
.sf-nav-arrow svg { width: 16px; height: 16px; }

/* Thank-you */
.sf-thanks { text-align: center; }
.sf-thanks-icon {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sf-accent), var(--sf-accent-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  box-shadow: 0 18px 40px rgba(184,149,106,0.30);
}
.sf-thanks-icon svg { width: 44px; height: 44px; color: #fff; }
.sf-thanks h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: #fff;
}
.sf-thanks p {
  color: var(--sf-fg);
  font-size: 17px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 14px;
}
.sf-thanks .sf-cta-row {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 32px;
}
.sf-thanks .sf-summary {
  margin: 36px auto 0;
  max-width: 560px;
  text-align: left;
  background: var(--sf-card);
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  padding: 22px 24px;
  font-size: 14px;
}
.sf-thanks .sf-summary dt {
  color: var(--sf-fg-mute);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 14px;
}
.sf-thanks .sf-summary dt:first-child { margin-top: 0; }
.sf-thanks .sf-summary dd { margin: 4px 0 0; color: var(--sf-fg); }

@media (max-width: 720px) {
  .sf-top { padding: 14px 18px; font-size: 11px; letter-spacing: 0.12em; }
  .sf-brand { font-size: 16px; }
  .sf-stage { padding: 24px 18px 100px; min-height: calc(100vh - 50px); }
  .sf-step { max-width: 100%; }

  /* Welcome step */
  .sf-welcome-photo {
    width: 200px; height: 200px;
    margin-bottom: 22px; border-radius: 14px;
  }
  .sf-welcome h1 { font-size: 26px; line-height: 1.18; margin-bottom: 14px; }
  .sf-welcome p { font-size: 15px; line-height: 1.5; margin-bottom: 14px; }
  .sf-welcome .sf-note { font-size: 13px; margin-bottom: 24px; }
  .sf-start-btn { padding: 14px 44px; font-size: 15px; width: 100%; max-width: 280px; }
  .sf-welcome .sf-time { font-size: 12px; margin-top: 14px; }

  /* Question header */
  .sf-q-num { width: 22px; height: 22px; font-size: 12px; }
  .sf-q-title { font-size: 19px; line-height: 1.35; }
  .sf-q-hint { font-size: 13px; margin-bottom: 22px; }

  /* Choice cards — full width tap targets */
  .sf-choice { padding: 13px 16px; font-size: 15px; min-height: 48px; }
  .sf-kbd { min-width: 22px; height: 22px; font-size: 11px; }

  /* Inputs */
  .sf-input { font-size: 18px; padding: 10px 0; }
  .sf-phone-flag { font-size: 18px; }
  .sf-input-wrap { margin-bottom: 24px; }

  /* Buttons & actions */
  .sf-actions { gap: 12px; flex-direction: column; align-items: stretch; }
  .sf-btn { width: 100%; padding: 14px 22px; font-size: 13px; justify-content: center; }
  .sf-press-enter { text-align: center; font-size: 11px; }

  /* Nav arrows */
  .sf-nav-arrows { right: 12px; bottom: 12px; gap: 6px; }
  .sf-nav-arrow { width: 40px; height: 40px; }

  /* Thank-you */
  .sf-thanks-icon { width: 70px; height: 70px; margin-bottom: 20px; }
  .sf-thanks-icon svg { width: 36px; height: 36px; }
  .sf-thanks h1 { font-size: 30px; margin-bottom: 12px; }
  .sf-thanks p { font-size: 15px; line-height: 1.55; }
  .sf-thanks .sf-cta-row { flex-direction: column; gap: 10px; margin-top: 26px; }
  .sf-thanks .sf-summary { padding: 18px 20px; font-size: 13px; margin-top: 28px; }
}

/* Tiny phones */
@media (max-width: 380px) {
  .sf-top { padding: 12px 14px; }
  .sf-stage { padding: 18px 14px 90px; }
  .sf-welcome-photo { width: 170px; height: 170px; }
  .sf-welcome h1 { font-size: 23px; }
  .sf-q-title { font-size: 17px; }
  .sf-choice { padding: 12px 14px; font-size: 14px; }
  .sf-input { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .sf-step, .sf-btn, .sf-start-btn, .sf-choice, .sf-input { animation: none !important; transition: none !important; }
}
