/* ==========================================================================
   vocalenterprises.com — application pages
   /decision-clarity/apply · /no-longer-bracing/apply
   Same tokens and primitives as site.css (:root). Prefix: .ap-
   Linked after site.css on both pages. Do not edit site.css from here.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero — the sales page's clip hero (.sp-hero in site.css), shorter and quieter here
   -------------------------------------------------------------------------- */

.sp-hero--apply { min-height: 64svh; }
.sp-hero--apply .sp-hero__h1 { font-size: clamp(32px, 4.6vw, 56px); max-width: 18ch; }
.sp-hero--apply .sp-hero__sub { max-width: 58ch; }
.ap-hero__note { font-size: 14px; color: var(--cream-mute); margin-top: clamp(18px, 2.4vh, 26px); max-width: 56ch; }
@media (max-width: 899px) { .sp-hero--apply { min-height: 78svh; } }

/* --------------------------------------------------------------------------
   Layout — portrait, the five steps and one reassurance beside the form (desktop);
   stacked above it on phones, where the hero band already shows the face
   -------------------------------------------------------------------------- */

.ap-layout { display: grid; gap: clamp(32px, 5vw, 48px); }
.ap-side { min-width: 0; }               /* block, not grid: a grid track lets the portrait grow past the column */
.ap-side > * + * { margin-top: 18px; }
.ap-main { min-width: 0; }
.ap-side .sp-guide__portrait { width: 100%; max-width: 320px; aspect-ratio: 1 / 1; }   /* square, so the pinned column fits a laptop screen */
.ap-side .kicker { margin-top: 6px; }
/* The five steps as a compact vertical list here (the shared .steps is a 5-across row on desktop) */
.ap-side .steps { margin: 0; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); overflow: hidden; }
.ap-side .steps li { border: 0; border-radius: 0; padding: 11px 14px 11px 44px; position: relative; background: none; }
.ap-side .steps li + li { border-top: 1px solid var(--line); }
.ap-side .steps li::before { position: absolute; left: 14px; top: 13px; margin: 0; }
.ap-side .steps b { font-size: 15px; margin-bottom: 0; }
.ap-side .steps span { font-size: 13.5px; line-height: 1.45; }
.ap-form-reassure { font-size: 16px; color: var(--cream-soft); max-width: 60ch; line-height: 1.55; margin-bottom: 18px; }
.ap-form-reassure strong { color: var(--cream); font-weight: 500; }
@media (min-width: 900px) {
  .ap-layout { grid-template-columns: 320px minmax(0, 1fr); gap: clamp(48px, 6vw, 88px); align-items: start; }
  .ap-side { position: sticky; top: 96px; }
  .ap-side .sp-guide__portrait { max-width: none; }
}
@media (max-width: 899px) {
  .ap-side .sp-guide__portrait { display: none; }
}

/* --------------------------------------------------------------------------
   Form section
   -------------------------------------------------------------------------- */

.ap-form-section { padding-block: clamp(44px, 6.5vw, 80px); }

.ap-form-intro {
  font-size: 14.5px; color: var(--cream-mute);
  max-width: 640px; margin-bottom: clamp(28px, 4vw, 40px);
  padding-bottom: clamp(20px, 3vw, 28px); border-bottom: 1px solid var(--line);
}

.ap-form { max-width: 640px; display: grid; gap: clamp(40px, 6vw, 64px); }
.ap-form[hidden] { display: none !important; }   /* after a successful send */

.ap-group { display: grid; gap: clamp(22px, 3.2vw, 30px); }
.ap-group__title {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 13.5px; color: var(--accent);
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Fields
   -------------------------------------------------------------------------- */

.field { display: grid; gap: 8px; }
.field > label, .field > legend {
  font-size: 16px; font-weight: 500; color: var(--cream); line-height: 1.4;
  padding: 0; display: block;
}
.ap-q__num {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  color: var(--accent); letter-spacing: 0.04em; font-size: 13.5px; margin-right: 8px;
}
.field .hint { font-size: 14px; color: var(--cream-mute); line-height: 1.5; margin: 0; }   /* same width as the question above it */
/* A helper line that appears only for one answer (see data-reveal in apply.js; CSS handles it where :has is supported) */
.ap-reveal { margin-top: 4px; }
.field:has(input[data-reveal]:checked) .ap-reveal[hidden] { display: block; }
.field .opt { font-weight: 400; color: var(--cream-mute); font-size: 14px; }

input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; font: inherit; font-size: 16px; color: var(--cream);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; min-height: 48px;
  transition: border-color 250ms var(--ease), box-shadow 250ms var(--ease);
}
textarea { min-height: 112px; line-height: 1.5; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--cream-mute); opacity: 1; }

select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%23d9a441' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
select option { background: var(--ink-2); color: var(--cream); }

input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent);
}

/* Radio / checkbox groups */
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }

.ap-options { display: grid; gap: 10px; margin-top: 2px; }
@media (min-width: 520px) {
  .ap-options--row { grid-auto-flow: column; grid-auto-columns: max-content; }
}

.ap-option {
  display: flex; align-items: flex-start; gap: 12px;
  min-height: 44px; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; background: var(--ink-2); cursor: pointer;
  transition: border-color 250ms var(--ease), background 250ms var(--ease);
}
.ap-option input[type="radio"], .ap-option input[type="checkbox"] {
  width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto;
  accent-color: var(--accent); cursor: pointer;
}
.ap-option span { font-size: 15.5px; color: var(--cream-soft); line-height: 1.45; }
.ap-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.ap-option:has(input:checked) span { color: var(--cream); }
.ap-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Safety screen — held apart, warm, plain about what happens next
   -------------------------------------------------------------------------- */

.ap-safety {
  border: 1px solid rgba(217, 164, 65, 0.35); border-radius: 16px;
  padding: clamp(20px, 3.2vw, 30px); background: var(--ink-2);
  display: grid; gap: clamp(22px, 3.2vw, 30px);
}
.ap-safety__title {
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  color: var(--cream); text-transform: none; letter-spacing: 0.005em;
}
.ap-safety__intro { font-size: 15px; color: var(--cream-soft); line-height: 1.55; max-width: 58ch; }
.ap-safety-item { display: grid; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.ap-safety-item:first-of-type { padding-top: 0; border-top: 0; }
.ap-safety-item .hint {
  color: var(--cream-soft); background: rgba(217, 164, 65, 0.09);
  border-left: 2px solid var(--accent); padding: 12px 14px; border-radius: 0 8px 8px 0;
  font-size: 14.5px; line-height: 1.55;
}
.ap-safety-item .hint b { color: var(--cream); font-weight: 600; }

/* --------------------------------------------------------------------------
   Acknowledgment
   -------------------------------------------------------------------------- */

.ap-ack {
  border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(20px, 3.2vw, 30px); background: var(--ink-2);
  display: grid; gap: 16px;
}
.ap-ack > legend { font-size: 17px; font-weight: 600; color: var(--cream); margin-bottom: 2px; }

/* --------------------------------------------------------------------------
   Errors
   -------------------------------------------------------------------------- */

.field.has-error input, .field.has-error textarea, .field.has-error select,
.field.has-error .ap-option { border-color: #e2685f; }
.field .error {
  display: none; font-size: 13.5px; color: #ff9d90; margin: 0;
}
.field.has-error .error { display: block; }

/* --------------------------------------------------------------------------
   Optional opt-in — lighter than the required acknowledgments above it
   -------------------------------------------------------------------------- */

.ap-optin { padding: 0 0 0 4px; margin-top: calc(-1 * clamp(16px, 3vw, 36px)); }   /* sits close under the acknowledgments, not lost in the form's big gap */
.ap-optin .ap-option, .ap-optin .ap-option:has(input:checked) { border: 0; background: none; padding: 0; min-height: 0; }
.ap-optin .ap-option span { font-size: 15px; color: var(--cream-soft); }
.ap-optin .ap-option em { font-style: normal; color: var(--cream-mute); }

/* --------------------------------------------------------------------------
   Submit + thank-you screen
   -------------------------------------------------------------------------- */

.ap-submit { display: grid; gap: 14px; justify-items: start; padding-top: 4px; }
.ap-error { font-size: 14.5px; color: #ff9d90; max-width: 56ch; line-height: 1.5; }
.ap-error[hidden] { display: none; }
.btn.is-busy { opacity: 0.7; cursor: progress; }
.ap-submit .btn { min-width: 240px; justify-content: center; }
.ap-submit small { font-size: 13.5px; color: var(--cream-mute); max-width: 52ch; line-height: 1.5; }
.ap-submit .ap-submit__pre { margin-bottom: -2px; }

/* After a successful send: the form, the portrait column and the "not yet" line step aside.
   What is left is the heading, one line, the calendar, and the small backup note. */
.ap-layout.is-done { grid-template-columns: minmax(0, 1fr); }
.ap-layout.is-done .ap-side, .ap-layout.is-done .ap-form-reassure, .ap-layout.is-done .ap-form-intro { display: none; }

.ap-confirm[hidden] { display: none !important; }
.ap-confirm { display: grid; gap: 14px; }
.ap-confirm h2 {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.005em; font-size: clamp(26px, 3.4vw, 40px); color: var(--cream); outline: none;
}
.ap-confirm__lead { color: var(--cream-soft); font-size: 17px; line-height: 1.55; max-width: 56ch; }
.ap-confirm__note, .ap-confirm__safety { font-size: 13.5px; color: var(--cream-mute); max-width: 60ch; line-height: 1.5; }
.ap-confirm__safety b { color: var(--cream-soft); font-weight: 600; }

/* The Cal.com booker. embed.js sizes its own iframe; the box keeps the page from jumping while it loads. */
.ap-cal {
  margin-top: 10px; min-height: 560px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--ink-2); overflow: hidden; position: relative;
}
.ap-cal::before {
  content: "Loading the calendar…"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 14px; color: var(--cream-mute);
}
.ap-cal.is-ready::before { display: none; }
.ap-cal iframe { position: relative; display: block; width: 100%; border: 0; }
.ap-cal .ap-cal__frame { height: 760px; }
@media (max-width: 899px) {
  .ap-cal { min-height: 520px; border-radius: 14px; }
  .ap-cal .ap-cal__frame { height: 900px; }
}

/* --------------------------------------------------------------------------
   Dignified exit
   -------------------------------------------------------------------------- */

.ap-close[hidden] { display: none; }
.ap-close {
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 6vw, 64px);
}
.ap-close p { font-size: 16.5px; color: var(--cream-soft); max-width: 56ch; line-height: 1.6; }
.ap-close a { color: var(--cream); border-bottom: 1px solid var(--accent); text-decoration: none; padding-bottom: 1px; }
.ap-close a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .ap-option, input, textarea, select { transition: none !important; }
}
