/*
 * Stud Mount Seattle — shared design foundation.
 * Loaded on every page (see includes/head.php). Holds design tokens, reset,
 * typography, and the components that are identical everywhere: nav/header,
 * footer, buttons, cards, badges, section headings, mobile sticky bar, and
 * the Instant Quote modal shell. Page-specific sections live in
 * css/home.css (index.php only) and css/content.css (all other pages).
 */

:root {
    /* Brand (unchanged - sampled from the logo, kept exactly as-is) */
    --accent: #e8442e;
    --accent-strong: #c53420;
    --accent-soft: #fce1dc;
    --accent-ink: #7a4a06;

    /* Steel - second, structural accent for the "Bridge City" identity:
       links, icons, dividers, secondary hover states. Never used for the
       primary CTA, which stays --accent everywhere. */
    --steel: #4a7a9c;
    --steel-strong: #35586f;
    --steel-soft: #e4edf2;

    /* Neutrals */
    --ink: #0f172a;
    --muted: #55647a;
    --bg: #f5f6fa;
    --panel: #ffffff;
    --line: rgba(15, 23, 42, 0.09);
    --line-blueprint: rgba(74, 122, 156, 0.35);

    /* Dark surfaces (footer, mobile bar, modal sidebar, CTA bands) - a
       branded steel-navy instead of a generic near-black */
    --surface-dark: #16232e;
    --surface-dark-soft: #1f3242;
    --on-dark: #f5f8ff;
    --on-dark-muted: rgba(245, 248, 255, 0.68);
    --line-dark: rgba(255, 255, 255, 0.1);

    /* Utility colors previously hardcoded inline */
    --success: #1a9d5a;
    --danger: #d92d20;

    /* Shape */
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    /* Elevation */
    --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.06);
    --shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.16);
    --shadow-dark: 0 24px 60px rgba(2, 10, 24, 0.28);

    --container: 1160px;
    --header-h: 88px;
    --mobile-bar-h: 76px;

    /* Type: Inter carries body copy (unchanged). Space Grotesk is the new
       display face for headings - geometric/technical character that fits
       the structural "Bridge City" direction. IBM Plex Mono is used only
       for small structural labels (kickers, badges, price figures) for a
       spec-sheet/technical-drawing feel, never for body copy. */
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: "Space Grotesk", var(--font-body);
    --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Shared easing for micro-interactions: quick start, soft settle - reads
       as smooth/confident rather than bouncy. Used site-wide instead of
       plain "ease" so every transition feels like the same product. */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.has-mobile-bar {
    padding-bottom: calc(var(--mobile-bar-h) + 14px);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

img {
    max-width: 100%;
    display: block;
}

main {
    overflow: clip;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
}

p {
    margin: 0;
}

section[id] {
    scroll-margin-top: calc(var(--header-h) + 12px);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
label:focus-within {
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--ink);
    font-weight: 700;
    box-shadow: var(--shadow);
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.container,
.site-shell {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
    padding-inline: 0;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
    padding: 0.8rem 1.3rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.96rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:active {
    transform: scale(0.96);
    transition-duration: 0.1s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-strong), var(--accent-strong));
    box-shadow: 0 7px 14px rgba(232, 68, 46, 0.35);
}

.btn-secondary {
    border-color: var(--line);
    background: #ffffff;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-strong);
    box-shadow: 0 8px 16px rgba(232, 68, 46, 0.15);
}

.btn-sm {
    min-height: 42px;
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
}

.btn-block {
    width: 100%;
}

/* ---------- Cards, badges, section headings ---------- */

.surface {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: #ffffff;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.86rem;
}

.chip i {
    color: var(--accent-strong);
}

.chip-insured {
    border-color: rgba(232, 68, 46, 0.4);
    background: var(--accent-soft);
    color: var(--accent-ink);
}

.eyebrow,
.kicker,
.page-kicker,
.section-kicker,
.feature-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
    color: var(--accent-strong);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eyebrow::before,
.kicker::before,
.page-kicker::before,
.section-kicker::before,
.feature-kicker::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

.section {
    padding-block: clamp(56px, 7vw, 92px);
}

.section-head {
    max-width: 720px;
    margin-bottom: 2rem;
}

.section-head h2 {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.section-head p {
    margin-top: 0.75rem;
    color: var(--muted);
    line-height: 1.75;
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
}

/* A dimension-line style divider: a hairline baseline with tick marks at
   regular intervals, like a measurement line on an architectural drawing. */
.divider-span {
    height: 9px;
    margin-block: 3rem;
    background-image:
        linear-gradient(var(--line-blueprint), var(--line-blueprint)),
        repeating-linear-gradient(90deg, var(--line-blueprint) 0 1px, transparent 1px 24px);
    background-size: 100% 1px, 100% 9px;
    background-position: bottom, top;
    background-repeat: no-repeat, repeat-x;
}

/* ---------- Site header / nav (shared across every page) ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-sm);
}

.site-nav {
    display: flex;
    min-height: var(--header-h);
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.site-brand img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: contain;
}

.site-links {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.site-links a:not(.nav-cta) {
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-pill);
    color: var(--ink);
    font-weight: 600;
    font-size: 0.92rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-links a:not(.nav-cta):hover,
.site-links a:not(.nav-cta):focus-visible,
.site-links a[aria-current="page"] {
    background: var(--steel-soft);
    color: var(--accent-strong);
}

.site-links .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.6rem;
    padding: 0.6rem 1.05rem;
    border: none;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #ffffff;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-links .nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(232, 68, 46, 0.35);
}

/* Phone number sits between the links and the CTA - set in the mono face so
   it reads as a "spec" rather than another nav item. */
.site-links .nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: 0.4rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-pill);
    color: var(--steel-strong);
    font-family: var(--font-mono);
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-links .nav-phone:hover,
.site-links .nav-phone:focus-visible {
    background: var(--steel-soft);
    color: var(--ink);
}

.nav-toggle {
    display: none;
    min-width: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s var(--ease), background-color 0.2s var(--ease);
}

.nav-toggle:active {
    transform: scale(0.94);
}

.nav-toggle i {
    transition: transform 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] i {
    transform: rotate(90deg);
}

/* ---------- Footer (shared) ---------- */

.site-footer {
    margin-top: 0;
    padding: 56px 0 40px;
    background: var(--surface-dark);
    color: var(--on-dark-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
    color: var(--on-dark);
    font-weight: 800;
    font-size: 1.05rem;
}

.footer-brand img {
    width: 40px;
    height: 40px;
    border-radius: 11px;
}

.footer-about p {
    max-width: 34ch;
    margin: 0 0 1rem;
    line-height: 1.7;
}

.footer-col a i {
    margin-right: 0.35rem;
    color: var(--accent);
}

.footer-col h4 {
    margin-bottom: 0.9rem;
    color: var(--on-dark);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-col ul {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col a {
    color: var(--on-dark-muted);
    font-size: 0.94rem;
    transition: color 0.2s ease;
}

.footer-col a:hover,
.footer-col a:focus-visible {
    color: var(--on-dark);
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: 0.4rem;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    color: var(--on-dark);
    font-size: 1.05rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.footer-social:hover {
    background: rgba(232, 68, 46, 0.18);
    border-color: rgba(232, 68, 46, 0.5);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 2.5rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line-dark);
    font-size: 0.85rem;
}

/* ---------- Mobile sticky action bar (shared) ---------- */

.mobile-bar {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 1000;
    display: none;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-lg);
    background: rgba(7, 12, 22, 0.94);
    box-shadow: var(--shadow-dark);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.mobile-bar a,
.mobile-bar button {
    display: flex;
    flex: 1 1 0;
    height: 52px;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s var(--ease);
}

.mobile-bar a:active,
.mobile-bar button:active {
    transform: scale(0.95);
}

.mobile-bar .mobile-bar-quote {
    flex: 1 1 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #ffffff;
}

.mobile-bar .mobile-bar-call {
    flex: 0 0 auto;
    min-width: 108px;
    border: 1px solid var(--line-dark);
    background: rgba(255, 255, 255, 0.08);
    color: var(--on-dark);
}

/* ---------- Shared page sections (used by every layout) ---------- */

.page-section {
    padding-block: clamp(56px, 7vw, 96px);
}

/* Alternating sections sit on a white panel so the rhythm of the page is
   visible; the default section shows the page background. */
.page-section.alt {
    background: var(--panel);
    border-block: 1px solid var(--line);
}

.page-section.alt + .page-section.alt {
    border-top: none;
}

.section-heading {
    max-width: 720px;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.85rem, 3.6vw, 2.6rem);
    color: var(--ink);
}

.section-heading p {
    max-width: 62ch;
    margin: 0.85rem 0 0;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.7;
}

.section-heading.center {
    margin-inline: auto;
    text-align: center;
}

.section-heading.center p {
    margin-inline: auto;
}

/* Service-area link grid (home + /areas/) */

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
    gap: 0.75rem;
}

.areas-grid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    min-height: 56px;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.areas-grid a::after {
    content: "\F138";
    font-family: "bootstrap-icons";
    color: var(--steel);
    font-size: 1rem;
    transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.areas-grid a:hover,
.areas-grid a:focus-visible {
    border-color: rgba(232, 68, 46, 0.5);
    color: var(--accent-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.areas-grid a:hover::after,
.areas-grid a:focus-visible::after {
    color: var(--accent-strong);
    transform: translateX(3px);
}

.page-section.alt .areas-grid a {
    background: var(--bg);
    box-shadow: none;
}

/* Dark contact panel used as the aside of two-column sections */

.contact-card {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    display: grid;
    gap: 0.6rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, rgba(232, 68, 46, 0.24), transparent 36%),
        var(--surface-dark);
    color: var(--on-dark-muted);
    box-shadow: var(--shadow-dark);
}

.contact-card .card-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #ffffff;
    font-size: 1.3rem;
}

.contact-card h3 {
    color: #ffffff;
    font-size: 1.35rem;
}

.contact-card .card-lead {
    margin-bottom: 0.7rem;
    line-height: 1.65;
}

.contact-card .btn {
    width: 100%;
}

.contact-card .btn-secondary {
    border-color: var(--line-dark);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    box-shadow: none;
}

.contact-card .btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    box-shadow: none;
}

.contact-card .card-note {
    margin-top: 0.4rem;
    font-size: 0.84rem;
    line-height: 1.55;
}

/* ---------- Instant Quote modal shell (shared) ---------- */

.quote-modal .modal-dialog {
    max-width: 980px;
}

/* Bootstrap's default modal transition only fades + slides down slightly;
   adding a scale gives the open/close a bit more presence without being
   showy. Overrides the transform Bootstrap sets on .modal.fade .modal-dialog. */
.quote-modal.fade .modal-dialog {
    transform: scale(0.95) translateY(-8px);
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.quote-modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

.quote-modal .modal-content {
    position: relative;
    border: none;
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.quote-modal .modal-header,
.quote-modal .modal-footer {
    border: none;
    padding: 1.1rem 1.6rem;
}

.quote-modal .modal-body {
    padding: 3.4rem 1.6rem 1.6rem;
}

.quote-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #ffffff;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.quote-close-btn:hover {
    color: var(--accent-strong);
}

.quote-custom-request .quote-layout > .col-lg-7,
#quoteModal.quote-start .quote-layout > .col-lg-7,
#quoteModal.quote-size .quote-layout > .col-lg-7,
#quoteModal.quote-mount .quote-layout > .col-lg-7 {
    width: 100%;
}

.quote-custom-request .quote-layout > .col-lg-5,
#quoteModal.quote-start .quote-layout > .col-lg-5,
#quoteModal.quote-size .quote-layout > .col-lg-5,
#quoteModal.quote-mount .quote-layout > .col-lg-5 {
    display: none;
}

.quote-step {
    display: none;
}

.quote-step.active {
    display: block;
}

/* Directional slide-in for the wizard: js/main.js decides forward/back and
   adds one of these two classes to the step that's becoming active, then
   clears it before the next transition so the animation can replay. */
.quote-step.active.quote-step-enter-fwd {
    animation: quoteStepInFwd 0.38s var(--ease) both;
}

.quote-step.active.quote-step-enter-back {
    animation: quoteStepInBack 0.38s var(--ease) both;
}

@keyframes quoteStepInFwd {
    from {
        opacity: 0;
        transform: translateX(28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes quoteStepInBack {
    from {
        opacity: 0;
        transform: translateX(-28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Brief confirmation pulse when an option card is selected (TV size, mount,
   wire, devices, handyman radio-cards) - js/main.js toggles this class on. */
@keyframes quoteOptionPulse {
    0% { transform: scale(1); }
    40% { transform: scale(0.96); }
    100% { transform: scale(1); }
}

.quote-tv-option.is-picked,
.quote-mount-card.is-picked,
.quote-wire-card.is-picked,
.quote-device-card.is-picked {
    animation: quoteOptionPulse 0.32s var(--ease);
}

.quote-progress-track {
    height: 6px;
    overflow: hidden;
    border-radius: var(--radius-pill);
    background: var(--line);
}

.quote-progress-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    transition: width 0.3s ease;
}

.quote-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.quote-step-title {
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 800;
}

.quote-start-center {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    text-align: center;
}

.quote-start-title {
    margin: 0;
    color: var(--ink);
    font-size: 1.4rem;
    font-weight: 800;
}

.quote-start-sub {
    margin: 0;
    color: var(--muted);
}

.quote-zip-card {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.quote-zip-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.quote-zip-input {
    border: none;
    background: transparent;
    color: var(--ink);
    font-size: 1.05rem;
    width: 200px;
    padding: 6px 4px;
    outline: none;
}

.quote-zip-input::placeholder {
    color: #9aa5b4;
}

.quote-zip-next {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #ffffff;
    font-size: 1.15rem;
}

.quote-zip-error {
    min-height: 1.2rem;
    margin-top: 0.4rem;
    color: var(--danger);
    font-size: 0.82rem;
    font-weight: 700;
}

.quote-zip-input[aria-invalid="true"] {
    box-shadow: 0 0 0 2px rgba(217, 45, 32, 0.3);
    border-radius: 8px;
}

/* Option cards shared by TV size / mount / wire / device steps */

.quote-tv-option,
.quote-mount-card,
.quote-wire-card,
.quote-device-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--steel-soft);
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}

.quote-tv-option:active,
.quote-mount-card:active,
.quote-wire-card:active,
.quote-device-card:active {
    transform: scale(0.98);
}

.quote-tv-option:hover,
.quote-mount-card:hover,
.quote-wire-card:hover,
.quote-device-card:hover {
    border-color: rgba(232, 68, 46, 0.5);
    background: #d9e4ea;
}

.quote-tv-option.active,
.quote-mount-card.active,
.quote-wire-card.active,
.quote-device-card.active {
    border-color: var(--accent-strong);
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #ffffff;
}

.quote-tv-option.active:hover,
.quote-mount-card.active:hover,
.quote-wire-card.active:hover,
.quote-device-card.active:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.quote-tv-option {
    justify-content: space-between;
    min-height: 58px;
    font-weight: 600;
}

.quote-tv-price,
.quote-mount-price,
.quote-wire-price,
.quote-device-price {
    color: var(--accent-strong);
    font-weight: 700;
}

.quote-tv-option.active .quote-tv-price,
.quote-mount-card.active .quote-mount-price,
.quote-wire-card.active .quote-wire-price,
.quote-device-card.active .quote-device-price {
    color: #ffffff;
}

.quote-mount-card {
    flex-direction: column;
    justify-content: center;
    min-height: 176px;
    text-align: center;
    gap: 0.6rem;
}

.quote-mount-card img,
.quote-mount-icon {
    width: 54px;
    height: 54px;
}

.quote-mount-card img {
    object-fit: contain;
}

.quote-mount-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 1.4rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.quote-mount-card.active .quote-mount-icon {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.quote-mount-title {
    font-weight: 700;
    font-size: 0.92rem;
}

.quote-wire-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.quote-wire-title {
    font-weight: 700;
}

.quote-wire-card .text-muted {
    color: var(--muted) !important;
}

.quote-wire-card.active .text-muted {
    color: rgba(255, 255, 255, 0.82) !important;
}

.quote-device-card {
    justify-content: space-between;
}

.quote-device-title {
    font-weight: 700;
}

.quote-device-note {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.quote-device-card.active .quote-device-note {
    color: rgba(255, 255, 255, 0.82);
}

.quote-device-toggle {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-weight: 800;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.quote-device-card.active .quote-device-toggle {
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-strong);
}

/* Request form (step 6) */

.quote-form-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.quote-form-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--bg);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.quote-form-trust i {
    color: var(--accent-strong);
}

.quote-field-label {
    display: block;
    margin: 0 0 0.4rem 0.15rem;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
}

.quote-input {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--ink);
    padding: 0.7rem 0.85rem;
}

.quote-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 68, 46, 0.16);
}

.quote-input.is-invalid {
    border-color: var(--danger);
}

.quote-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.16);
}

.quote-field-label .required-mark {
    color: var(--danger);
}

.quote-field-error {
    min-height: 1.1rem;
    margin-top: 0.35rem;
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 600;
}

.quote-file-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
}

.quote-file-label i {
    color: var(--accent-strong);
}

.quote-file-name {
    color: var(--muted);
    font-size: 0.88rem;
}

/* Sidebar summary */

.quote-sidebar-card {
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
}

.quote-breakdown {
    list-style: none;
    margin: 0;
    padding: 0;
}

.quote-breakdown li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.9rem;
    color: var(--ink);
}

[data-quote-total] {
    color: var(--accent-strong);
    font-size: 1.3rem;
}

/* Upload progress bar (shown while send_booking.php upload is in flight) */

.quote-upload-progress {
    display: none;
    height: 8px;
    margin-top: 1rem;
    overflow: hidden;
    border-radius: var(--radius-pill);
    background: var(--line);
}

.quote-upload-progress.is-active {
    display: block;
}

.quote-upload-progress-bar {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    background-size: 200% 100%;
    animation: quoteUploadShimmer 1.2s linear infinite;
    transition: width 0.2s ease;
}

@keyframes quoteUploadShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: 0 0; }
}

/* Success checkmark (final wizard step) */

.quote-success-check {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.2rem;
}

.quote-success-check svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.quote-success-check-circle {
    fill: none;
    stroke: var(--success);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 176;
    stroke-dashoffset: 176;
    animation: quoteCheckCircle 0.5s ease forwards;
}

.quote-success-check-mark {
    fill: none;
    stroke: var(--success);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: quoteCheckMark 0.35s ease 0.45s forwards;
}

@keyframes quoteCheckCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes quoteCheckMark {
    to { stroke-dashoffset: 0; }
}

/* ---------- Motion / a11y ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Shared responsive rules ---------- */

@media (max-width: 991.98px) {
    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-brand {
        gap: 0.65rem;
        font-size: 1.25rem;
    }

    .site-brand img {
        width: 52px;
        height: 52px;
        border-radius: 13px;
    }

    .site-links {
        position: absolute;
        top: calc(100% + 10px);
        right: 16px;
        left: 16px;
        display: grid;
        max-height: 0;
        padding: 0;
        overflow: hidden;
        border: 1px solid transparent;
        border-radius: var(--radius);
        background: #ffffff;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.2s ease, transform 0.2s ease;
    }

    .site-links.is-open {
        max-height: 480px;
        padding: 0.6rem;
        border-color: var(--line);
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .site-links a:not(.nav-cta) {
        display: flex;
        min-height: 48px;
        align-items: center;
        border-radius: var(--radius-sm);
    }

    .site-links .nav-cta {
        margin: 0.4rem 0 0;
        justify-content: center;
    }

    .site-links .nav-phone {
        display: flex;
        min-height: 48px;
        margin: 0.2rem 0 0;
        justify-content: center;
        border-radius: var(--radius-sm);
        border: 1px dashed var(--line-blueprint);
    }
}

@keyframes mobileBarIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767.98px) {
    .mobile-bar {
        display: flex;
        animation: mobileBarIn 0.5s var(--ease) both;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-card {
        position: static;
    }

    .areas-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .areas-grid a {
        min-height: 50px;
        padding: 0.7rem 0.85rem;
        font-size: 0.9rem;
    }

    .quote-modal .modal-dialog {
        max-width: 100%;
        margin: 0;
    }

    .quote-modal .modal-content {
        /* 100vh on iOS Safari/Chrome is measured against the browser chrome
           collapsed (largest possible viewport), which is taller than what's
           actually visible when the address bar is showing - that pushed the
           progress bar/close button above the real visible area on some
           phones. 100dvh tracks the actual current viewport instead. The
           100vh line stays first as a fallback for browsers that don't
           support dvh yet. */
        min-height: 100vh;
        min-height: 100dvh;
        border-radius: 0;
    }

    .quote-modal .modal-body {
        padding: 3.1rem 1.1rem 1.1rem;
        max-height: calc(100vh - 150px);
        max-height: calc(100dvh - 150px);
        overflow-y: auto;
    }

    .quote-modal .modal-header,
    .quote-modal .modal-footer {
        padding: 0.9rem 1.1rem;
    }

    .quote-modal .modal-footer {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .quote-footer-nav {
        flex: 1 1 auto;
        justify-content: flex-end;
    }

    .quote-mount-grid .col-md-3 {
        width: 50%;
    }

    .quote-start-center {
        min-height: 260px;
    }

    .quote-zip-input {
        width: 150px;
    }
}
