.quote-hero { padding: var(--space-12) 0 var(--space-16); background: var(--paper); }
.quote-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--space-16); align-items: end; }
.quote-hero h1 { max-width: 14ch; }
.quote-hero-grid > p { max-width: 36rem; color: var(--ink-soft); font-size: var(--step-1); }
.quote-section { padding: var(--space-16) 0 var(--space-24); }
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(19rem, .55fr); gap: var(--space-10); align-items: start; }

.quote-progress { margin-bottom: var(--space-8); }
.progress-copy { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-3); font-size: .75rem; }
.progress-copy span { color: var(--brand); font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.progress-copy strong { color: var(--ink-soft); }
.progress-track { height: 3px; overflow: hidden; background: var(--line); }
.progress-track span { display: block; height: 100%; background: var(--brand); transition: width 260ms ease; }
.quote-progress ol { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: var(--space-4); list-style: none; }
.quote-progress li { display: flex; align-items: center; gap: .45rem; color: #928b93; font-size: .68rem; }
.quote-progress li span { display: grid; width: 1.4rem; height: 1.4rem; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: .62rem; font-weight: 800; }
.quote-progress li.is-active, .quote-progress li.is-complete { color: var(--brand); }
.quote-progress li.is-active span, .quote-progress li.is-complete span { border-color: var(--brand); background: var(--brand); color: white; }

.quote-form { border: 1px solid var(--line); background: var(--surface); }
.quote-step { min-height: 31rem; margin: 0; padding: var(--space-10); border: 0; }
.quote-step legend { display: block; width: 100%; padding: 0; font: var(--step-3)/1.1 var(--font-display); letter-spacing: -.025em; }
.step-intro { margin: var(--space-3) 0 var(--space-8); color: var(--ink-soft); }
.quote-actions { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) var(--space-10); border-top: 1px solid var(--line); background: var(--paper); }
.quote-actions > :last-child { margin-left: auto; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.radio-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.radio-card { position: relative; display: grid; min-height: 13.5rem; align-content: start; padding: var(--space-6); border: 1px solid var(--line); cursor: pointer; transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast); }
.radio-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-wash); box-shadow: inset 3px 0 var(--brand); }
.radio-card input { position: absolute; opacity: 0; }
.radio-card input:focus-visible ~ .radio-indicator { outline: 3px solid color-mix(in srgb, var(--brand) 75%, white); outline-offset: 3px; }
.radio-indicator { position: absolute; top: var(--space-5); right: var(--space-5); width: 1.2rem; height: 1.2rem; border: 1px solid var(--line); border-radius: 50%; background: white; }
.radio-card input:checked + .radio-indicator { border: .34rem solid var(--brand); }
.radio-number { margin-bottom: var(--space-8); color: var(--brand); font: 1.5rem var(--font-display); }
.radio-card strong { margin-bottom: var(--space-3); font: 1.35rem var(--font-display); }
.radio-card small { color: var(--ink-soft); line-height: 1.55; }

.service-select-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.service-select { position: relative; display: flex; min-height: 6.2rem; align-items: flex-start; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--line); cursor: pointer; transition: border-color var(--transition-fast), background var(--transition-fast); }
.service-select:hover { border-color: var(--brand); }
.service-select:has(input:checked) { border-color: var(--brand); background: var(--brand-wash); }
.service-select input { position: absolute; opacity: 0; }
.service-select input:focus-visible + .service-select-check { outline: 3px solid color-mix(in srgb, var(--brand) 75%, white); outline-offset: 3px; }
.service-select-check { display: grid; width: 1.15rem; height: 1.15rem; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); background: white; }
.service-select input:checked + .service-select-check { border-color: var(--brand); background: var(--brand); }
.service-select input:checked + .service-select-check::after { content: '✓'; color: white; font-size: .68rem; font-weight: 900; }
.service-select span:last-child { display: grid; }
.service-select small { color: var(--brand); font: .66rem var(--font-display); }
.service-select strong { font-size: .8rem; line-height: 1.25; }

.status-options { display: grid; gap: .65rem; }
.status-option { position: relative; display: flex; min-height: 3.65rem; align-items: center; gap: var(--space-4); padding: .8rem 1rem; border: 1px solid var(--line); cursor: pointer; }
.status-option:hover, .status-option:has(input:checked) { border-color: var(--brand); background: var(--brand-wash); }
.status-option input { position: absolute; opacity: 0; }
.status-option > span { width: 1.15rem; height: 1.15rem; border: 1px solid var(--line); border-radius: 50%; background: white; }
.status-option input:checked + span { border: .33rem solid var(--brand); }
.status-option input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 75%, white); outline-offset: 3px; }
.status-option strong { font-size: .87rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.field { display: grid; align-content: start; gap: .42rem; }
.field-wide { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: .76rem; font-weight: 750; }
.optional { color: var(--ink-soft); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 3.15rem; border: 1px solid var(--line); border-radius: 0; background: white; color: var(--ink); padding: .75rem .85rem; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9a929a; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px var(--brand-wash); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { min-height: 1em; margin-top: .35rem; color: var(--danger); font-size: .72rem; font-weight: 650; }

.file-upload { margin-top: var(--space-6); }
.file-upload > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-upload > label { display: flex; min-height: 8.5rem; align-items: center; justify-content: center; gap: var(--space-4); padding: var(--space-5); border: 1px dashed #b9adb8; background: var(--paper); cursor: pointer; text-align: left; transition: border-color var(--transition-fast), background var(--transition-fast); }
.file-upload.is-dragging > label, .file-upload > label:hover { border-color: var(--brand); background: var(--brand-wash); }
.file-upload > input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--brand) 75%, white); outline-offset: 3px; }
.file-upload svg { width: 2rem; fill: none; stroke: var(--brand); stroke-width: 1.5; }
.file-upload label span { display: grid; }
.file-upload label strong { font-size: .85rem; }
.file-upload label small { color: var(--ink-soft); font-size: .72rem; }
.file-preview { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4); border: 1px solid var(--line); }
.file-preview span { display: grid; }
.file-preview strong { max-width: 30rem; overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.file-preview small { color: var(--ink-soft); font-size: .68rem; }
.file-preview button { border: 0; background: transparent; color: var(--danger); font-size: .72rem; font-weight: 750; }
.privacy-check { position: relative; display: flex; align-items: flex-start; gap: var(--space-3); margin-top: var(--space-5); cursor: pointer; }
.privacy-check input { position: absolute; opacity: 0; }
.privacy-check > span { display: grid; width: 1.2rem; height: 1.2rem; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); background: white; }
.privacy-check input:checked + span { border-color: var(--brand); background: var(--brand); }
.privacy-check input:checked + span::after { content: '✓'; color: white; font-size: .68rem; font-weight: 900; }
.privacy-check input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 75%, white); outline-offset: 3px; }
.privacy-check small { color: var(--ink-soft); line-height: 1.5; }
.privacy-check a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.form-status { margin: 0 var(--space-10) var(--space-5); padding: .8rem 1rem; border-left: 3px solid var(--danger); background: #fff1f1; color: #7b2929; font-size: .8rem; }

.quote-summary { position: sticky; top: calc(var(--header-height) + 1.5rem); border: 1px solid var(--line); background: var(--paper); }
.summary-mobile-toggle { display: none; }
.summary-content { padding: var(--space-6); }
.summary-content dl > div { padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.summary-content dt { margin-bottom: .3rem; color: var(--ink-soft); font-size: .66rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.summary-content dd { font-size: .85rem; font-weight: 700; }
.summary-content dd ul { display: grid; gap: .25rem; list-style: none; font-weight: 500; }
.summary-content dd li::before { content: '·'; margin-right: .45rem; color: var(--brand); }
.summary-estimate { margin-top: var(--space-6); padding: var(--space-5); background: var(--surface); }
.summary-estimate span { display: block; color: var(--ink-soft); font-size: .65rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.summary-estimate strong { display: block; margin: .2rem 0; color: var(--brand); font: 1.2rem var(--font-display); }
.summary-estimate p { color: var(--ink-soft); font-size: .7rem; line-height: 1.5; }
.summary-security { display: flex; gap: .55rem; margin-top: var(--space-5); color: var(--ink-soft); font-size: .67rem; line-height: 1.45; }
.summary-security svg { width: 1.2rem; flex: 0 0 auto; fill: none; stroke: var(--success); stroke-width: 1.6; }

.quote-success { padding: var(--space-12); border: 1px solid var(--line); text-align: center; }
.success-mark { display: grid; width: 4rem; height: 4rem; place-items: center; margin: 0 auto var(--space-6); border-radius: 50%; background: #e2f0e8; color: var(--success); font-size: 1.7rem; font-weight: 900; }
.quote-success .eyebrow { justify-content: center; }
.quote-success h2 { max-width: 18ch; margin-inline: auto; }
.quote-success > p:not(.eyebrow) { max-width: 36rem; margin: var(--space-4) auto; color: var(--ink-soft); }
.quote-id { display: inline-block; margin: var(--space-4) 0; padding: .6rem .85rem; background: var(--paper); color: var(--brand); font: 1rem ui-monospace, monospace; letter-spacing: .08em; }
.quote-success ul { display: inline-grid; gap: .35rem; margin: var(--space-5) auto var(--space-8); list-style: none; text-align: left; }
.quote-success li::before { content: '✓'; margin-right: .55rem; color: var(--success); font-weight: 900; }
.quote-success .button-row { justify-content: center; }

@media (max-width: 62rem) {
    .quote-layout { grid-template-columns: minmax(0, 1fr) 18rem; gap: var(--space-6); }
    .quote-step { padding: var(--space-8); }
    .quote-actions { padding-inline: var(--space-8); }
    .service-select-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 48rem) {
    .quote-hero-grid { grid-template-columns: 1fr; gap: var(--space-5); }
    .quote-layout { display: flex; flex-direction: column; }
    .quote-summary { position: static; order: -1; width: 100%; }
    .summary-mobile-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4); border: 0; background: var(--paper); text-align: left; }
    .summary-mobile-toggle span { display: grid; }
    .summary-mobile-toggle small { color: var(--brand); font-size: .65rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
    .summary-mobile-toggle strong { font-size: .78rem; }
    .summary-mobile-toggle i { width: .7rem; height: .7rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform var(--transition-fast); }
    .summary-mobile-toggle[aria-expanded='true'] i { transform: rotate(225deg); }
    .summary-content { display: none; border-top: 1px solid var(--line); }
    .summary-content.is-open { display: block; }
    .quote-progress ol small { display: none; }
    .quote-progress li { justify-content: center; }
}

@media (max-width: 36rem) {
    .quote-hero { padding-top: var(--space-8); }
    .quote-section { padding-top: var(--space-8); }
    .quote-step { min-height: 32rem; padding: var(--space-6); }
    .quote-actions { align-items: stretch; padding: var(--space-4); }
    .quote-actions .button { flex: 1; padding-inline: .8rem; }
    .radio-card-grid, .service-select-grid, .form-grid { grid-template-columns: 1fr; }
    .radio-card { min-height: 10.5rem; }
    .radio-number { margin-bottom: var(--space-5); }
    .field-wide { grid-column: auto; }
    .form-status { margin-inline: var(--space-6); }
    .quote-success { padding: var(--space-8) var(--space-5); }
}

