/* Estiquote web calculator. Uses the tokens defined in site.css. */
.calc { margin: 28px 0 40px; }
.calc-noscript, .calc-loading { padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--navy-2); color: var(--muted); font-size: 15px; line-height: 1.6; }
.calc-ready .calc-loading { display: none; }
.calc-failed .calc-loading::after { content: " The calculator could not load. Please refresh the page."; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 18px; align-items: start; }
.calc-inputs { display: grid; gap: 4px; padding: 22px; border: 1px solid var(--border); border-radius: 20px; background: #fff; }
.calc-field { min-width: 0; margin: 0; padding: 12px 0 14px; border: 0; border-bottom: 1px solid var(--navy-3); }
.calc-field:last-child { border-bottom: 0; padding-bottom: 4px; }
.calc-field legend, .calc-label { display: block; margin: 0 0 10px; padding: 0; color: var(--text); font-size: 14px; font-weight: 750; letter-spacing: -.1px; }
.calc-label-small { margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 650; }
.calc-options { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-option { position: relative; display: inline-flex; cursor: pointer; }
.calc-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.calc-option span { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--navy); color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.3; transition: border-color .15s ease, background .15s ease; }
.calc-option input:checked + span { border-color: var(--teal); background: #e3eeea; color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.calc-option input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.calc-option:hover span { border-color: var(--teal); }
.calc-select, .calc-inputs input[type="number"], .calc-inputs input[type="text"] { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--navy); color: var(--text); font: inherit; font-size: 16px; }
.calc-select:focus-visible, .calc-inputs input:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; }
.calc-size { position: relative; max-width: 220px; }
.calc-size input { padding-right: 46px !important; font-weight: 700; }
.calc-unit { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--muted); font-size: 14px; font-weight: 700; }
.calc-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.calc-chip { min-height: 36px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.calc-chip[aria-pressed="true"], .calc-chip:hover { border-color: var(--teal); color: var(--teal); }
.calc-hint { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.calc-location-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px; }
.calc-check { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; color: var(--text); font-size: 14px; line-height: 1.45; cursor: pointer; }
.calc-check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--teal); }

.calc-result { position: sticky; top: 90px; padding: 24px; border: 1px solid var(--teal); border-radius: 20px; background: linear-gradient(165deg, #e6efeb 0%, #f4f2ec 70%); }
.calc-kicker { margin: 0 0 8px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; line-height: 1.5; }
.calc-range { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0 0 6px; color: var(--text); font-size: clamp(34px, 4.4vw, 48px); font-weight: 850; letter-spacing: -1.6px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.calc-to { color: var(--muted); font-size: .5em; font-weight: 650; letter-spacing: 0; }
.calc-sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.calc-grant { margin: -6px 0 16px; padding: 10px 12px; border-radius: 12px; background: #fff; color: var(--teal); font-size: 14px; font-weight: 700; }
.calc-breakdown { display: grid; gap: 0; margin: 0 0 12px; padding: 4px 0; border-top: 1px solid var(--border); }
.calc-breakdown > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.calc-breakdown dt { color: var(--muted); }
.calc-breakdown dd { margin: 0; color: var(--text); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-total dt, .calc-total dd { color: var(--text); font-size: 16px; font-weight: 850; }
.calc-details { margin: 0 0 14px; font-size: 13.5px; }
.calc-details summary { color: var(--teal); font-weight: 750; cursor: pointer; }
.calc-fees { margin: 10px 0 0; padding: 0; list-style: none; }
.calc-fees li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--border); color: var(--text); line-height: 1.4; }
.calc-fees li span:last-child { white-space: nowrap; font-weight: 650; }
.calc-fee-off { color: var(--muted) !important; text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.calc-compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 14px; }
.calc-compare-item { display: grid; gap: 3px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, .7); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.calc-compare-item.is-current { border-color: var(--teal); background: #fff; }
.calc-compare-name { color: var(--muted); font-size: 11.5px; font-weight: 750; }
.calc-compare-value { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.calc-note { margin: 0 0 14px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.calc-note a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.calc-actions { margin-bottom: 14px; }
.calc-actions .button-outline { width: auto; min-height: 42px; background: #fff; }
.calc-app { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--border); }
.calc-app-title { grid-column: 1 / -1; margin: 0; color: var(--text); font-size: 15px; font-weight: 800; }
.calc-app-copy { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.calc-app-button { min-height: 44px; }
.calc-qr { grid-column: 2; grid-row: 2 / span 2; width: 96px; height: 96px; }

@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-result { position: static; }
}
@media (max-width: 600px) {
  .calc-inputs, .calc-result { padding: 18px; border-radius: 16px; }
  .calc-location-grid { grid-template-columns: 1fr; }
  .calc-app { grid-template-columns: 1fr; }
  .calc-qr { display: none; }
  .calc-compare { grid-template-columns: 1fr; }
  .calc-compare-item { grid-template-columns: 1fr auto; align-items: center; }
}
@media (hover: none) and (pointer: coarse) { .calc-qr { display: none; } }
@media print {
  .calc-inputs, .calc-actions, .calc-app, .calc-compare { display: none !important; }
  .calc-grid { display: block; }
  .calc-result { border: 1px solid #999; background: none; }
}
.calc-sticky { display: none; }
@media (max-width: 900px) {
  .calc-sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 0; border-radius: 16px; background: var(--teal); color: #fff; font: inherit; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); transform: translateY(140%); transition: transform .2s ease; cursor: pointer; }
  .calc-sticky.is-visible { transform: translateY(0); }
  .calc-sticky-label { font-size: 12px; opacity: .85; }
  .calc-sticky-value { font-size: 17px; font-weight: 850; font-variant-numeric: tabular-nums; }
  .calc-sticky-go { margin-left: auto; font-size: 12px; font-weight: 700; }
}
@media (prefers-reduced-motion: reduce) { .calc-sticky { transition: none; } }
@media print { .calc-sticky { display: none !important; } }
/* Embedded on other websites (/embed/) */
.embed-body { margin: 0; padding: 12px; background: transparent; }
.calc-embedded { margin: 0; }
.calc-embedded .calc-result { position: static; }
.calc-powered { margin: 12px 0 0; color: var(--muted); font-size: 12.5px; }
.calc-powered a { color: var(--teal); font-weight: 700; }
/* The page that hands out the embed code */
.embed-config { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.embed-code { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--navy); color: var(--text); font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.embed-copied { margin-left: 10px; color: var(--teal); font-weight: 700; }
.embed-preview { width: 100%; height: 1000px; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
