/* Isolated quote interface: no dependency on the homepage styles. */
:root {
  color-scheme: light;
  --ink: #202a2d;
  --muted: #5e6a6d;
  --line: #dce3e3;
  --canvas: #f7f9f9;
  --accent: #006d68;
  --accent-hover: #005550;
  --accent-soft: #edf7f5;
  --danger: #af2929;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Montserrat, Arial, sans-serif; font-size: 15px; line-height: 1.6; letter-spacing: 0; }
button, input, textarea { font: inherit; letter-spacing: 0; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 4px; }
button, a { touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .5; }
button, input, textarea { border-radius: 6px; }
button { color: inherit; }
button, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.3; }
:focus-visible { outline: 3px solid #007f78; outline-offset: 4px; }
h2[tabindex="-1"]:focus { outline: none; }
.icon { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 10; padding: 12px 20px; color: #fff; background: var(--accent); }
.skip-link:focus { top: 8px; }
.quote-header { background: #fff; border-bottom: 1px solid var(--line); }
.quote-header__inner { max-width: 1200px; margin: auto; min-height: 88px; padding: 12px 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.quote-brand { display: flex; align-items: center; min-height: 44px; }
.quote-brand img { display: block; width: 224px; max-width: 100%; height: auto; }
.header-link { display: inline-flex; align-items: center; gap: 10px; width: fit-content; min-height: 44px; text-decoration: none; font-size: 13px; font-weight: 600; }
.header-link:hover { color: var(--accent); }
.header-link--contact { justify-self: end; }
.quote-page { max-width: 1200px; margin: auto; padding: 30px 24px 56px; min-height: calc(100svh - 173px); }
.page-heading { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 20px; }
h1 { font-size: 19px; font-weight: 600; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 1px solid transparent; background: transparent; color: var(--muted); }
.icon-button:hover { background: #e9efef; color: var(--ink); }
.quote-steps { border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.quote-steps ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.quote-steps li { display: flex; align-items: center; gap: 10px; position: relative; padding: 0 0 18px; color: var(--muted); font-size: 13px; font-weight: 500; }
.quote-steps li[aria-current] { color: var(--accent); font-weight: 700; }
.quote-steps li[aria-current]::after { content: ""; height: 3px; background: var(--accent); position: absolute; bottom: -1px; left: 0; right: 0; }
.step-number { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #c8d1d2; border-radius: 50%; font-size: 12px; flex: 0 0 28px; }
.step-number .icon { width: 16px; height: 16px; }
[aria-current] .step-number { background: var(--accent); color: #fff; border-color: var(--accent); }
.is-complete .step-number { background: #e0eeea; color: var(--accent); border-color: #e0eeea; }
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 272px; column-gap: 56px; align-items: start; }
#quote-form { min-width: 0; }
#quiz-stage { min-height: 330px; }
.stage-heading { margin-bottom: 26px; }
.stage-heading h2 { font-size: 27px; font-weight: 650; max-width: 680px; text-wrap: pretty; overflow-wrap: break-word; }
.stage-heading p { margin-top: 10px; color: var(--muted); max-width: 620px; font-size: 14px; }
.question-counter { display: block; color: var(--accent); font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.detail-progress { width: 100%; height: 3px; background: #e2e8e8; margin: 0 0 22px; border-radius: 2px; overflow: hidden; }
.detail-progress span { display: block; height: 100%; background: var(--accent); }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice-grid:has(.choice--service) { grid-auto-rows: 1fr; }
.choice { display: flex; position: relative; width: 100%; text-align: left; align-items: center; gap: 14px; padding: 18px; min-height: 74px; border: 1px solid #cfd8d9; border-radius: 6px; background: #fff; transition: border-color 150ms, background 150ms, box-shadow 150ms; line-height: 1.4; }
.choice:hover { background: #f0f7f6; border-color: #71a8a2; box-shadow: 0 2px 6px #12302a08; }
.choice[aria-pressed="true"], .choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.choice__icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; color: var(--accent); background: #f0f5f5; border-radius: 6px; }
.choice__icon .icon { width: 23px; height: 23px; }
.choice__text { display: block; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.choice strong { display: block; font-size: 14px; font-weight: 600; }
.choice small { display: block; color: var(--muted); margin-top: 5px; font-size: 12px; line-height: 1.5; }
.choice__arrow { width: 16px; height: 16px; flex-basis: 16px; color: #7e8e90; }
.choice--service { min-height: 114px; }
.choice--service .choice__arrow { display: none; }
.choice--advice { background: transparent; border-style: dashed; }
.choice--advice .choice__icon { background: transparent; }
.choice--check { cursor: pointer; }
.choice input { accent-color: var(--accent); width: 20px; height: 20px; flex: 0 0 20px; margin: 0; cursor: pointer; }
.choice--check:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.quote-navigation { display: flex; gap: 12px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 20px 0 0; margin-top: 28px; min-height: 69px; }
.quote-navigation:has(button:not([hidden])) { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.quote-navigation:not(:has(button:not([hidden]))) { display: none; }
#next-step { margin-left: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 18px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; font-weight: 600; line-height: 1.45; text-decoration: none; text-align: center; }
.button--primary { background: var(--accent); color: #fff; }
.button--primary:hover { background: var(--accent-hover); }
.button--quiet { background: transparent; border-color: #cbd6d5; }
.button--quiet:hover { background: #eaf0ef; }
.text-link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 6px 0; border: 0; background: transparent; color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.skip-question { margin-top: 14px; color: var(--muted); font-weight: 500; }
.quote-aside { border-left: 1px solid var(--line); padding-left: 28px; position: sticky; top: 28px; }
.aside-caption { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.request-summary h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.request-summary p { font-size: 13px; color: var(--muted); }
.summary-line { display: flex; gap: 12px; align-items: start; margin: 16px 0; }
.summary-line > .icon { color: var(--accent); margin-top: 2px; }
.summary-line strong { font-size: 13px; display: block; font-weight: 600; line-height: 1.5; }
.summary-line small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.summary-count { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.aside-contact { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 24px; }
.phone-link { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; text-decoration: none; min-height: 44px; }
.language-note { font-size: 11px; color: var(--muted); margin-top: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, .field-label { font-size: 13px; font-weight: 600; }
.field input, .field textarea, .question-input { width: 100%; padding: 13px 14px; border: 1px solid #aebcbd; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.6; min-height: 50px; }
.field textarea, textarea.question-input { min-height: 144px; resize: vertical; }
::placeholder { color: #7c8789; opacity: 1; font-weight: 400; }
.field input:focus, .field textarea:focus, .question-input:focus { border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field--full { grid-column: 1 / -1; }
.field-hint, .character-count { color: var(--muted); font-size: 12px; }
.character-count { text-align: right; margin-top: 5px; }
.field-error { color: var(--danger); font-size: 12px; }
.contact-note { margin: 20px 0; display: flex; gap: 10px; align-items: start; color: var(--muted); font-size: 12px; }
.contact-note .icon { width: 16px; height: 16px; flex-basis: 16px; margin-top: 3px; }
.consent { display: flex; gap: 12px; align-items: start; font-size: 12px; line-height: 1.7; cursor: pointer; margin-top: 22px; }
.consent input { width: 20px; height: 20px; flex: 0 0 20px; accent-color: var(--accent); margin: 2px 0 0; }
.notice { margin-top: 22px; border-left: 3px solid #bc7c25; background: #fff7e9; padding: 16px 18px; font-size: 13px; line-height: 1.7; }
.notice--info { background: #edf4f7; border-color: #4f8b9e; }
.notice p + p { margin-top: 8px; }
.review-section { margin-bottom: 26px; }
.review-section__heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.review-section h3 { font-size: 14px; font-weight: 600; }
.review-list { margin: 0; }
.review-row { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr) 44px; gap: 16px; padding: 14px 0; border-bottom: 1px solid #e4e9e9; font-size: 13px; align-items: start; }
.review-row dt { color: var(--muted); overflow-wrap: anywhere; }
.review-row dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 500; }
.review-row .icon-button { margin-top: -7px; }
.review-row .icon { width: 16px; height: 16px; }
.review-path { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.review-path > .icon { color: var(--accent); }
.review-path strong { display: block; font-size: 14px; }
.review-path small { color: var(--muted); font-size: 12px; }
.send-section { padding-top: 24px; border-top: 1px solid var(--line); }
.send-section h3 { font-size: 17px; margin-bottom: 8px; }
.send-section > p { color: var(--muted); font-size: 13px; }
.send-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.export-actions { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 12px; }
.preview { margin-top: 18px; font-size: 12px; }
.preview summary { cursor: pointer; padding: 10px 0; font-weight: 500; }
#message-preview { min-height: 250px; font-size: 13px; margin-top: 8px; resize: vertical; }
.send-status { min-height: 24px; font-size: 12px; color: var(--accent); margin-top: 12px; }
.quote-footer { max-width: 1152px; margin: auto; border-top: 1px solid var(--line); padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; }
.quote-footer nav { display: flex; gap: 20px; }
.quote-footer a { display: inline-flex; align-items: center; min-height: 32px; }
.fallback { margin: 28px 0; }
dialog { border: 1px solid var(--line); border-radius: 8px; padding: 32px; max-width: 440px; width: calc(100% - 32px); color: var(--ink); }
dialog::backdrop { background: #10242766; }
dialog h2 { font-size: 22px; padding-right: 36px; }
dialog p { margin-top: 16px; font-size: 14px; color: var(--muted); }
.dialog-close { position: absolute; top: 12px; right: 12px; }
.dialog-actions { display: flex; justify-content: end; gap: 12px; margin-top: 26px; }
@media (max-width: 1000px) {
  .quote-layout { grid-template-columns: minmax(0, 1fr) 236px; column-gap: 28px; }
  .quote-aside { padding-left: 22px; }
  .choice { gap: 10px; padding: 16px; }
  .choice--service { min-height: 130px; }
  .quote-footer { margin: 0 24px; }
}
@media (max-width: 760px) {
  .quote-header__inner { min-height: 72px; padding: 10px 20px; gap: 12px; }
  .quote-brand img { width: 184px; }
  .header-link span { display: none; }
  .header-link { width: 40px; justify-content: center; }
  .quote-page { padding: 20px 20px 36px; min-height: calc(100svh - 156px); }
  .page-heading { margin-bottom: 14px; }
  h1 { font-size: 17px; }
  .quote-steps { margin-bottom: 26px; }
  .quote-steps ol { gap: 8px; }
  .quote-steps li { gap: 6px; font-size: 10px; padding-bottom: 14px; flex-direction: column; align-items: flex-start; }
  .step-number { width: 25px; height: 25px; flex-basis: 25px; font-size: 11px; }
  .quote-layout { display: block; }
  .stage-heading { margin-bottom: 22px; }
  .stage-heading h2 { font-size: 23px; }
  .stage-heading p { font-size: 13px; margin-top: 8px; }
  .choice--service { min-height: 134px; padding: 16px 14px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .choice-grid { gap: 10px; }
  .choice strong { font-size: 13px; }
  .choice small { font-size: 11px; }
  .choice__icon { width: 32px; height: 32px; flex-basis: 32px; background: transparent; }
  .quote-aside { position: static; border: 0; padding: 0; margin-top: 28px; }
  .request-summary { display: none; }
  .aside-contact { margin: 0; padding-top: 22px; display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: center; }
  .aside-contact .aside-caption { grid-column: 1 / -1; margin-bottom: 4px; }
  .aside-contact .text-link { font-size: 11px; }
  .phone-link { font-size: 12px; gap: 6px; }
  .phone-link .icon { display: none; }
  .language-note { grid-column: 1 / -1; margin-top: 8px; }
  .quote-navigation { margin-top: 22px; padding-top: 16px; }
  .button { font-size: 12px; padding: 12px 14px; gap: 8px; }
  .quote-footer { margin: 0 20px; gap: 8px; font-size: 10px; padding: 16px 0; align-items: center; }
  .quote-footer nav { gap: 14px; }
  .contact-fields { grid-template-columns: 1fr; gap: 18px; }
  .review-row { gap: 10px; grid-template-columns: minmax(70px, .8fr) minmax(0, 1.2fr) 44px; font-size: 12px; }
  .send-actions { grid-template-columns: 1fr; }
  .send-actions .button { min-height: 50px; }
}
@media (max-width: 380px) {
  .quote-header__inner { padding-inline: 16px; }
  .quote-brand img { width: 162px; }
  .quote-page { padding-inline: 16px; }
  .stage-heading h2 { font-size: 21px; }
  .choice { padding: 14px 12px; }
  .choice-grid--answers { grid-template-columns: 1fr; }
  .contact-fields { grid-template-columns: 1fr; }
  .aside-contact { grid-template-columns: 1fr; }
  .quote-footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .quote-header, .quote-steps, .quote-aside, .quote-navigation, .send-actions, .export-actions, .preview, .icon-button, .text-link, .quote-footer { display: none !important; }
  body { background: #fff; }
  .quote-page { padding: 0; }
  .quote-layout { display: block; }
}
