/* Window pages quote form (Oct 2026). Loaded on the 11 window pages and the window
   calculator only, so site.css and every other page stay exactly as they are. */

/* v4: the form sits after the hero photo, beside the page copy (under it on phones). */
.grid-2:has(.qw-form) { align-items: start; }
.qw-form { max-width: 640px; margin: 0; }
.qw-form [hidden] { display: none !important; }
/* Clears the sticky header on desktop. On phones site.css already pads the scroll for it. */
#window-quote-form, #wf-done { scroll-margin-top: 100px; }
@media (max-width: 900px) { #window-quote-form, #wf-done { scroll-margin-top: 12px; } }

.wf-card { padding: 22px 18px 20px; border: 1px solid #d9e4f0; border-radius: 18px; box-shadow: 0 10px 30px rgba(12, 40, 80, .08); }
/* The form and thank-you headings are h2 (they follow the page h1) but keep the card heading size. */
.qw-form .wf-title { margin: 0 0 14px; font-size: 1.3rem; line-height: 1.25; letter-spacing: -.01em; }
.wf-card .form-intro { margin: 0 0 16px; font-size: 15px; }

/* Fields: one rhythm for every label and input. */
.wf-field { margin: 0 0 14px; }
.wf-card .wf-field label,
.wf-card legend { display: block; margin: 0 0 6px; padding: 0; font-size: 14.5px; font-weight: 650; color: var(--ink); line-height: 1.3; }
.wf-opt { font-weight: 450; color: var(--muted); }
.wf-card .wf-field input,
.wf-card .wf-field textarea { display: block; width: 100%; min-height: 48px; margin: 0; padding: 12px 14px; font-size: 16px; line-height: 1.3; }
.wf-card .wf-field textarea { min-height: 96px; }
.wf-card ::placeholder { color: #8796a6; opacity: 1; }

.wf-group { border: 0; margin: 2px 0 16px; padding: 0; min-width: 0; }
.wf-card legend { margin-bottom: 8px; }

/* How often: a segmented toggle built on real radio inputs. Nothing is preselected. */
.wf-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: #eef3f8; border: 1px solid #dde6ef; }
.wf-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.wf-seg label { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: 6px 8px; border-radius: 9px; text-align: center; font-size: 14.5px; font-weight: 600; line-height: 1.2; color: #3a4a5c; cursor: pointer; transition: background .18s, color .18s, box-shadow .18s; }
.wf-seg label:hover { color: var(--ink); background: rgba(255, 255, 255, .6); }
.wf-seg input:checked + label { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue), 0 2px 6px rgba(14, 27, 42, .1); }
.wf-seg input:focus-visible + label { outline: 3px solid rgba(18, 115, 190, .4); outline-offset: 1px; }

/* Extras: the site's chips, sized for a thumb. */
.picks.wf-extras { margin: 0; gap: 8px; }
.picks.wf-extras label { min-height: 44px; padding: 10px 15px 10px 12px; font-size: 14.5px; }

.wf-note { margin: 0 0 10px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.btn.wf-submit { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin: 16px 0 0; font-size: 18px; }
.wf-trust { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); text-align: center; }
.wf-trust .qw-star { margin-top: 2px; }

/* Thank-you card that replaces the form once it has been sent. */
.wf-done { padding: 28px 20px 24px; border: 1px solid #d9e4f0; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(12, 40, 80, .08); text-align: center; }
.wf-done:focus { outline: none; }
.wf-done-ic { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin: 0 0 12px; border-radius: 50%; background: #e6f6ec; color: #1a7a42; }
.wf-done-ic svg { width: 32px; height: 32px; }
.wf-done .wf-title { margin: 0 0 18px; }
.wf-done p { margin: 0 auto 18px; max-width: 34em; color: var(--muted); font-size: 15px; }
.btn.wf-wa { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; background: #0f7a40; box-shadow: 0 6px 18px rgba(15, 122, 64, .25); font-size: 17px; }
.btn.wf-wa:hover { background: #0b6233; }
.btn.wf-wa svg { width: 22px; height: 22px; }

/* Price block: the form as a small secondary link under the calculator button. */
.qw-alt { margin: 4px 0 0; text-align: center; font-size: 15px; }
.qw-alt a { display: inline-block; padding: 11px 6px; color: #0e6fc4; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Two frequency cards now (every 4 or 8 weeks). */
.freq-grid.freq-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
@media (max-width: 900px) { .freq-grid.freq-grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .wf-seg label { padding: 6px 3px; font-size: 13.5px; letter-spacing: -.005em; } }

/* v5: price block trimmed to price, terms, button, link and one review line. */
.qw-terms { margin: 0 0 14px; font-size: 15px; line-height: 1.45; color: #0f1b2d; font-weight: 600; }
.qw-rate { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 0 0; font-size: 14px; color: #4a5a6e; text-align: center; }
.qw-rate .qw-star { width: 16px; height: 16px; flex: none; }
.qw-how { margin: 18px 0 0; }
.qw-how a { display: inline-block; padding: 11px 0; font-weight: 600; }
