/* DMV Foam insulation price builder. Every rule is scoped to .dmvf-calc so the site's own styles stay untouched. */
.dmvf-calc {
  --navy: #00394e; --teal: #1ebaca; --teal-dark: #087f8d; --ice: #e2f1f9; --ice-soft: #f3f8fa;
  --ink: #163845; --muted: #4f6872; --line: #cbdde3; --line-strong: #a9c4cc; --error: #a73c32; --success: #176e5a;
  --shadow: 0 18px 55px rgba(0, 57, 78, .10);
  --serif: "DM Serif Text", Georgia, serif; --sans: Roboto, "Segoe UI", sans-serif;
  color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5;
  max-width: 1190px; margin: 0 auto; padding: 0 12px;
}
.dmvf-calc *, .dmvf-calc *::before, .dmvf-calc *::after { box-sizing: border-box; }
.dmvf-calc b, .dmvf-calc strong { font-weight: 700; }
.dmvf-calc button, .dmvf-calc input, .dmvf-calc select, .dmvf-calc textarea { font: inherit; }
.dmvf-calc button { cursor: pointer; }
.dmvf-calc :focus-visible { outline: 3px solid #19a9b8 !important; outline-offset: 3px; }
.dmvf-calc img { object-fit: cover; }
.dmvf-calc .eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: 11px; font-weight: 700; color: var(--teal-dark); }
.dmvf-calc .review-banner { margin: 0 0 14px; padding: 12px 16px; background: #fff8e8; border-left: 4px solid #d9a632; color: #5d4a17; font-size: 13px; line-height: 1.5; }
.dmvf-calc .calc-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--navy); border-radius: 9999px; background: var(--navy); color: #fff; padding: 12px 22px; font-weight: 700; font-size: 14px; min-height: 46px; text-decoration: none; transition: background .16s ease, transform .16s ease; }
.dmvf-calc .calc-button:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; transform: translateY(-1px); }
.dmvf-calc .calc-button.secondary { background: #fff; color: var(--navy); border-color: var(--line-strong); }
.dmvf-calc .calc-button.secondary:hover { background: var(--ice-soft); color: var(--navy); }
.dmvf-calc .calc-button.ghost { background: transparent; border-color: transparent; color: var(--navy); padding: 10px 12px; min-height: 40px; }
.dmvf-calc .calc-button.small { padding: 7px 12px; font-size: 12px; min-height: 36px; }
.dmvf-calc .calc-button.light { background: #fff; color: var(--navy); border-color: #fff; margin-top: 10px; width: 100%; }
.dmvf-calc .flow-shell { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.dmvf-calc .flow-content { padding: clamp(18px, 4vw, 40px); }
.dmvf-calc .section-title { color: var(--navy); font: 28px/1.15 var(--serif); margin: 0 0 8px; }
.dmvf-calc .section-lead { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 22px; }
.dmvf-calc .calc-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .8fr); align-items: start; gap: 26px; }
.dmvf-calc .calc-controls { min-width: 0; }
.dmvf-calc .field { margin: 0 0 19px; min-width: 0; }
.dmvf-calc .field label { display: block; margin-bottom: 7px; color: var(--navy); font-size: 13px; font-weight: 700; }
.dmvf-calc .field small, .dmvf-calc .hint { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.dmvf-calc .field input, .dmvf-calc .field select { display: block; width: 100%; min-height: 44px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); padding: 10px 12px; border-radius: 6px; }
.dmvf-calc .field input:focus, .dmvf-calc .field select:focus { border-color: var(--teal-dark); }
.dmvf-calc .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dmvf-calc .fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.dmvf-calc .fieldset legend { display: block; padding: 0; margin-bottom: 9px; color: var(--navy); font-size: 13px; font-weight: 700; }
.dmvf-calc .materials { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 8px; }
.dmvf-calc .material-card { appearance: none; text-align: left; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: var(--ink); min-width: 0; transition: border-color .15s ease, transform .15s ease; }
.dmvf-calc .material-card:hover { transform: translateY(-2px); border-color: var(--teal-dark); }
.dmvf-calc .material-card[aria-checked="true"] { border: 2px solid var(--teal-dark); box-shadow: 0 0 0 2px #1ebaca20; }
.dmvf-calc .material-card img { width: 100%; height: 82px; display: block; background: var(--ice); }
.dmvf-calc .material-card span { display: block; padding: 9px 8px; font-size: 12px; font-weight: 700; }
.dmvf-calc .material-card small { display: block; padding: 0 8px 10px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.dmvf-calc .rec { display: table; margin: 4px 0 0; padding: 1px 6px; background: #dff4ec; color: var(--success); font: 700 9px var(--sans); font-style: normal; text-transform: uppercase; letter-spacing: .06em; }
.dmvf-calc .form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 21px; border-top: 1px solid #e3ecef; margin-top: 20px; }
.dmvf-calc .form-actions .hint { margin: 0; max-width: 300px; }
.dmvf-calc .action-end { margin-left: auto; }
.dmvf-calc .status-message { min-height: 20px; color: var(--error); font-size: 12px; line-height: 1.45; margin: 6px 0; }
.dmvf-calc .screen-reader-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* areas */
.dmvf-calc .areas { display: grid; gap: 12px; margin-bottom: 14px; }
.dmvf-calc .area-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.dmvf-calc .area-card.open { border-color: var(--line-strong); box-shadow: 0 8px 24px rgba(0, 57, 78, .06); }
.dmvf-calc .area-head { display: flex; align-items: center; gap: 8px; padding-right: 10px; }
.dmvf-calc .area-card.open .area-head { background: var(--ice-soft); }
.dmvf-calc .area-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 0; background: transparent; text-align: left; color: var(--ink); }
.dmvf-calc .area-num { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; }
.dmvf-calc .area-title { flex: 1; min-width: 0; }
.dmvf-calc .area-title strong { display: block; color: var(--navy); font-size: 15px; }
.dmvf-calc .area-title small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.dmvf-calc .area-sub { flex: none; font: 20px var(--serif); color: var(--navy); }
.dmvf-calc .area-sub.pending { font: 600 11px var(--sans); color: var(--error); text-transform: uppercase; letter-spacing: .06em; }
.dmvf-calc .area-body { padding: 18px 16px 4px; border-top: 1px solid var(--line); }
.dmvf-calc .area-notes { margin: 0 0 16px; padding: 11px 14px 11px 30px; list-style: disc; background: #fff8e8; border-left: 3px solid #d9a632; color: #5d4a17; font-size: 12px; line-height: 1.55; }
.dmvf-calc .add-area { width: 100%; border-style: dashed; }
.dmvf-calc .seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dmvf-calc .choice { position: relative; display: inline-flex; margin: 0; }
.dmvf-calc .choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.dmvf-calc .choice span { display: flex; align-items: center; min-height: 40px; padding: 8px 14px; background: #fff; border: 1px solid var(--line-strong); border-radius: 9999px; font-size: 13px; font-weight: 500; color: var(--ink); }
.dmvf-calc .choice input:checked + span { background: var(--ice); border: 2px solid var(--teal-dark); color: var(--navy); padding: 7px 13px; font-weight: 700; }
.dmvf-calc .choice input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.dmvf-calc .addon { padding: 10px 0; border-top: 1px solid #e8f0f2; }
.dmvf-calc .addon:first-of-type { border-top: 0; padding-top: 0; }
.dmvf-calc .addon .hint { margin: 3px 0 0 26px; }
.dmvf-calc .check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--ink); cursor: pointer; }
.dmvf-calc .check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--teal-dark); flex: none; }
.dmvf-calc .check strong { color: var(--navy); }
.dmvf-calc .price-chip { color: var(--muted); font-size: 12px; }
.dmvf-calc .addon-detail { margin: 10px 0 0 26px; padding: 12px; background: var(--ice-soft); border: 1px solid var(--line); border-radius: 8px; }
.dmvf-calc .field.inline { margin: 0; }
.dmvf-calc .field.inline input { max-width: 220px; }
.dmvf-calc .tag-suggested { display: inline-block; padding: 1px 5px; border: 1px solid #d9a632; color: #8a6510; background: #fff8e8; font: 700 9px var(--sans); letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; white-space: nowrap; }
/* quote panel */
.dmvf-calc .result-panel { background: var(--navy); color: #fff; padding: 25px 25px 23px; border-radius: 14px; position: sticky; top: 90px; }
.dmvf-calc .result-panel .eyebrow { color: #8ce0e7; }
.dmvf-calc .result-panel h2 { font: 500 16px var(--sans); margin: 13px 0 3px; color: #d8eef0; }
.dmvf-calc .price { font: clamp(40px, 5vw, 58px)/1.05 var(--serif); letter-spacing: -.03em; margin: 2px 0 7px; color: #fff; }
.dmvf-calc .price-caption { font-size: 12px; color: #bfdde4; line-height: 1.5; margin: 0; }
.dmvf-calc .q-areas { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid #ffffff35; }
.dmvf-calc .q-area { padding: 10px 0; border-bottom: 1px solid #ffffff22; font-size: 12px; }
.dmvf-calc .q-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.dmvf-calc .q-row span { min-width: 0; overflow-wrap: anywhere; }
.dmvf-calc .q-row strong, .dmvf-calc .q-row b { flex: none; white-space: nowrap; }
.dmvf-calc .q-area-head { color: #fff; font-weight: 600; }
.dmvf-calc .q-area small { display: block; color: #a8d2da; font-size: 11px; margin-top: 2px; line-height: 1.4; }
.dmvf-calc .q-area.incomplete { color: #ffd6cf; }
.dmvf-calc .q-area.included { color: #d8eef0; }
.dmvf-calc .q-lines { list-style: none; margin: 6px 0 0; padding: 0 0 0 10px; border-left: 2px solid #ffffff2a; }
.dmvf-calc .q-lines li { padding: 4px 0; color: #d8eef0; }
.dmvf-calc .q-lines b { font-weight: 500; }
.dmvf-calc .result-panel .tag-suggested { background: transparent; color: #ffd98a; border-color: #ffd98a80; }
.dmvf-calc .big-project { margin-top: 14px; padding: 12px; background: #ffffff14; border: 1px solid #ffffff40; border-radius: 8px; font-size: 12px; line-height: 1.5; }
.dmvf-calc .disclaimer { margin: 14px 0 0; color: #fff; font-size: 12px; font-weight: 600; line-height: 1.5; }
.dmvf-calc .disclaimer.dark { color: var(--navy); }
.dmvf-calc .legend-note { margin: 8px 0 0; color: #a8d2da; font-size: 11px; line-height: 1.5; }
.dmvf-calc .scope-box { margin-top: 12px; padding-top: 10px; border-top: 1px solid #ffffff35; font-size: 11px; color: #c5dce2; }
.dmvf-calc .scope-box summary { cursor: pointer; color: #fff; font-weight: 700; font-size: 12px; }
.dmvf-calc .scope-box ul { margin: 8px 0 0; padding-left: 16px; list-style: disc; line-height: 1.5; }
/* booking step */
.dmvf-calc .book-layout { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: 28px; align-items: start; }
.dmvf-calc .book-summary { padding: 22px; background: var(--ice-soft); border: 1px solid var(--line); border-radius: 14px; }
.dmvf-calc .book-summary .section-title { font-size: 44px; margin: 4px 0 10px; }
.dmvf-calc .book-lines { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.dmvf-calc .book-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dmvf-calc .book-lines small { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; }
.dmvf-calc .book-lines b { white-space: nowrap; color: var(--navy); }
.dmvf-calc .book-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dmvf-calc .book-call { margin: 12px 0 0; font-size: 14px; }
.dmvf-calc .book-call a, .dmvf-calc .hint a { color: var(--teal-dark); font-weight: 700; }
.dmvf-calc .calendar-frame { min-height: 720px; }
.dmvf-calc .calendar-frame iframe { width: 100%; min-height: 720px; border: 0; overflow: hidden; }
@media (max-width: 860px) {
  .dmvf-calc .calc-layout, .dmvf-calc .book-layout { grid-template-columns: 1fr; }
  .dmvf-calc .result-panel { position: static; }
  .dmvf-calc .materials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dmvf-calc .material-card img { height: 100px; }
}
@media (max-width: 560px) {
  .dmvf-calc { padding: 0; }
  .dmvf-calc .flow-shell { border-radius: 12px; }
  .dmvf-calc .form-row { grid-template-columns: 1fr; gap: 0; }
  .dmvf-calc .materials { gap: 8px; }
  .dmvf-calc .material-card img { height: 86px; }
  .dmvf-calc .material-card small { display: none; }
  .dmvf-calc .area-toggle { padding: 12px 10px; gap: 9px; }
  .dmvf-calc .area-sub { font-size: 17px; }
  .dmvf-calc .area-body { padding: 16px 12px 2px; }
  .dmvf-calc .addon .hint, .dmvf-calc .addon-detail { margin-left: 0; }
  .dmvf-calc .calc-controls .form-actions { flex-direction: column; align-items: stretch; }
  .dmvf-calc .calc-controls .form-actions .calc-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .dmvf-calc *, .dmvf-calc *::before, .dmvf-calc *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .header, .footer, .pre-footer, .page-header, .calc-intro, .calc-faq, .dmvf-calc .book-calendar, .dmvf-calc .book-tools, #dash-back { display: none !important; }
  .dmvf-calc .book-layout { display: block; }
  .dmvf-calc .flow-shell { box-shadow: none; border: 0; }
}
