/* =========================================================
   theme-align.css — aligns base.njk pages (articles,
   assessment, contractors, professionals) to the homepage
   design system. Loaded AFTER styles.css so it overrides.
   ========================================================= */

/* ---- Shared design tokens ---- */
:root {
  --ink: #0E1620;
  --ink-2: #1F2A37;
  --muted: #5B6B79;
  --paper: #F2EEE5;
  --bone: #FAF7F1;
  --surface: #FAF7F1;
  --surface-2: #FAF7F1;
  --rule: #D9D2C2;
  --rule-soft: #E5DFD0;
  --slate: #5A6478;
  --slate-2: #8A92A3;
  --accent: #B8410C;
  --accent-2: #D9651E;
  --forest: #1F4D3E;
  --brick: #7A2222;
  --line: rgba(14, 22, 32, 0.12);
  --gold: #B8410C;
  --gold-dark: #8F3209;
  --shadow: 0 1px 0 rgba(14,22,32,.04), 0 12px 40px -16px rgba(14,22,32,.18);
  --shadow-soft: 0 14px 38px -24px rgba(14, 22, 32, 0.18);
  --f-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --f-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

html, body { background: var(--paper) !important; }
body {
  color: var(--ink) !important;
  font-family: var(--f-sans) !important;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
main, main#main { background: var(--paper) !important; }

/* Kill styles.css body gradient on assessment pages */
body.assessment-layout {
  background: var(--paper) !important;
}

/* Serif display headings */
h1, h2,
.page-hero h1, .page-hero-inner h1,
.article h1, .article h2,
.section h2, .section-inner h2,
.qf-head h4 {
  font-family: var(--f-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Mono eyebrow/breadcrumb labels */
.breadcrumbs, .eyebrow, .lab, .section-label, .card-eyebrow {
  font-family: var(--f-mono);
}

/* ---- Legacy .button overrides ---- */
.button {
  border-radius: 6px;
  font-family: var(--f-sans);
  font-weight: 500;
  border: 1px solid transparent;
  transition: all .18s ease;
}
.button.gold, .button.primary {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.button.gold:hover, .button.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bone);
}
.button.secondary, .button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(14, 22, 32, 0.20);
}
.button.secondary:hover, .button.ghost:hover {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

/* Article accent links */
.article a:not(.button) {
  color: var(--accent);
}

/* =========================================================
   LAYOUT: Utility bar, Header, Footer, Wrap
   (ported from homepage inline styles for base.njk pages)
   ========================================================= */

/* Wrap */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* Utility bar */
.utility { background: var(--ink); color: #C9CFDC; font-size: 12.5px; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 24px; }
.utility .left { display: flex; align-items: center; gap: 10px; }
.utility .pin { width: 6px; height: 6px; background: var(--accent-2); border-radius: 50%; display: inline-block; box-shadow: 0 0 0 4px rgba(217,101,30,.18); }
.utility a { color: #fff; border-bottom: 1px dotted #6E7689; padding-bottom: 1px; }
.utility a:hover { border-bottom-color: #fff; }
.utility .right { display: flex; gap: 18px; color: #9AA3B5; }
.utility .right .sep { opacity: .4; }

/* Header nav */
header.nav { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(140%) blur(8px); }
header.nav .inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .mark { width: 38px; height: 38px; background: var(--ink); color: var(--paper); border-radius: 6px; display: grid; place-items: center; font-family: var(--f-serif); font-size: 22px; font-style: italic; letter-spacing: -.02em; }
.brand .label { line-height: 1.05; min-width: 0; }
.brand .label .name { font-family: var(--f-serif); font-size: 22px; letter-spacing: -.01em; white-space: nowrap; }
nav.primary { display: flex; gap: 32px; align-items: center; }
nav.primary a { font-size: 14.5px; color: var(--ink); position: relative; padding: 6px 0; }
nav.primary a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; padding: 0; z-index: 51; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px 32px 24px; z-index: 50; }
.mobile-nav a { padding: 14px 0; border-bottom: 1px solid var(--rule-soft); font-size: 16px; }
.mobile-nav[data-open="true"] { display: flex; }

/* Footer */
footer { background: var(--ink); color: #A5ACBA; padding: 64px 0 32px; border-top: 1px solid #2A3445; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid #2A3445; }
.foot-brand .mark { width: 42px; height: 42px; background: var(--paper); color: var(--ink); border-radius: 6px; display: grid; place-items: center; font-family: var(--f-serif); font-size: 24px; font-style: italic; margin-bottom: 18px; }
.foot-brand .name { font-family: var(--f-serif); font-size: 22px; color: var(--paper); margin-bottom: 6px; }
.foot-brand .tag { font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #6E7689; margin-bottom: 18px; }
.foot-brand .desc { font-size: 13.5px; line-height: 1.55; color: #8A92A3; max-width: 30ch; }
.foot-col h6 { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #6E7689; margin-bottom: 18px; font-weight: 500; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 13.5px; color: #C9CFDC; }
.foot-col a:hover { color: var(--paper); }
.foot-disc { padding: 32px 0; border-bottom: 1px solid #2A3445; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 48px; align-items: start; }
.foot-disc > :first-child { grid-column: 1 / 4; }
.foot-disc > :last-child { grid-column: 5 / 6; }
.foot-disc .lab { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #6E7689; margin-bottom: 10px; }
.foot-disc p { font-size: 12.5px; line-height: 1.65; color: #8A92A3; }
.foot-bottom { padding-top: 32px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #6E7689; font-family: var(--f-mono); letter-spacing: .04em; }
.foot-bottom .right { display: flex; gap: 24px; }
.foot-bottom .footer-service-area { justify-content: flex-end; }
.foot-bottom .footer-serving { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.foot-bottom .footer-serving .pin { width: 6px; height: 6px; background: var(--accent-2); border-radius: 50%; display: inline-block; box-shadow: 0 0 0 4px rgba(217,101,30,.18); flex: 0 0 auto; }
.foot-bottom .footer-serving a { color: #fff; border-bottom: 1px dotted #6E7689; padding-bottom: 1px; }
.foot-bottom .footer-serving a:hover { border-bottom-color: #fff; }

/* (Section, footer, form overrides are now in the scoped assessment block above) */

/* ---- Layout responsive ---- */
@media (max-width: 980px) {
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-disc { grid-template-columns: 1fr; gap: 32px; }
  .foot-disc > div:first-child, .foot-disc > div:last-child { grid-column: auto; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  nav.primary { display: none; }
  .nav-toggle { display: flex; order: 2; }
  .nav-actions { display: none; }
  header.nav .inner { height: 64px; }
  .brand { gap: 12px; flex: 1; min-width: 0; }
  .brand .mark { width: 34px; height: 34px; font-size: 20px; flex: 0 0 auto; }
  .brand .label .name { font-size: 19px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .foot-top { grid-template-columns: 1fr; gap: 36px; }
  .foot-brand .desc { max-width: none; }
  .foot-bottom .footer-service-area { display: none; }
  .utility { font-size: 12px; }
  .utility .wrap { height: auto; padding-top: 8px; padding-bottom: 8px; }
  .utility .right { display: none; }
  .brand .label .name { font-size: 17px; }
  .brand .mark { width: 32px; height: 32px; font-size: 19px; }
  .foot-col ul { gap: 4px; }
  .foot-col a { display: inline-block; padding: 8px 0; }
}
@media (max-width: 768px) {
  .utility { font-size: 11.5px; }
  .utility .wrap { height: auto; min-height: 0; padding-top: 6px; padding-bottom: 6px; }
  .utility .right { display: none; }
  header.nav .inner { height: 52px; }
  .brand { gap: 10px; }
  .brand .mark { width: 30px; height: 30px; font-size: 17px; border-radius: 5px; }
  .brand .label .name { font-size: 16px; }
  .nav-toggle { width: 36px; height: 36px; }
  footer { padding: 28px 0 20px; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 14px 18px; padding-bottom: 18px; }
  .foot-top > div:nth-child(1) { grid-column: 1 / -1; }
  .foot-brand { margin-bottom: 4px; }
  .foot-brand .mark { width: 26px; height: 26px; font-size: 15px; margin-bottom: 8px; }
  .foot-brand .name { font-size: 17px; margin-bottom: 2px; }
  .foot-brand .tag { margin-bottom: 8px; }
  .foot-brand .desc { font-size: 11.5px; line-height: 1.45; max-width: none; }
  .foot-col h6 { font-size: 9px; letter-spacing: .08em; margin-bottom: 8px; }
  .foot-col ul { gap: 4px; }
  .foot-col a { padding: 3px 0; font-size: 13px; }
  .foot-disc { grid-template-columns: 1fr; gap: 16px; padding: 18px 0; }
  .foot-disc p { font-size: 12.5px; line-height: 1.5; }
  .foot-bottom { padding-top: 18px; }
  .mobile-nav { padding: 0 24px; }
  .mobile-nav[data-open="true"] {
    position: fixed; left: 0; right: 0; top: 0;
    height: auto; max-height: 100dvh;
    z-index: 200; overflow-y: auto;
    padding: 60px 24px 24px;
    border-bottom: none; background: var(--paper);
  }
  .mobile-nav[data-open="true"] a { font-size: 18px; padding: 16px 0; }
  body.nav-open { overflow: hidden; }
  body.nav-open header.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 210; }
}

/* =========================================================
   ASSESSMENT LAYOUT — full redesign to match homepage
   ========================================================= */

/* Viewport lock for assessment pages */
.assessment-layout {
  overflow-x: hidden;
}

/* Ensure proper block flow — no overlap */
.assessment-layout main {
  display: block !important;
  position: relative;
  z-index: 1;
}

/* Override styles.css .section padding (80px 0) and .form-shell max-width */
.assessment-layout .section {
  padding-top: 40px !important;
  padding-right: 32px !important;
  padding-bottom: 80px !important;
  padding-left: 32px !important;
  max-width: none !important;
  overflow: visible !important;
}
.assessment-layout .form-shell {
  max-width: 720px !important;
  padding: 0 !important;
}

/* Override styles.css .form-card margin-bottom and .field margin-bottom */
.assessment-layout .form-card {
  margin-bottom: 0 !important;
}
.assessment-layout .field {
  margin-bottom: 0 !important;
}
.assessment-layout .form-actions {
  margin-top: 0 !important;
  border-top: 1px solid var(--rule-soft);
  padding-top: 24px;
}

/* Ensure footer doesn't overlap */
.assessment-layout footer {
  position: relative !important;
  z-index: 1;
  clear: both;
}

/* ---- Progress strip (top of steps 2–7) ---- */
.progress-strip {
  background: var(--bone);
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}
.progress-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.progress-strip-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.progress-track {
  height: 4px;
  background: var(--rule);
  border-radius: 999px;
  overflow: hidden;
  max-width: 480px;
}
.progress-track-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width .3s ease;
}

/* ---- Step label (step 1 only, no progress bar) ---- */
.assessment-step-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 18px 32px 0;
  max-width: 1280px;
  margin: 0 auto;
}

/* ---- Form shell ---- */
.form-shell {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 0;
}

/* ---- Form card (the main white card) ---- */
.form-card,
.assessment-layout .form-card {
  background: var(--bone) !important;
  border: 1px solid var(--rule) !important;
  border-radius: 14px !important;
  box-shadow: var(--shadow) !important;
  padding: 36px 40px !important;
  margin-bottom: 0 !important;
}

/* ---- Card eyebrow ---- */
.card-eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* ---- Form step ---- */
.form-step {
  display: none;
}
.form-step.active,
.form-step.is-active {
  display: grid;
  gap: 24px;
}
.form-step h2 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.form-step .step-copy {
  margin: -8px 0 0;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.55;
}

/* ---- Field grid ---- */
.field-grid {
  display: grid;
  gap: 18px;
}
.field-grid.two {
  grid-template-columns: 1fr 1fr;
}
.field-grid .full-width {
  grid-column: 1 / -1;
}

/* ---- Fields ---- */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label,
.field legend {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--f-sans);
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--bone);
  color: var(--ink);
  transition: all .18s;
  outline: none;
  min-height: 46px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--slate-2);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184,65,12,.08);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field small, .field em {
  color: var(--slate-2);
  font-size: 12px;
  font-style: normal;
}

/* ---- Date fields ---- */
.date-field {
  position: relative;
}
.date-field input {
  width: 100%;
}
.date-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-2);
  pointer-events: none;
}

/* ---- Select box wrapper ---- */
.select-box {
  position: relative;
}
.select-box select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235A6478' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ---- Buttons (homepage .btn style) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all .18s ease;
  cursor: pointer;
  line-height: 1;
}
.btn .arrow {
  transition: transform .18s ease;
}
.btn:hover .arrow {
  transform: translateX(3px);
}
.btn-primary {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

/* ---- Form actions bar ---- */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--rule-soft);
  padding-top: 24px;
}

/* ---- Form alert ---- */
.form-alert {
  color: var(--brick);
  font-size: 13px;
  font-weight: 500;
  min-height: 20px;
}

/* ---- Persist row (save my info checkbox) ---- */
.persist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.persist-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

/* ---- TCPA consent row ---- */
.tcpa-consent-row {
  margin-top: 16px;
  margin-bottom: 16px;
  padding: 14px;
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}
.tcpa-consent-row label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: var(--f-sans) !important;
  font-size: 13px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--slate) !important;
  font-weight: 400 !important;
}
.tcpa-consent-row input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.tcpa-consent-row a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Consent row (review step) ---- */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--slate);
  line-height: 1.5;
  cursor: pointer;
}
.consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.consent-row a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Chip/pill selector (materials step) ---- */
.chip-section {
  border: none;
  padding: 0;
  margin: 0;
}
.chip-section-title {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 10px;
  font-weight: 500;
}
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
  line-height: 1;
  user-select: none;
}
.chip:hover {
  border-color: var(--ink);
}
.chip.is-selected {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

/* ---- Segmented button group (yes/no toggles) ---- */
.segmented-group {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bone);
}
.segmented-btn {
  padding: 10px 18px;
  background: transparent;
  border: none;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  transition: all .15s ease;
  border-right: 1px solid var(--rule);
  line-height: 1;
}
.segmented-btn:last-child {
  border-right: none;
}
.segmented-btn:hover {
  color: var(--ink);
  background: rgba(14,22,32,.04);
}
.segmented-btn.is-selected {
  background: var(--ink);
  color: var(--bone);
}

/* ---- Condition section labels ---- */
.cond-section {
  display: grid;
  gap: 16px;
}
.cond-section-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate-2);
  font-weight: 500;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--rule-soft);
}
.cond-section:first-of-type .cond-section-label {
  border-top: none;
  padding-top: 0;
}

/* ---- Upload zone (photos step) ---- */
.upload-zone {
  border: 1px dashed var(--rule);
  border-radius: 10px;
  background: var(--bone);
  padding: 0;
  transition: border-color .15s, background .15s;
  position: relative;
}
.upload-zone.is-dragover {
  border-color: var(--accent);
  background: rgba(184,65,12,.04);
}
.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 24px;
  cursor: pointer;
  text-align: center;
  color: var(--slate);
}
.upload-label svg {
  color: var(--slate-2);
}
.upload-label strong {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.upload-label small {
  font-size: 12px;
  color: var(--slate-2);
}
.capture-btn {
  margin: 0 auto 16px;
}

/* ---- Photo previews ---- */
.photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.photo-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(14,22,32,.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* ---- AI panel ---- */
.ai-panel {
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  display: grid;
  gap: 14px;
}
.ai-panel[hidden] {
  display: none;
}
.ai-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
}
.ai-panel .microcopy {
  font-size: 13px;
  color: var(--slate);
  margin: 0;
}
.ai-status {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
}
.ai-status.is-error { color: var(--brick); }
.ai-status.is-success { color: var(--forest); }
.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ai-suggestions .chip {
  font-size: 12px;
  padding: 6px 10px;
  background: rgba(184,65,12,.06);
  border-color: rgba(184,65,12,.2);
  color: var(--ink);
  cursor: default;
}
.ai-confidence {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--slate);
}

/* ---- AI disclosure box ---- */
.ai-disclosure-box {
  margin-bottom: 16px;
  padding: 14px;
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--slate);
}
.ai-disclosure-box strong {
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
.ai-disclosure-box a {
  color: var(--accent);
}

/* ---- Referral row ---- */
.referral-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--f-sans) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 400 !important;
}
.referral-row input[type="checkbox"] {
  accent-color: var(--accent);
}

/* ---- Notices ---- */
.notice {
  border: 1px solid var(--rule);
  background: var(--bone);
  border-radius: 8px;
  padding: 16px;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.55;
}
.notice strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---- Turnstile shell ---- */
.turnstile-shell {
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 8px;
  padding: 14px;
}
.turnstile-shell[hidden] { display: none; }
.turnstile-widget { min-height: 65px; }

/* ---- Microcopy ---- */
.microcopy {
  font-size: 13px;
  color: var(--slate-2);
  line-height: 1.5;
}
.microcopy a {
  color: var(--accent);
}

/* ---- Step indicator ---- */
.step-indicator {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate-2);
  text-align: center;
  padding: 16px 0 0;
}

/* ---- Submitted page ---- */
.submitted-card {
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 48px 40px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.submitted-card .eyebrow {
  justify-content: center;
  margin-bottom: 20px;
}
.submitted-card h2 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.08;
  margin: 0 0 16px;
  color: var(--ink);
}
.submitted-card p {
  color: var(--slate);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 8px;
}
.submitted-card .mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--slate-2);
}
.submitted-card .btn {
  margin-top: 28px;
}

/* ---- Hidden utility ---- */
.hidden { display: none !important; }

/* =========================================================
   RESPONSIVE — Assessment
   ========================================================= */
@media (max-width: 768px) {
  .assessment-layout .section {
    padding-top: 28px !important;
    padding-right: 20px !important;
    padding-bottom: 60px !important;
    padding-left: 20px !important;
  }
  .assessment-step-label {
    padding: 14px 20px 0;
  }
  .progress-strip-inner {
    padding: 0 20px;
  }
  .form-card,
  .assessment-layout .form-card {
    padding: 24px 20px !important;
    border-radius: 10px !important;
  }
  .field-grid.two {
    grid-template-columns: 1fr;
  }
  .form-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .segmented-btn {
    padding: 10px 14px;
    font-size: 13px;
  }
  .submitted-card {
    padding: 36px 20px;
  }
  .submitted-card h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .form-card {
    padding: 20px 16px;
  }
  .form-step h2 {
    font-size: 24px;
  }
  .chip {
    font-size: 12.5px;
    padding: 8px 12px;
  }
}
