/* AI Readiness Audit intake form. Builds on styles.css. */

.intake-hero { background: linear-gradient(178deg, #0B2B3C 0%, #0D3A47 62%, #10555A 100%); }
.intake-hero__inner { display: flex; flex-direction: column; gap: 18px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); max-width: 1440px; }
.intake-hero__inner > * { max-width: 760px; }
.intake-hero h1 { color: var(--paper); font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -0.8px; }
.intake-hero__lede { color: var(--on-dark-soft); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; }
.intake-facts { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--on-dark); font-size: 15px; }
.intake-facts li { padding-left: 22px; position: relative; }
.intake-facts li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 2px; background: var(--teal-bright); }
.intake-facts strong { color: var(--paper); font-weight: 600; }

.intake-body { padding-top: clamp(28px, 4vw, 48px); padding-bottom: var(--pad-y); }
.intake-form { max-width: 860px; display: flex; flex-direction: column; gap: 20px; }

.intake-section { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); margin: 0; min-width: 0; }
fieldset.intake-section { display: flex; flex-direction: column; gap: 18px; }
.intake-section legend, .intake-section summary { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2vw, 24px); color: var(--navy); display: flex; align-items: center; gap: 12px; }
fieldset.intake-section legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; }
fieldset.intake-section legend + * { clear: both; }
.intake-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--mint); color: var(--teal); font-size: 15px; flex: none; }
.intake-help { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Collapsible focus areas */
details.area { padding: 0; }
details.area summary { cursor: pointer; list-style: none; padding: clamp(18px, 2.6vw, 26px) clamp(20px, 3vw, 32px); }
details.area summary::-webkit-details-marker { display: none; }
details.area summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s ease; flex: none; }
details.area[open] summary::after { transform: rotate(-135deg); }
.area-tag { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); background: var(--sand); border-radius: 999px; padding: 4px 10px; }
.area-tag:empty { display: none; }
.area--focus { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal) inset; }
.area--focus .area-tag { color: var(--paper); background: var(--teal); }
.area__body { display: flex; flex-direction: column; gap: 18px; padding: 0 clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px); }

/* Fields */
.intake-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.field--wide { grid-column: 1 / -1; }
.field-label { font-size: 15px; font-weight: 600; }
.req { font-weight: 500; font-size: 12px; color: var(--teal); margin-left: 4px; }
.intake-form input[type="text"], .intake-form input[type="email"], .intake-form input[type="tel"], .intake-form select, .intake-form textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%;
}
.intake-form textarea { resize: vertical; line-height: 1.5; }
.intake-form input:focus, .intake-form select:focus, .intake-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 139, 132, .18); }
.intake-form ::placeholder { color: #8DA0A7; }

.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; font-size: 15px; }
.checks label, .consent { display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; cursor: pointer; }
.intake-form input[type="checkbox"] { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--teal); flex: none; }

/* Focus choice cards */
.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.choice-card { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; background: #fff; transition: border-color .15s ease, background-color .15s ease; }
.choice-card span { display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.choice-card strong { color: var(--navy); font-size: 16px; }
.choice-card:has(input:checked) { border-color: var(--teal); background: var(--mint); }

.task-rows { display: flex; flex-direction: column; gap: 10px; }
.task-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; }

.intake-privacy { background: var(--mint); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.intake-privacy h2 { font-size: 17px; }
.intake-privacy p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.consent { font-size: 15px; font-weight: 600; }

.intake-turnstile { min-height: 65px; }
.intake-turnstile[hidden] { display: none; }
.intake-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.intake-submit button { border: 0; cursor: pointer; font-family: inherit; }
.intake-submit button:disabled { opacity: .7; cursor: progress; }
.intake-small { font-size: 14px; color: var(--muted); }

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.intake-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Privacy page */
.legal { max-width: 760px; padding-top: clamp(28px, 4vw, 48px); padding-bottom: var(--pad-y); }
.legal h2 { font-size: clamp(20px, 2vw, 24px); margin: 32px 0 10px; }
.legal p, .legal li { line-height: 1.7; color: var(--ink); }
.legal p { margin: 0 0 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal a { color: var(--teal); }
.legal__updated { color: var(--muted); font-size: 14px; }

/* Thank-you and error pages */
.intake-done { min-height: 100vh; display: grid; place-items: center; padding: 32px var(--pad-x); background: linear-gradient(178deg, #0B2B3C 0%, #0D3A47 62%, #10555A 100%); }
.intake-done__card { background: var(--paper); border-radius: 20px; padding: clamp(28px, 5vw, 48px); max-width: 560px; display: flex; flex-direction: column; gap: 16px; }
.intake-done__card h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }
.intake-done__card p { color: var(--muted); line-height: 1.6; }
.intake-sign { color: var(--ink) !important; font-weight: 600; }
.intake-errors { margin: 0; padding-left: 20px; color: var(--ink); line-height: 1.6; }

@media (max-width: 760px) {
  .intake-grid, .checks { grid-template-columns: 1fr; }
  .task-row { grid-template-columns: 1fr; }
}
