/* ───────── build-your-package configurator ─────────
   Rides on styles-v3.css (palette, fonts, nav, footer). */

.est-main { padding-top: clamp(96px, 14vh, 150px); }

.est-hero { padding: 0 0 clamp(28px, 5vh, 56px); }
.est-hero .kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-500); }
.est-hero .kicker .i { color: var(--ink-faint); }
.est-hero h1 { font-family: var(--font-head); font-weight: 200; letter-spacing: -.02em; line-height: 1.02; color: var(--teal-900); font-size: clamp(40px, 7vw, 92px); margin: 18px 0 0; }
.est-hero h1 em { font-style: normal; color: var(--teal-500); }
.est-hero .sub { margin: 20px 0 0; max-width: 56ch; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
.est-why { margin: 22px 0 0; max-width: 60ch; font-size: 14.5px; line-height: 1.62; color: var(--ink-soft); text-wrap: pretty; }
.est-why .k { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-500); margin-bottom: 6px; }
.est-why b { color: var(--teal-900); font-weight: 600; }
.est-promise { margin: 28px 0 6px; display: flex; gap: clamp(18px, 3vw, 30px); align-items: center; max-width: 66ch; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(18px, 3vh, 26px) 0; }
.est-promise .big { flex: none; font-family: var(--font-head); font-weight: 200; font-size: clamp(56px, 9vw, 88px); line-height: .82; color: var(--teal-700); letter-spacing: -.03em; }
.est-promise .body { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
.est-promise .body .k { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-500); margin-bottom: 5px; }
.est-promise .body b { color: var(--teal-900); font-weight: 600; }
@media (max-width: 460px) { .est-promise { gap: 16px; } }

/* layout: menu + sticky summary rail */
.est-layout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(28px, 4vw, 60px); align-items: start; padding-bottom: clamp(60px, 10vh, 120px); }
@media (max-width: 940px) { .est-layout { grid-template-columns: 1fr; } }

/* ── currency toggle ── */
.est-cur { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.est-cur button { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 7px 14px; background: none; border: none; cursor: pointer; color: var(--ink-faint); }
.est-cur button.on { background: var(--teal-900); color: #fff; }

/* ── section groups ── */
.est-group { margin-top: clamp(34px, 5vh, 56px); }
.est-group:first-of-type { margin-top: 0; }
.est-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.est-group-head h2 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-500); font-weight: 400; margin: 0; }
.est-group-head .hint { font-size: 12.5px; color: var(--ink-faint); }

.est-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
@media (max-width: 560px) { .est-cards { grid-template-columns: 1fr; } }

/* ── option card ── */
.opt { position: relative; display: block; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; padding: 18px 18px 18px 50px; background: var(--white); transition: border-color .16s, box-shadow .16s, background .16s; }
.opt:hover { border-color: var(--teal-300); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .mark { position: absolute; left: 17px; top: 19px; width: 20px; height: 20px; border: 1.5px solid var(--slate); border-radius: 5px; display: grid; place-items: center; transition: border-color .16s, background .16s; }
.opt .mark::after { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--teal-700); transform: scale(0); transition: transform .14s ease; }
.opt.radio .mark { border-radius: 50%; }
.opt.radio .mark::after { border-radius: 50%; }
.opt input:checked ~ .mark { border-color: var(--teal-700); }
.opt input:checked ~ .mark::after { transform: scale(1); }
.opt input:checked ~ .opt-body .opt-name,
.opt.sel { /* state hook */ }
.opt input:checked + .mark { } /* noop */
.opt:has(input:checked) { border-color: var(--teal-700); box-shadow: 0 0 0 1px var(--teal-700); background: #f7fafa; }
.opt input:focus-visible ~ .mark { outline: 2px solid var(--teal-500); outline-offset: 2px; }

.opt-body { display: flex; flex-direction: column; gap: 3px; }
.opt-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.opt-name { font-family: var(--font-head); font-weight: 400; font-size: 17px; color: var(--teal-900); }
.opt-price { font-family: var(--font-mono); font-size: 13px; color: var(--teal-700); white-space: nowrap; }
.opt-price .from { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-right: 4px; }
.opt-desc { font-size: 13px; line-height: 1.5; color: var(--ink-soft); }

/* qty stepper for add-ons (e.g. extra pages) */
.opt-qty { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.opt-qty button { width: 26px; height: 26px; border: 1px solid var(--line); background: var(--white); border-radius: 5px; font-size: 16px; line-height: 1; cursor: pointer; color: var(--teal-900); }
.opt-qty button:hover { border-color: var(--teal-500); }
.opt-qty .q { font-family: var(--font-mono); font-size: 13px; min-width: 18px; text-align: center; }
.opt-qty .lbl { font-size: 12px; color: var(--ink-faint); }

/* ── comments ── */
.est-field { margin-top: 14px; }
.est-field label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 7px; }
.est-field input, .est-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: var(--white); padding: 12px 14px; font-family: var(--font-body); font-size: 15px; color: var(--ink); resize: vertical; }
.est-field input:focus, .est-field textarea:focus { outline: none; border-color: var(--teal-500); }
.est-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .est-grid2 { grid-template-columns: 1fr; } }

/* ── sticky summary rail ── */
.est-rail { position: sticky; top: clamp(86px, 11vh, 116px); border: 1px solid var(--line); border-radius: 10px; background: var(--white); overflow: hidden; }
.est-rail-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.est-rail-head h3 { font-family: var(--font-head); font-weight: 400; font-size: 18px; color: var(--teal-900); margin: 0; }
.est-rail-head .note { font-size: 12px; color: var(--ink-faint); margin-top: 3px; }

/* progress to start */
.est-prog { padding: 14px 20px; border-bottom: 1px solid var(--line); background: #f7fafa; }
.est-prog-bar { height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.est-prog-bar span { display: block; height: 100%; width: 0; background: var(--teal-700); border-radius: 3px; transition: width .35s cubic-bezier(.4,0,.2,1); }
.est-prog-txt { display: flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 12.5px; color: var(--ink-soft); }
.est-prog-txt b { color: var(--teal-900); }
.est-prog-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.est-prog-dot.go { background: #1f8a5b; }

.est-lines { padding: 8px 20px; max-height: 38vh; overflow-y: auto; }
.est-lines:empty::after { content: "Pick what you need — your estimate builds here."; display: block; padding: 22px 0; font-size: 13px; color: var(--ink-faint); line-height: 1.5; }
.est-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.est-line:first-child { border-top: none; }
.est-line .l-name { color: var(--ink); }
.est-line .l-name .qty { color: var(--ink-faint); font-family: var(--font-mono); font-size: 11px; margin-left: 5px; }
.est-line .l-price { font-family: var(--font-mono); font-size: 13px; color: var(--teal-700); white-space: nowrap; }

.est-totals { padding: 14px 20px; border-top: 1px solid var(--line); }
.est-total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.est-total-row + .est-total-row { margin-top: 8px; }
.est-total-row .t-lbl { font-size: 12px; letter-spacing: .04em; color: var(--ink-soft); }
.est-total-row .t-val { font-family: var(--font-head); font-weight: 400; color: var(--teal-900); }
.est-total-row.one .t-val { font-size: 30px; }
.est-total-row.mo .t-val { font-size: 18px; }
.est-est-note { font-size: 11.5px; color: var(--ink-faint); margin-top: 12px; line-height: 1.5; text-wrap: pretty; }
.est-est-note .star { color: var(--accent); }

.est-send { display: block; width: 100%; margin-top: 4px; padding: 15px 18px; border: none; border-radius: 8px; background: var(--teal-900); color: #fff; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .16s; }
.est-send:hover { background: var(--teal-800); }
.est-send:disabled { opacity: .6; cursor: default; }
.est-send-wrap { padding: 0 20px 20px; }
.est-send-note { text-align: center; font-size: 11.5px; color: var(--ink-faint); margin-top: 10px; }
.est-send-note a { color: var(--teal-700); }

.est-flash { display: none; margin: 0 20px 4px; padding: 9px 12px; border-radius: 6px; background: rgba(211,76,52,.08); border: 1px solid rgba(211,76,52,.3); color: var(--accent); font-size: 12.5px; }
.est-flash.on { display: block; }

/* success state */
.est-done { display: none; text-align: center; padding: 48px 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.est-done.on { display: block; }
.est-done .mark { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(31,138,91,.12); color: #1f8a5b; font-size: 26px; margin-bottom: 16px; }
.est-done h3 { font-family: var(--font-head); font-weight: 300; font-size: 28px; color: var(--teal-900); margin: 0 0 10px; }
.est-done p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); max-width: 44ch; margin: 0 auto; }
.est-done .again { display: inline-block; margin-top: 22px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); border-bottom: 1px solid var(--teal-300); padding-bottom: 2px; text-decoration: none; }

.hp { position: absolute; left: -9999px; }
