/* Surrogacy Is — quiz preview. Brand: pink #F16FA8, purple #A54EB0, navy #211F4F.
   Fonts: Comfortaa (display) + Inter (body). Mobile-first, chat-style. */

:root {
  --pink: #F16FA8;
  --pink-soft: #FBDDEA;
  --purple: #A54EB0;
  --navy: #211F4F;
  --navy-soft: #4a4780;
  --mint: #6FD8C1;
  --gold: #F5C56B;
  --cream: #FFF9FC;
  --ink: #2b2942;
  --muted: #7a7794;
  --line: #ece6f2;
  --white: #ffffff;
  --ok: #2fae7a;
  --shadow: 0 10px 40px rgba(33, 31, 79, 0.10);
  --shadow-sm: 0 2px 10px rgba(33, 31, 79, 0.07);
  --radius: 18px;
  --radius-sm: 12px;
  --tap: 54px;
  --maxw: 620px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 50% -10%, var(--pink-soft) 0%, rgba(251,221,234,0) 60%),
    var(--cream);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  line-height: 1.5;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 18px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- top bar / progress ---- */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 2px 14px;
}
.brandmark {
  font-family: 'Comfortaa', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 18px;
  letter-spacing: -0.2px;
  white-space: nowrap;
}
.brandmark .heart { color: var(--pink); }
.progress {
  flex: 1;
  height: 8px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  border-radius: 99px;
  transition: width .45s cubic-bezier(.4,0,.2,1);
}
.progress-label {
  font-size: 12px;
  color: var(--muted);
  min-width: 36px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---- screen container ---- */
.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: rise .38s cubic-bezier(.2,.7,.2,1);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* chat-style prompt bubble */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 10px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 99px; background: var(--mint); }

.q-title {
  font-family: 'Comfortaa', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.28;
  color: var(--navy);
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}
.q-desc {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 20px;
}
.q-title strong { color: var(--pink); font-weight: 700; }

/* ---- options ---- */
.options { display: flex; flex-direction: column; gap: 11px; margin-top: 6px; }
.opt {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: var(--tap);
  padding: 14px 16px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15.5px;
  font-family: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .08s, box-shadow .15s;
  box-shadow: var(--shadow-sm);
  line-height: 1.35;
}
.opt:hover { border-color: var(--pink); }
.opt:active { transform: scale(.99); }
.opt .marker {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 7px;
  border: 2px solid var(--line);
  display: grid; place-items: center;
  transition: all .15s;
}
.opt.radio .marker { border-radius: 99px; }
.opt.selected {
  border-color: var(--purple);
  background: linear-gradient(0deg, rgba(165,78,176,0.06), rgba(165,78,176,0.06)), var(--white);
}
.opt.selected .marker {
  border-color: var(--purple);
  background: var(--purple);
}
.opt.selected .marker::after {
  content: "";
  width: 9px; height: 9px; border-radius: inherit; background: #fff;
}
.opt.radio.selected .marker::after { border-radius: 99px; }

/* ---- inputs ---- */
.field { margin-top: 8px; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: var(--tap);
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 16px; /* >=16 prevents iOS zoom */
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s;
}
.field textarea { min-height: 120px; resize: vertical; padding-top: 12px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--purple);
}
.hw-row { display: flex; gap: 12px; }
.hw-row .hw-unit { flex: 1; }
.hw-row label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px 2px; }
.field-hint { font-size: 13px; color: var(--muted); margin: 8px 2px 0; }
.field input.invalid, .field textarea.invalid { border-color: var(--pink); }
.field-error { font-size: 13px; color: var(--pink); font-weight: 600; margin: 8px 2px 0; min-height: 0; }
.field-error:empty { margin: 0; }

/* ---- footer nav ---- */
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: 'Comfortaa', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  min-height: var(--tap);
  padding: 0 26px;
  border-radius: 99px;
  transition: transform .08s, box-shadow .2s, opacity .2s;
}
.btn-primary {
  background: linear-gradient(120deg, var(--pink), var(--purple));
  color: #fff;
  box-shadow: 0 8px 22px rgba(165,78,176,0.32);
  flex: 1;
}
.btn-primary:active { transform: translateY(1px) scale(.995); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
}
.btn-ghost:hover { color: var(--navy); }
.link-skip {
  background: none; border: none; color: var(--muted);
  font-size: 14px; cursor: pointer; text-decoration: underline; padding: 8px;
}

/* ---- back chevron ---- */
.back {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 14px; padding: 6px 4px; margin-bottom: 4px;
  display: inline-flex; align-items: center; gap: 4px;
}
.back:hover { color: var(--navy); }

/* ---- interstitial ---- */
.interstitial { text-align: left; }
.interstitial .icon {
  width: 62px; height: 62px; border-radius: 18px;
  display: grid; place-items: center; font-size: 30px;
  background: linear-gradient(135deg, var(--pink-soft), #fff);
  box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.interstitial .q-title { font-size: 22px; }
.interstitial p { color: var(--navy-soft); font-size: 16px; margin: 0 0 8px; }

/* ---- landing ---- */
.landing { text-align: center; padding-top: 10px; align-items: center; }
.landing > * { align-self: center; max-width: 100%; }
.landing .hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  padding: 8px 15px; border-radius: 99px; font-size: 13px; font-weight: 600;
  color: var(--purple); box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.landing h1 {
  font-family: 'Comfortaa','Inter',sans-serif;
  font-weight: 700; font-size: 33px; line-height: 1.18;
  color: var(--navy); margin: 0 0 16px; letter-spacing: -0.6px;
}
.landing h1 .accent { color: var(--pink); }
.landing .sub { font-size: 17px; color: var(--navy-soft); margin: 0 auto 26px; max-width: 460px; }
.video-embed {
  position: relative; width: 100%; max-width: 520px; margin: 4px auto 26px;
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: #000; border: 1px solid var(--line);
}
.video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.result .video-embed { margin: 6px auto 22px; }
.landing .cta { max-width: 360px; margin: 0 auto; }

/* booking placeholder card (mirrors the GHL calendar layout; not a live calendar) */
.booking-card {
  display: grid; grid-template-columns: 1fr; gap: 0;
  max-width: 520px; margin: 6px auto 0; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.booking-card .bc-head { padding: 20px 22px 6px; }
.booking-card .bc-head h3 {
  font-family:'Comfortaa','Inter',sans-serif; margin: 0 0 4px; color: var(--navy); font-size: 18px;
}
.booking-card .bc-meta { display: flex; gap: 16px; color: var(--muted); font-size: 13.5px; margin: 8px 0 10px; }
.booking-card .bc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.booking-card .bc-desc { color: var(--navy-soft); font-size: 14.5px; margin: 0; }
.booking-card .bc-cal {
  margin-top: 14px; padding: 26px 22px; border-top: 1px dashed var(--line);
  background: linear-gradient(0deg, rgba(241,111,168,0.04), rgba(241,111,168,0.04)), #fff;
  text-align: center;
}
.booking-card .bc-cal .bc-ic { font-size: 30px; }
.booking-card .bc-cal .bc-title { font-family:'Comfortaa','Inter',sans-serif; color: var(--navy); font-weight: 600; margin: 8px 0 4px; }
.booking-card .bc-cal .bc-sub { color: var(--muted); font-size: 13.5px; margin: 0; }
.booking-card .bc-cal .btn-primary { margin-top: 16px; width: 100%; max-width: 320px; }
.landing .cta .btn-primary { width: 100%; }
.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px;
  margin-top: 26px; color: var(--muted); font-size: 13px;
}
.trust-row .t { display: inline-flex; align-items: center; gap: 6px; }
.trust-row .t svg { color: var(--mint); }
.reassure {
  margin-top: 30px; padding: 16px 18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  font-size: 14px; color: var(--navy-soft); text-align: left;
  display: flex; gap: 12px; align-items: flex-start;
}
.reassure .r-ic { font-size: 20px; }

/* ---- result screens ---- */
.result { text-align: center; padding-top: 16px; }
.result .r-emoji { font-size: 58px; margin-bottom: 10px; }
.result h1 {
  font-family: 'Comfortaa','Inter',sans-serif; font-weight: 700;
  font-size: 29px; color: var(--navy); margin: 0 0 14px; letter-spacing: -0.4px;
}
.result p { font-size: 16.5px; color: var(--navy-soft); margin: 0 auto 14px; max-width: 480px; }
.result.qualify h1 { color: var(--purple); }
.result .r-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; margin: 22px auto 0; max-width: 440px; text-align: left;
}
.result .r-card h3 {
  font-family:'Comfortaa','Inter',sans-serif; margin: 0 0 12px; color: var(--navy); font-size: 17px;
}
.result .r-card ul { margin: 0; padding-left: 20px; color: var(--navy-soft); font-size: 15px; }
.result .r-card li { margin-bottom: 7px; }
.result .btn-primary { width: 100%; max-width: 360px; margin: 24px auto 0; }
.result .softnote { font-size: 14px; color: var(--muted); margin-top: 18px; }

/* ---- preview / JP logic-trace panel (internal review aid) ---- */
.pv-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: var(--navy); color: #fff; font-size: 12.5px;
  padding: 7px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.pv-banner strong { color: var(--gold); font-weight: 700; }
.pv-banner button {
  background: rgba(255,255,255,.14); color: #fff; border: none; border-radius: 8px;
  padding: 5px 12px; font-size: 12px; cursor: pointer; font-family: inherit; font-weight: 600;
}
body.has-banner .wrap { padding-top: 44px; }

.trace {
  position: fixed; right: 0; bottom: 0; top: 0; width: min(380px, 92vw);
  background: #1a1836; color: #e9e6f5; z-index: 50; box-shadow: -12px 0 40px rgba(0,0,0,.4);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column; font-size: 13px;
}
.trace.open { transform: translateX(0); }
.trace header {
  padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: space-between;
}
.trace header h4 { margin: 0; font-family:'Comfortaa','Inter',sans-serif; color: var(--gold); font-size: 15px; }
.trace header button { background: none; border: none; color: #b9b4d6; font-size: 20px; cursor: pointer; }
.trace .trace-body { padding: 14px 16px; overflow-y: auto; }
.trace .verdict {
  padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 600;
}
.trace .verdict.qualified { background: rgba(47,174,122,.2); border: 1px solid rgba(47,174,122,.5); }
.trace .verdict.soft-dq { background: rgba(245,197,107,.18); border: 1px solid rgba(245,197,107,.5); }
.trace .verdict.hard-dq { background: rgba(241,111,168,.16); border: 1px solid rgba(241,111,168,.5); }
.trace .kv { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.trace .kv .k { color: #a9a4cc; }
.trace .kv .v { color: #fff; text-align: right; word-break: break-word; }
.trace .tag { display: inline-block; background: rgba(165,78,176,.35); padding: 2px 9px; border-radius: 99px; margin: 2px 3px 0 0; font-size: 12px; }
.trace pre { background: rgba(0,0,0,.25); padding: 10px; border-radius: 8px; overflow-x: auto; font-size: 11px; color: #cfc9ea; max-height: 220px; }
.trace .sec-title { font-weight: 700; color: var(--gold); margin: 16px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }

@media (min-width: 640px) {
  .wrap { padding-top: 28px; }
  .q-title { font-size: 27px; }
  .landing h1 { font-size: 40px; }
}
