/* Free case evaluation pages (/free-case-evaluation). Loaded only there, on top of site.css. Phones first.
   Text colours here meet WCAG 2.2 AA on their backgrounds (darker teal for text, navy focus rings). */
.ce-page { --gold: #F5B83D; --gold-soft: #fff6e0; --teal-text: #0A6E6E; --field-line: #6b7c93; --option-line: #cdd6e2;
  padding-bottom: 0; }
.ce-page main a:not(.btn) { color: var(--teal-text); }
.ce-page main a:not(.btn):hover { color: var(--navy); }
.ce-page :focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.ce-page [tabindex="-1"]:focus { outline: none; }
.ce-page .eyebrow { color: var(--teal-text); }
.ce-page .eyebrow-light { color: var(--teal); }
.ce-page .step-no { color: var(--teal-text); }
.ce-page .section { padding: 48px 0; }

/* Sample-page ribbon (demo mode) */
.ce-ribbon { background: var(--gold); color: var(--navy-deep); }
.ce-ribbon p { margin: 0; padding-top: 9px; padding-bottom: 9px; font-size: .9rem; line-height: 1.45; text-align: center; }
.ce-page .ce-ribbon a { color: var(--navy-deep); font-weight: 800; white-space: nowrap; }

/* Header: logo only, so the page has one action */
.ce-header { background: #fff; border-bottom: 1px solid var(--line); }
.ce-header-inner { display: flex; align-items: center; min-height: 60px; }
.ce-header .logo { padding: 4px 0; }
.ce-header .logo img { width: 128px; height: auto; }

/* Hero */
.ce-hero { color: #fff; padding: 28px 0 40px;
  background: radial-gradient(900px 420px at 90% -10%, rgba(25,194,194,.20), transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); }
.ce-hero h1 { color: #fff; font-size: clamp(2.1rem, 9vw, 3.4rem); margin-bottom: .3em; }
.ce-hero .lead { color: #d3deee; font-size: 1.12rem; max-width: 34rem; }
.ce-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.ce-hero-copy :focus-visible { outline-color: var(--gold); }
.ce-cta { margin: 20px 0 16px; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #ffc95e; color: var(--navy-deep); }
.ce-page .btn-gold, .ce-page .btn-gold:hover { color: var(--navy-deep); }
.btn-lg { min-height: 56px; padding: .85em 1.6em; font-size: 1.06rem; }
.ce-cta .btn { width: 100%; }
.ce-deadline { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; color: #ffe2a3; font-weight: 600; }
.ce-deadline .icon { margin-top: .2em; color: var(--gold); }
.ce-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ce-trust li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); color: #e4ecf7; font-size: .9rem; font-weight: 600; }
.ce-trust .icon { color: var(--teal); width: 1em; height: 1em; }

/* Form card */
.ce-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 20px 16px 22px; scroll-margin-top: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,.30); }
.ce-sample { margin: 0 0 20px; padding: 12px 14px; border-radius: 10px; background: var(--gold-soft); border: 1px solid #efd18a;
  border-left: 5px solid var(--gold); font-size: .93rem; line-height: 1.5; }
.ce-sample p { margin: 0; }
.ce-sample p + p { margin-top: 6px; }
.ce-disclosure { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.ce-card .error-summary { margin-bottom: 18px; }
.ce-card .error-summary ul { margin: 6px 0 0; padding-left: 1.2em; }
.ce-form { margin: 0; }
.ce-form [hidden] { display: none !important; }

/* Progress (shown by case-eval.js) */
.ce-progress { height: 8px; border-radius: 999px; background: #e3e9f1; overflow: hidden; margin: 0 0 16px; }
.ce-progress-fill { display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--teal-text)); transition: width .3s ease; }
.ce-tip { margin: 0 0 14px; font-size: .88rem; color: var(--muted); }

/* Steps: one long form without JavaScript, one step per screen with it */
.ce-step { border: 0; padding: 0; margin: 0 0 36px; min-width: 0; }
.ce-form.is-stepper .ce-step { margin-bottom: 0; }
.ce-legend { padding: 0; margin: 0 0 14px; width: 100%; }
.ce-heading { margin: 0 0 14px; font-size: 1.35rem; line-height: 1.25; }
.ce-legend .ce-heading { margin-bottom: 0; }
.ce-qno { display: block; margin-bottom: 4px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-text); }
.ce-q { display: block; color: var(--navy); }
.ce-step.is-entering { animation: ce-enter .25s ease-out; }
.ce-step.is-entering .ce-options { pointer-events: none; } /* no accidental double taps while a step slides in */
@keyframes ce-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Answer cards */
.ce-options { display: grid; gap: 10px; }
.ce-option { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border: 2px solid var(--option-line);
  border-radius: 12px; background: #fff; color: var(--ink); font-weight: 600; line-height: 1.3; cursor: pointer;
  transition: border-color .15s, background-color .15s; }
.ce-option:hover { border-color: var(--teal-text); }
.ce-option input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--teal-text); cursor: pointer; }
.ce-option input:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 50%; }
@supports selector(:has(*)) {
  .ce-option input:focus-visible { outline: none; }
  .ce-option:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; }
}
.ce-option.is-checked { border-color: var(--teal-text); background: #e8f6f6; }
.ce-option:has(input:checked) { border-color: var(--teal-text); background: #e8f6f6; }
.ce-step.has-error .ce-option { border-color: #e3b5af; }

/* Gentle notes: shown for one answer, never block the form */
.ce-note { display: none; margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--gold-soft);
  border-left: 4px solid var(--gold); color: var(--ink); font-size: .95rem; }
.ce-step.has-note .ce-note { display: block; }
.ce-step:has(input[data-note]:checked) .ce-note { display: block; }

/* Fields */
.ce-page input[type=text], .ce-page input[type=email], .ce-page input[type=tel], .ce-page select, .ce-page textarea {
  border: 2px solid var(--field-line); border-radius: 10px; }
.ce-page input[type=text], .ce-page input[type=email], .ce-page input[type=tel], .ce-page select { min-height: 52px; }
.ce-page input[type=text]:focus, .ce-page input[type=email]:focus, .ce-page input[type=tel]:focus,
.ce-page select:focus, .ce-page textarea:focus { border-color: var(--navy); outline: 3px solid var(--navy); outline-offset: 2px; }
.ce-select { font-weight: 600; }
.ce-step-intro { margin: -2px 0 16px; font-size: .95rem; color: var(--muted); }
.ce-fields-2 { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 14px; }
.ce-field-zip_code input { max-width: 12rem; }
.ce-hint { margin: -2px 0 6px; font-size: .88rem; color: var(--muted); }
.ce-page .field-error { margin-top: 8px; }
.ce-page textarea { min-height: 96px; }

/* Consent */
.ce-consent-field { margin: 4px 0 0; }
.ce-consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 2px solid var(--option-line); border-radius: 12px;
  background: var(--off); color: var(--ink); font-size: .92rem; line-height: 1.5; cursor: pointer; }
.ce-consent input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--teal-text); cursor: pointer; }
.ce-consent:has(input:checked) { border-color: var(--teal-text); background: #e8f6f6; }
.ce-consent input:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
@supports selector(:has(*)) {
  .ce-consent input:focus-visible { outline: none; }
  .ce-consent:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; }
}
.ce-submit { margin-top: 18px; padding-left: .75em; padding-right: .75em; font-size: 1rem; }

/* Back / Next */
.ce-nav { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.ce-next { margin-left: auto; min-width: 120px; }
.ce-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 4px; border: 0; border-radius: 8px;
  background: none; color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
.ce-back:hover { text-decoration: underline; }
.icon-back { transform: scaleX(-1); }

/* How it works, FAQ, disclaimers */
.ce-again { margin: 28px 0 0; }
.ce-disclaimers { background: #fff; border-top: 1px solid var(--line); padding: 36px 0 40px; }
.ce-disclaimers p { font-size: .95rem; color: var(--ink); }
.ce-disclaimers p:last-child { margin-bottom: 0; }

/* Thank-you page */
.ce-hero-thanks { padding: 36px 0 40px; }
.ce-hero-thanks .lead { margin: 0; }
.ce-fineprint { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }

/* Footer */
.ce-footer { padding: 28px 0 24px; }
.site-footer .ce-footer-links { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0 0 8px; }
.site-footer .ce-footer-links li { padding: 0; }
.ce-footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.ce-footer-legal { margin: 0; font-size: .85rem; color: #8ea0b9; }
.ce-footer-firms { margin: 0 0 6px; font-size: .9rem; }
.ce-footer-firms a { display: inline-flex; align-items: center; min-height: 44px; }
.ce-footer :focus-visible { outline-color: var(--gold); }

@media (min-width: 480px) {
  .ce-fields-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ce-cta .btn { width: auto; }
}
@media (min-width: 640px) {
  .ce-card { padding: 26px 24px 28px; }
}
@media (min-width: 960px) {
  .ce-hero { padding: 56px 0 72px; }
  .ce-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 56px; align-items: start; }
  .ce-hero-copy { padding-top: 28px; }
  .ce-card { padding: 30px 30px 32px; }
  .ce-page .section { padding: 72px 0; }
  .ce-hero-thanks { padding: 56px 0 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .ce-step.is-entering { animation: none; }
}

/* "Hold the Pen" video (Essa, 5 Nov 2026): 9:16, poster only until the visitor presses play */
.ce-video { margin: 0 auto 28px; max-width: 300px; }
.ce-video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 18px;
  background: #0b1f3a; box-shadow: 0 18px 40px rgba(11, 31, 58, 0.18); }
