/* ==========================================================================
   Elevate VSL Page: Client Intake
   Brand tokens taken from computed styles on elevateempire.com
   ========================================================================== */

:root {
  /* Palette */
  --ember: #E67E22;          /* primary accent: buttons, highlights (site: rgb(230,126,34)) */
  --ember-hover: #F08F37;
  --ember-deep: #B15E17;     /* site border tint rgba(177,94,23,.22) */
  --night: #1C0902;          /* hero card background (site: rgb(28,9,2)) */
  --night-deep: #0F0401;
  --cream: #F6E9CE;          /* "Elevate" wordmark */
  --peach: #F0DDCC;          /* light text on dark (site: rgb(240,221,204)) */
  --peach-2: #F0D0B4;        /* top bar (site: rgb(240,208,180)) */
  --sand: #D7BFA6;           /* testimonial cards (site: rgb(215,191,166)) */
  --linen: #FBF8F5;          /* site body background */
  --teal: #77D4C1;           /* "LED BY" accent (site: rgb(119,212,193)) */
  --ink: #040404;            /* dark button text (site: rgb(4,4,4)) */

  --text: #F3E6D8;
  --text-muted: #C9B3A1;
  --text-faint: #A48E7C;
  --line: rgba(230, 126, 34, 0.22);
  --line-soft: rgba(240, 208, 180, 0.12);
  --field-bg: rgba(255, 236, 214, 0.045);
  --field-bg-focus: rgba(255, 236, 214, 0.075);
  --field-border: rgba(240, 208, 180, 0.26);
  --error: #FFA48F;
  --error-line: #FF8A70;
  --hint: #F5C98F;
  --success: #77D4C1;

  /* Type */
  --font-display: "Old Standard TT", "Times New Roman", Georgia, serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-label: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Shape */
  --radius-card: 10px;
  --radius-field: 6px;
  --radius-pill: 30px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --page-width: 880px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--night-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ember); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ember-hover); }

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

::selection { background: rgba(230, 126, 34, 0.45); color: #fff; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--ember);
  color: var(--ink);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.8125rem;
  text-decoration: none;
}
.skip-link:focus { top: 52px; }

/* ---------- Top bar (mirrors the peach announcement bar on elevateempire.com) ---------- */
.topbar {
  position: relative;
  z-index: 2;
  background: var(--peach-2);
  color: var(--night);
  text-align: center;
  padding: 11px 16px;
}
.topbar p {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.topbar span { margin: 0 0.5em; color: var(--ember-deep); }

/* ---------- Atmospheric backdrop (Elevate hero image) ---------- */
.backdrop {
  position: absolute;
  inset: 0 0 auto 0;
  height: min(1100px, 140vh);
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(15, 4, 1, 0.15) 0%, rgba(15, 4, 1, 0.55) 45%, var(--night-deep) 100%),
    radial-gradient(120% 70% at 50% 0%, rgba(230, 126, 34, 0.12), transparent 60%),
    url("../brand/elevate-ember-bg.jpg") center top / cover no-repeat;
  pointer-events: none;
}

/* ---------- Masthead ---------- */
.masthead {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: clamp(36px, 7vw, 64px) 16px 0;
}
.masthead__logo { display: block; border-radius: 4px; }
.masthead__logo img {
  width: clamp(170px, 34vw, 250px);
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.35));
}

/* ---------- Page layout ---------- */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--page-width) + 32px);
  margin: 0 auto;
  padding: 0 16px clamp(48px, 8vw, 96px);
}

/* ---------- Intro ---------- */
.intro {
  text-align: center;
  max-width: 680px;
  margin: clamp(28px, 6vw, 48px) auto clamp(32px, 6vw, 52px);
}

.eyebrow {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.intro__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.35rem, 7vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.intro__title-a { color: var(--peach); display: block; }
.intro__title-b { color: var(--ember); display: block; }

.intro__lede {
  color: var(--text);
  opacity: 0.92;
  font-size: clamp(1rem, 2.4vw, 1.0625rem);
  line-height: 1.7;
  text-wrap: pretty;
}

/* ---------- Card (mirrors the hero card: night bg, 1px ember border, 10px radius) ---------- */
.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(230, 126, 34, 0.05), rgba(230, 126, 34, 0) 220px),
    var(--night);
  border: 1px solid var(--ember);
  border-radius: var(--radius-card);
  padding: clamp(22px, 5.5vw, 56px) clamp(18px, 5.5vw, 60px);
  box-shadow:
    0 30px 80px -30px rgba(0, 0, 0, 0.85),
    0 0 0 6px rgba(28, 9, 2, 0.35);
}

/* ---------- Form ---------- */
.form[hidden] { display: none; }

.form__legend-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form__legend-note .req-tag { margin: 0 4px 0 0; }

.field {
  padding: clamp(26px, 4vw, 34px) 0;
  border-bottom: 1px solid var(--line);
}
.field[data-field="inspirations"] { border-bottom: 0; }

.field__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0 0 12px;
  padding: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 3.6vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--peach);
}
.field__num {
  font-family: var(--font-label);
  font-style: normal;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--ember);
  transform: translateY(-0.2em);
}
.field__text { flex: 0 1 auto; }

.req-tag,
.opt-tag {
  display: inline-block;
  font-family: var(--font-label);
  font-style: normal;
  font-weight: 600;
  font-size: 0.625rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 9px 4px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transform: translateY(-0.25em);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.req-tag {
  color: var(--ember);
  border: 1px solid rgba(230, 126, 34, 0.55);
  background: rgba(230, 126, 34, 0.08);
}
.opt-tag {
  color: var(--text-faint);
  border: 1px solid var(--line-soft);
}

.field__help {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: -2px 0 16px;
}
p.field__help,
.field__help > p { max-width: 70ch; }
.field__help p + .arrow-list { margin-top: 14px; }
.field__help--small { font-size: 0.8125rem; margin: 8px 0 0; }

/* Arrow list, echoing the "→" lists on elevateempire.com */
.arrow-list {
  list-style: none;
  margin: 0;
  padding: 16px 18px;
  display: grid;
  gap: 8px;
  border-left: 2px solid var(--ember);
  background: rgba(230, 126, 34, 0.06);
  border-radius: 0 var(--radius-field) var(--radius-field) 0;
}
.arrow-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
}
.arrow-list li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ember);
  font-weight: 700;
}

/* Inputs */
.input {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-field);
  padding: 13px 16px;
  min-height: 50px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: var(--text-faint); opacity: 0.85; }
.input:hover { border-color: rgba(240, 208, 180, 0.42); }
.input:focus,
.input:focus-visible {
  outline: none;
  border-color: var(--ember);
  background: var(--field-bg-focus);
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.3);
}
.input:disabled { opacity: 0.5; cursor: not-allowed; }

.input--area {
  resize: vertical;
  min-height: 96px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 126, 34, 0.55) transparent;
}
#f-inspirations { min-height: 13em; }

/* Pasted worksheet: wide, fixed height, scrolls internally (no auto-grow) */
.input--worksheet {
  min-height: 18em;
  height: 22em;
  max-height: 70vh;
  font-size: 0.9375rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.input[aria-invalid="true"] {
  border-color: var(--error-line);
  box-shadow: 0 0 0 1px var(--error-line) inset;
}
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(255, 138, 112, 0.35); }

.field__error,
.field__hint {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.field__error { color: var(--error); font-weight: 600; }
.field__error::before {
  content: "!";
  flex: 0 0 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--error-line);
  color: var(--night);
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.field__hint { color: var(--hint); }
.field__hint::before { content: "\2192"; color: var(--ember); font-weight: 700; }
.field__error[hidden],
.field__hint[hidden] { display: none; }

/* ---------- Radio choices ---------- */
.choices {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.choices legend.field__label { float: left; width: 100%; }
.choices legend + * { clear: both; }

.choices__list { display: grid; gap: 12px; }

.choice { position: relative; display: block; cursor: pointer; }
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.choice__ui {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-field);
  background: var(--field-bg);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.choice:hover .choice__ui { border-color: rgba(240, 208, 180, 0.45); background: var(--field-bg-focus); }
.choice__mark {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(240, 208, 180, 0.55);
  display: grid;
  place-items: center;
  transition: border-color 0.2s var(--ease);
}
.choice__mark::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ember);
  transform: scale(0);
  transition: transform 0.25s var(--ease);
}
.choice__text { color: var(--text); font-size: 1rem; line-height: 1.45; }

.choice input:checked + .choice__ui {
  border-color: var(--ember);
  background: rgba(230, 126, 34, 0.1);
  box-shadow: 0 0 0 1px var(--ember) inset;
}
.choice input:checked + .choice__ui .choice__mark { border-color: var(--ember); }
.choice input:checked + .choice__ui .choice__mark::after { transform: scale(1); }
.choice input:focus-visible + .choice__ui {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}
.choices[aria-invalid="true"] .choice__ui { border-color: var(--error-line); }

/* ---------- Revealed panels ---------- */
.reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    grid-template-rows 0.38s var(--ease),
    opacity 0.3s var(--ease),
    transform 0.38s var(--ease),
    visibility 0s linear 0.38s;
}
.reveal.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    grid-template-rows 0.38s var(--ease),
    opacity 0.32s var(--ease) 0.06s,
    transform 0.38s var(--ease),
    visibility 0s;
}
.reveal__inner { overflow: hidden; min-height: 0; }
.reveal.is-open .reveal__inner { overflow: visible; }
.reveal__inner > * { margin-top: 18px; }

.subfield { padding: 4px 0 0; }
.subfield__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--peach);
}
.subfield__label .req-tag { transform: none; }
.subfield__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
}
.counter {
  margin-top: 8px;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.counter.is-near { color: var(--hint); }
.counter.is-full { color: var(--error); }

.note {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-field);
  background: rgba(119, 212, 193, 0.08);
  border: 1px solid rgba(119, 212, 193, 0.3);
  color: var(--text);
  font-size: 0.9375rem;
}
.note__icon { color: var(--teal); font-weight: 700; }
.note a { color: var(--teal); }

/* ---------- Honeypot ---------- */
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer of form ---------- */
.form__footer {
  margin-top: 8px;
  padding-top: clamp(26px, 4vw, 34px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.turnstile { min-height: 0; display: flex; justify-content: center; max-width: 100%; }
.turnstile:empty { display: none; }

.form__status { width: 100%; max-width: 560px; }
.form__status:empty { display: none; }
.form__status .status {
  display: block;
  text-align: left;
  padding: 14px 18px;
  border-radius: var(--radius-field);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.status--error {
  background: rgba(255, 138, 112, 0.1);
  border: 1px solid rgba(255, 138, 112, 0.55);
  color: var(--error);
}
.status--info {
  background: rgba(230, 126, 34, 0.08);
  border: 1px solid var(--line);
  color: var(--text);
}
.status strong { color: #FFD2C6; }

/* Button (pill, ember, uppercase Montserrat, as on elevateempire.com) */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  min-height: 52px;
  padding: 14px 40px;
  border: 2px solid var(--ember);
  border-radius: var(--radius-pill);
  background: var(--ember);
  color: var(--ink);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(230, 126, 34, 0.75);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
@media (hover: hover) {
  .btn:hover {
    background: var(--ember-hover);
    border-color: var(--ember-hover);
    color: var(--ink);
    transform: translateY(-1px);
    box-shadow: 0 14px 34px -12px rgba(230, 126, 34, 0.9);
  }
  .btn--ghost:hover { background: var(--ember); border-color: var(--ember); color: var(--ink); }
}
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--peach); outline-offset: 4px; }
.btn[disabled] { cursor: progress; opacity: 0.85; transform: none; }

.btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(4, 4, 4, 0.25);
  border-top-color: var(--ink);
  animation: spin 0.8s linear infinite;
}
.btn.is-sending .btn__spinner { display: inline-block; }

.btn--ghost {
  background: transparent;
  color: var(--ember);
  box-shadow: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

.draft-note {
  font-size: 0.8125rem;
  color: var(--text-faint);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 10px;
}
.link-btn {
  font: inherit;
  color: var(--text-muted);
  background: none;
  border: 0;
  padding: 2px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--ember); }
.link-btn[hidden] { display: none; }

/* ---------- Thank-you panel ---------- */
.thanks {
  text-align: center;
  padding: clamp(16px, 4vw, 40px) 0;
  outline: none;
  animation: rise 0.6s var(--ease) both;
}
.thanks[hidden] { display: none; }
.thanks__mark {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--ember);
  border: 1px solid var(--ember);
  background: rgba(230, 126, 34, 0.08);
}
.thanks__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--peach);
}
.thanks__body {
  max-width: 520px;
  margin: 0 auto 30px;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.noscript {
  max-width: 560px;
  margin: 0 auto 24px;
  padding: 0 16px;
  text-align: center;
  color: var(--hint);
}

/* ---------- Site footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 16px 40px;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--ember); }

/* ---------- 404 ---------- */
.notfound { text-align: center; }
.notfound .card { max-width: 620px; margin: 0 auto; }
.notfound__code {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(4rem, 16vw, 7rem);
  line-height: 1;
  color: var(--ember);
  margin-bottom: 8px;
}
.notfound p.lede { color: var(--text-muted); margin: 0 auto 28px; max-width: 42ch; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  .field__num { flex-basis: 100%; transform: none; margin-bottom: 2px; }
}

@media (max-width: 520px) {
  .card {
    border-radius: 8px;
    box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.85);
  }
  .choice__ui { padding: 14px; gap: 12px; }
  .arrow-list { padding: 14px; }
  .btn { width: 100%; min-width: 0; }
  .input--worksheet { height: 20em; }
}

/* ---------- Motion & contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

@media (forced-colors: active) {
  .choice__mark::after { background: CanvasText; }
  .card, .input, .choice__ui { border: 1px solid CanvasText; }
}
