/* Quote calculator and the services panels.
   Loaded by /quote/, the /services/ pages, About and Business. Page-specific rules are scoped to .quote-page.
   23 Oct 2026: consolidated. Dead blocks removed (pkg-tier, pkg-tag, pkg-note, svc-nav, svc-cols and the old dark
   services panel), the sticky/static and two-column/one-column conflicts resolved, and the privacy line on the dark
   quote card lifted to a readable contrast. */

/* ---------- Page shell: blueprint grid background ---------- */
.quote-page {
    background-color: #eef1f4;
    background-image:
        linear-gradient(rgba(0,119,182,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,119,182,.06) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* One centred column on every screen: heading above, form below, full width. */
.quote-page .contact-grid { grid-template-columns: 1fr; justify-items: center; gap: 2.5rem; }
.quote-page .quote-aside { position: static; text-align: center; justify-self: center; width: 100%; max-width: 40rem; margin-left: auto; margin-right: auto; }
.quote-page .contact-grid .form { width: 100%; max-width: 56rem; }
.quote-page .section-title { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -.04em; line-height: 1.02; }
.quote-page .section-lead { max-width: 28rem; }
.quote-page .quote-aside .section-lead { margin-left: auto; margin-right: auto; max-width: 34rem; }

/* ---------- Live quote card: blueprint panel ---------- */
.quote-box {
    position: relative; margin-top: 2rem; padding: 2rem; border-radius: 18px; color: #c9d6e2;
    background-color: #0b2a45;
    background-image:
        linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(160deg, #0f3a5e 0%, #0a2238 100%);
    background-size: 24px 24px, 24px 24px, auto;
    box-shadow: 0 30px 60px -28px rgba(7,30,52,.6), inset 0 0 0 1px rgba(255,255,255,.08);
}
.quote-box::before {
    content: ""; position: absolute; top: 0; left: 2rem; width: 3.5rem; height: 4px;
    border-radius: 0 0 4px 4px; background: var(--sun);
}
.quote-lines { border-top: 1px dashed rgba(255,255,255,.22); }
.quote-lines li { border-bottom: 1px dashed rgba(255,255,255,.14); }
.quote-total { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 2px solid rgba(255,255,255,.35); }
.quote-total span { font-family: var(--font-display); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #8fb4d1; }
.quote-total strong { font-size: clamp(2.6rem, 5vw, 3.4rem); }

/* Inside the form it sits at the end of the sheet, compact, and scrolls with the page. */
.quote-page .form .quote-box { margin-top: 0; padding: 1.1rem 1.5rem; }
.quote-page .form .quote-box .quote-total { margin-top: .6rem; padding-top: .6rem; }
.quote-page .form .quote-box .quote-total strong { font-size: 2rem; }
.quote-page .form .quote-box .quote-lines { max-height: none; overflow-y: visible; }

/* The privacy line sits on the dark panel, so it takes the light ink of that panel, not the page grey. */
.quote-page .form .quote-box .consent-note { color: #a8bed2; }
.quote-page .form .quote-box .consent-note a { color: #cfe3f5; text-decoration-color: rgba(207,227,245,.6); }
.quote-page .form .quote-box .consent-note a:hover,
.quote-page .form .quote-box .consent-note a:focus-visible { color: #fff; text-decoration-color: #fff; }

/* ---------- Form: one clean sheet, steps as ruled numbered sections ---------- */
.quote-page .form {
    background: #fff; border: 0; border-radius: 18px; gap: 1.5rem;
    box-shadow: 0 1px 2px rgba(15,23,32,.05), 0 30px 60px -30px rgba(15,23,32,.25);
    counter-reset: step;
}
.quote-page .form label,
.quote-page .form legend,
.area-blocks label {
    font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #3d4a58;
}
.quote-page .form input, .quote-page .form select, .quote-page .form textarea,
.area-blocks input {
    background: #f6f8fa; border: 1px solid transparent; border-bottom: 2px solid #d3dae1;
    border-radius: 10px 10px 4px 4px; padding: .95rem 1rem; font-size: 1rem; color: var(--ink);
}
.quote-page .form input:hover, .quote-page .form select:hover, .quote-page .form textarea:hover { background: #eff3f6; }
.quote-page .form input:focus, .quote-page .form select:focus, .quote-page .form textarea:focus,
.area-blocks input:focus {
    background: #fff; border-color: transparent; border-bottom-color: var(--accent);
    box-shadow: 0 8px 20px -12px rgba(0,119,182,.55);
}
.quote-page .form .hint, .area-blocks .hint { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .8rem; }
#gateHint { padding: .8rem 1rem; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); }

.quote-page .form fieldset {
    padding: 1.4rem 0 0; border-top: 1px solid var(--line);
}
.quote-page .form fieldset legend { padding: 0 .75rem 0 0; display: flex; align-items: center; gap: .6rem; float: left; width: 100%; margin-bottom: 1rem; }
.quote-page .form fieldset legend::before {
    counter-increment: step; content: counter(step);
    display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
    background: var(--ink); color: #fff; font-size: .75rem; letter-spacing: 0;
}
.quote-page .form fieldset > legend ~ * { clear: both; }

/* Name, email, phone and address: two up on a wide screen, like the rest of the sheet. */
.quote-page .contact-fields { display: grid; gap: 1.25rem; }
.quote-page .details-full { grid-column: 1 / -1; }
@media (min-width: 600px) { .quote-page .contact-fields { grid-template-columns: 1fr 1fr; } }

/* ---------- Choice cards ---------- */
.quote-page .choice {
    padding: 1rem 1.1rem; border: 1px solid #dde3e9; border-radius: 12px; background: #fff;
    transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s;
}
.quote-page .choice:hover { border-color: #b9c6d2; transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(15,23,32,.3); }
.quote-page .choice:has(input:checked) { border-color: var(--accent); background: #f1f8fc; box-shadow: inset 4px 0 0 var(--accent); }
.quote-page .choice span { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.quote-page .choice small { margin-top: .15rem; font-weight: 500; color: var(--accent-dark); font-size: .85rem; }
.quote-page .choice small.btn-hint { color: var(--ink-soft, #6b7280); font-weight: 400; font-size: .78rem; margin-top: .3rem; font-style: italic; }
.quote-page .form .choice input { width: 1.15rem; height: 1.15rem; background: none; border-bottom: 0; }

/* A greyed-out card stays locked until the areas above have a value. */
.quote-page .choice.is-off { opacity: .55; cursor: not-allowed; background: #f6f8fa; }
.quote-page .choice.is-off:hover { border-color: #dde3e9; transform: none; box-shadow: none; }

/* Measured survey: sits under the Existing (context only) area, greyed out until that area is entered. */
.survey-link { margin-top: 1.25rem; margin-bottom: .75rem; }
.survey-link .hint { margin-top: .5rem; }

/* ---------- Floor areas ---------- */
.area-blocks { gap: 1.1rem; }
@media (min-width: 600px) { .area-blocks { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); } }
.area-block { padding: 0; background: none; border: 0; }
.area-block input { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; text-align: left; }

/* ---------- Level picker under the tender and construction packages ---------- */
.quote-page .level-pick { display: grid; gap: .5rem; margin: -.1rem 0 .4rem 1.25rem; padding-left: .9rem; border-left: 3px solid var(--accent); }
@media (min-width: 640px) { .quote-page .level-pick { grid-template-columns: repeat(2, 1fr); } }
.quote-page .level-pick[hidden] { display: none; }
.quote-page .level-pick .choice { align-items: flex-start; }

/* ---------- Buttons and status ---------- */
.quote-page .form .btn {
    padding: 1.1rem 1.5rem; border-radius: 12px; font-size: 1.05rem; justify-content: center;
    background: var(--ink); box-shadow: 0 14px 26px -14px rgba(15,23,32,.6);
}
.quote-page .form .btn:hover { background: var(--accent); box-shadow: 0 16px 30px -12px rgba(0,119,182,.7); }
.quote-page .form-status.error { padding: .6rem .9rem; border-radius: 8px; background: #fdecea; }
.quote-page .form-status.ok { padding: .6rem .9rem; border-radius: 8px; background: var(--accent-soft); }

/* ---------- Services text under the calculator, and the services pages ---------- */
.info-link { display: block; margin-top: .25rem; font-size: .8rem; font-weight: 600; color: var(--accent-dark); text-decoration: underline; }

.pkg-info { grid-column: 1 / -1; width: 100%; }
.quote-page .pkg-info { margin: 3rem auto 0; max-width: 52rem; color: var(--ink); }
.quote-page .pkg-info h2 { color: var(--ink); font-size: clamp(1.75rem, 3.5vw, 2.25rem); letter-spacing: -.02em; line-height: 1.15; }
.quote-page .pkg-lead { color: var(--muted); font-size: 1.05rem; margin-top: .75rem; }

.svc-block { scroll-margin-top: 6rem; }
.quote-page .pkg-info .svc-block { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(0,0,0,.12); }
.quote-page .pkg-info .svc-block:first-of-type { margin-top: 2rem; }
.quote-page .pkg-info .svc-block h3 { margin: 0 0 .75rem; font-size: 1.5rem; }
.quote-page .pkg-info .svc-block h4 {
    margin-top: 1.75rem; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink);
}
.quote-page .pkg-info .svc-block h5 { margin: 1.1rem 0 .3rem; font-family: var(--font-display); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.quote-page .pkg-info .svc-block > p { color: var(--ink); line-height: 1.75; margin-top: .75rem; }
.quote-page .scope-list { margin: 1rem 0 0; padding-left: 1.4rem; display: grid; gap: .6rem; line-height: 1.65; color: var(--ink); }
.quote-page .scope-list { list-style: disc; }
.quote-page .scope-list li { position: relative; }
.quote-page .scope-list li::marker { color: var(--accent, #0077b6); }
.quote-page .pkg-info .svc-block .scope-list { margin-top: .4rem; gap: .35rem; line-height: 1.55; }

.quote-page .form .send-block { text-align: center; }
.quote-page .form .send-block .send-lead { margin: 0 0 1rem; font-size: 1rem; color: var(--text, inherit); }
.quote-page .form .send-block .consent-note { margin-top: 1rem; }
.quote-page .form .send-block .free-note { color: #a8bed2; font-size: .825rem; margin-top: .5rem; }

.quote-page .form .quote-box .quote-note { text-align: center; }
.quote-page .form-rest[hidden] { display: none; }
.quote-page #visitFieldset textarea { width: 100%; }
/* ---------- FAQ accordion (granny flat pack) ---------- */
.quote-page .faq-acc .hint { margin-top: .75rem; }
.quote-page .faq-item {
    border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
    margin-top: .75rem; overflow: hidden;
}
.quote-page .faq-item summary {
    cursor: pointer; padding: 1rem 2.6rem 1rem 1.25rem; font-weight: 600; color: var(--ink);
    position: relative; list-style: none;
}
.quote-page .faq-item summary::-webkit-details-marker { display: none; }
.quote-page .faq-item summary::after {
    content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
    font-size: 1.35rem; line-height: 1; color: var(--accent); font-family: var(--font-display);
}
.quote-page .faq-item[open] summary::after { content: "-"; }
.quote-page .faq-item[open] summary { border-bottom: 1px solid var(--line); }
.quote-page .faq-item p { padding: 1rem 1.25rem; margin: 0; line-height: 1.7; color: var(--ink-2); text-align: left; }
.quote-page .faq-item a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
