/* ============================================================
   Contact / quote page
   Scoped to .contact-page so the shared site system stays intact.
   ============================================================ */

.contact-breadcrumb {
    padding-top: 18px;
}

.contact-page {
    --contact-dark: #0c2c1b;
    --contact-deep: #123d27;
    --contact-green: #00a84d;
    --contact-lime: #83e45b;
    --contact-cream: #f3f7f2;
    --contact-card: #ffffff;
    --contact-ink: #14271c;
    --contact-muted: #66736b;
    --contact-line: #dce7de;
    --contact-soft-line: rgba(20, 39, 28, .10);
    --contact-danger: #9a332f;
    padding: clamp(22px, 3vw, 38px) 0 clamp(62px, 7vw, 104px);
}

.contact-shell {
    display: grid;
    grid-template-columns: minmax(310px, .82fr) minmax(520px, 1.18fr);
    min-height: 720px;
    overflow: hidden;
    border: 1px solid var(--contact-line);
    border-radius: 34px;
    background: var(--contact-cream);
    box-shadow: 0 32px 90px rgba(17, 61, 38, .10);
}

/* Left contact panel */
.contact-intro {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: clamp(34px, 4.8vw, 64px);
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 6%, rgba(131, 228, 91, .23), transparent 28%),
        radial-gradient(circle at 8% 92%, rgba(0, 168, 77, .26), transparent 30%),
        var(--contact-dark);
    color: rgba(255, 255, 255, .74);
}

.contact-intro::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -130px;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 42px rgba(255,255,255,.025),
        0 0 0 86px rgba(255,255,255,.02);
    pointer-events: none;
}

.contact-intro-top,
.contact-action-stack,
.contact-facts,
.contact-email {
    position: relative;
    z-index: 1;
}

.contact-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 22px;
    color: rgba(255,255,255,.78);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1.3;
    text-transform: uppercase;
}

.contact-kicker-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--contact-lime);
    box-shadow: 0 0 0 5px rgba(131, 228, 91, .11);
}

.contact-intro h1 {
    max-width: 8.6ch;
    margin: 0;
    color: #fff;
    font-size: clamp(3rem, 5vw, 5.4rem);
    line-height: .94;
    letter-spacing: -.055em;
}

.contact-lede {
    max-width: 32rem;
    margin: 26px 0 0;
    color: rgba(255,255,255,.69);
    font-size: clamp(.98rem, 1.25vw, 1.08rem);
    line-height: 1.72;
}

.contact-action-stack {
    display: grid;
    gap: 10px;
    margin-top: clamp(30px, 5vw, 54px);
}

.contact-call-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    width: 100%;
    min-height: 78px;
    padding: 15px 17px 15px 19px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 18px;
    background: rgba(255,255,255,.075);
    color: #fff;
    text-align: left;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.contact-call-card:hover {
    transform: translateY(-2px);
    border-color: rgba(131, 228, 91, .55);
    background: rgba(255,255,255,.11);
    color: #fff;
}

.contact-chat-card {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
}

.contact-chat-card[hidden] {
    display: none !important;
}

.contact-chat-card:focus-visible {
    outline: 3px solid rgba(131, 228, 91, .65);
    outline-offset: 3px;
}

.contact-chat-status {
    display: flex;
    align-items: center;
    gap: 9px;
}

.contact-chat-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
}

.contact-chat-card.is-online .contact-chat-dot {
    background: var(--contact-lime);
    box-shadow: 0 0 0 5px rgba(131, 228, 91, .12);
}

.contact-call-card small {
    display: block;
    margin-bottom: 3px;
    color: rgba(255,255,255,.58);
    font-size: .72rem;
    font-weight: 650;
    line-height: 1.4;
}

.contact-call-card strong {
    display: block;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.contact-action-arrow {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--contact-lime);
    color: var(--contact-dark);
    font-size: 1rem;
    font-weight: 900;
}


.contact-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: auto 0 0;
    padding-top: clamp(34px, 5vw, 56px);
}

.contact-facts > div {
    min-width: 0;
    padding: 17px 18px 17px 0;
    border-top: 1px solid rgba(255,255,255,.12);
}

.contact-facts > div:nth-child(even) {
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,.12);
}

.contact-facts dt {
    margin-bottom: 5px;
    color: rgba(255,255,255,.46);
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.contact-facts dd {
    color: rgba(255,255,255,.84);
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.55;
}

.contact-email {
    width: fit-content;
    margin-top: 14px;
    color: rgba(255,255,255,.62);
    font-size: .78rem;
    font-weight: 650;
    text-decoration-color: rgba(255,255,255,.24);
}

.contact-email:hover {
    color: #fff;
}

/* Right form panel */
.contact-form-card {
    min-width: 0;
    align-self: stretch;
    background: var(--contact-card);
}

.contact-form-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(30px, 4vw, 48px) clamp(28px, 4.6vw, 58px) 28px;
    border-bottom: 1px solid var(--contact-soft-line);
}

.contact-form-eyebrow {
    margin: 0 0 7px;
    color: var(--green-text);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .1em;
    line-height: 1.3;
    text-transform: uppercase;
}

.contact-form-header h2,
.contact-success h2 {
    margin: 0;
    color: var(--contact-ink);
    font-size: clamp(2rem, 3.2vw, 3.1rem);
    line-height: .98;
    letter-spacing: -.045em;
}

.contact-form-time {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--contact-cream);
    color: var(--contact-muted);
    font-size: .7rem;
    font-weight: 750;
    white-space: nowrap;
}

.contact-form-body {
    padding: clamp(26px, 4vw, 48px) clamp(28px, 4.6vw, 58px) clamp(34px, 5vw, 60px);
}

.contact-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    margin: 0 0 28px;
    padding: 14px 16px;
    border: 1px solid #efd1ce;
    border-radius: 14px;
    background: #fff7f6;
    color: #74322f;
    font-size: .82rem;
    line-height: 1.5;
}

.contact-alert-icon {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    margin-top: 1px;
    border-radius: 50%;
    background: #f4d3d0;
    color: var(--contact-danger);
    font-weight: 900;
}

.contact-alert strong {
    color: #6e2a27;
}

.contact-alert ul {
    margin: 5px 0 0 18px;
}

.quote-form {
    display: grid;
    gap: 30px;
}

.quote-section {
    min-width: 0;
    margin: 0;
    padding: 0 0 30px;
    border: 0;
    border-bottom: 1px solid var(--contact-soft-line);
}

.quote-section legend {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 0 18px;
    color: var(--contact-ink);
    font-family: var(--font-display);
    font-size: .98rem;
    font-weight: 700;
    letter-spacing: -.015em;
}

.quote-section legend span {
    color: var(--green-text);
    font-family: var(--font-body);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .07em;
}

.quote-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.quote-field {
    display: grid;
    min-width: 0;
    gap: 7px;
    color: var(--contact-ink);
    font-size: .76rem;
    font-weight: 750;
    line-height: 1.4;
}

.quote-field-wide {
    grid-column: 1 / -1;
}

.quote-field b {
    color: var(--green-text);
    font-weight: 850;
}

.quote-field em {
    margin-left: 3px;
    color: #8a958d;
    font-size: .68rem;
    font-style: normal;
    font-weight: 600;
}

.quote-field input,
.quote-field select,
.quote-field textarea,
.contact-captcha-row input {
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 1px solid #d4ded7;
    border-radius: 12px;
    background: #fbfcfb;
    color: var(--contact-ink);
    font: inherit;
    font-size: .91rem;
    font-weight: 500;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.quote-field input,
.quote-field select {
    min-height: 50px;
    padding: 0 14px;
}

.quote-field textarea {
    min-height: 116px;
    padding: 12px 14px;
    line-height: 1.55;
    resize: vertical;
}

.quote-field input::placeholder,
.quote-field textarea::placeholder,
.contact-captcha-row input::placeholder {
    color: #a0aaa3;
}

.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus,
.contact-captcha-row input:focus {
    border-color: var(--contact-green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 168, 77, .10);
}

.quote-method-field {
    gap: 9px;
}

.quote-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.quote-choice {
    display: flex;
    min-width: 0;
    min-height: 66px;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #d4ded7;
    border-radius: 12px;
    background: #fbfcfb;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.quote-choice:hover {
    border-color: #afc9b7;
    background: #fff;
}

.quote-choice:has(input:checked) {
    border-color: var(--contact-green);
    background: #f4fbf6;
    box-shadow: 0 0 0 3px rgba(0, 168, 77, .08);
}

.quote-field .quote-choice input {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    accent-color: var(--contact-green);
}

.quote-choice > span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.quote-choice strong {
    color: var(--contact-ink);
    font-size: .82rem;
    font-weight: 800;
}

.quote-choice small {
    color: var(--contact-muted);
    font-size: .68rem;
    font-weight: 550;
    line-height: 1.35;
}

.contact-security {
    display: grid;
    gap: 13px;
    margin-top: -2px;
    padding: 16px;
    border: 1px solid var(--contact-line);
    border-radius: 14px;
    background: var(--contact-cream);
}

.contact-security-copy {
    display: grid;
    gap: 2px;
}

.contact-security-copy strong {
    color: var(--contact-ink);
    font-size: .78rem;
}

.contact-security-copy span {
    color: var(--contact-muted);
    font-size: .72rem;
}

.contact-captcha-row {
    display: grid;
    grid-template-columns: 150px auto minmax(120px, 1fr);
    gap: 9px;
    align-items: center;
}

.contact-captcha-row img {
    width: 150px;
    max-width: 100%;
    height: auto;
    border: 1px solid #d4ded7;
    border-radius: 10px;
    background: #fff;
}

.contact-refresh {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #d4ded7;
    border-radius: 10px;
    background: #fff;
    color: var(--contact-ink);
    font-size: .72rem;
    font-weight: 750;
    cursor: pointer;
}

.contact-refresh:hover {
    border-color: var(--contact-green);
}

.contact-captcha-row input {
    min-height: 44px;
    padding: 0 12px;
}

.contact-consent {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin-top: -3px;
    color: #718078;
    font-size: .68rem;
    font-weight: 500;
    line-height: 1.55;
}


.contact-consent[hidden] {
    display: none;
}

.contact-consent input {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--contact-green);
}

.contact-submit-row {
    display: grid;
    gap: 10px;
}

.contact-submit {
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 20px 0 22px;
    border: 0;
    border-radius: 14px;
    background: var(--contact-dark);
    color: #fff;
    font: inherit;
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(12, 44, 27, .13);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.contact-submit span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--contact-lime);
    color: var(--contact-dark);
    font-size: .9rem;
}

.contact-submit:hover {
    transform: translateY(-1px);
    background: var(--contact-deep);
    box-shadow: 0 14px 30px rgba(12, 44, 27, .16);
}

.contact-submit-row p {
    margin: 0;
    color: #8b958f;
    font-size: .66rem;
    line-height: 1.5;
    text-align: center;
}

/* Success state */
.contact-success {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: center;
    padding: clamp(42px, 7vw, 92px) clamp(32px, 6vw, 78px);
}

.contact-success-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin-bottom: 26px;
    border-radius: 18px;
    background: #e6f7eb;
    color: var(--green-text);
    font-size: 1.35rem;
    font-weight: 900;
}

.contact-success h2 {
    max-width: 12ch;
}

.contact-success > p:not(.contact-form-eyebrow) {
    max-width: 31rem;
    margin: 21px 0 0;
    color: var(--contact-muted);
    font-size: .98rem;
    line-height: 1.7;
}

.contact-success-call {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    color: var(--contact-ink);
    font-weight: 800;
    text-decoration: none;
}

.contact-success-call:hover {
    color: var(--green-text);
}

/* Tablet */
@media (max-width: 1020px) {
    .contact-shell {
        grid-template-columns: 1fr;
    }

    .contact-intro {
        min-height: auto;
    }

    .contact-intro h1 {
        max-width: 11ch;
    }

    .contact-lede {
        max-width: 40rem;
    }

    .contact-action-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 760px;
    }

    .contact-facts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-top: 36px;
    }

    .contact-facts > div,
    .contact-facts > div:nth-child(even) {
        padding: 14px 16px 14px 0;
        border-top: 1px solid rgba(255,255,255,.12);
        border-left: 0;
    }

    .contact-facts > div + div {
        padding-left: 16px;
        border-left: 1px solid rgba(255,255,255,.12);
    }
}

/* Mobile */
@media (max-width: 680px) {
    .contact-breadcrumb {
        padding-top: 10px;
    }

    .contact-page {
        padding-top: 14px;
    }

    .contact-shell {
        width: min(calc(100% - 28px), var(--wrap));
        border-radius: 24px;
    }

    .contact-intro {
        padding: 32px 24px 30px;
    }

    .contact-intro h1 {
        max-width: 9ch;
        font-size: clamp(2.75rem, 13vw, 4.15rem);
    }

    .contact-lede {
        margin-top: 20px;
        font-size: .95rem;
    }

    .contact-action-stack {
        grid-template-columns: 1fr;
        margin-top: 28px;
    }

    .contact-call-card {
        min-height: 72px;
        border-radius: 15px;
    }

    .contact-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 28px;
        padding-top: 0;
    }

    .contact-facts > div,
    .contact-facts > div:nth-child(even),
    .contact-facts > div + div {
        padding: 14px 12px 14px 0;
        border-top: 1px solid rgba(255,255,255,.12);
        border-left: 0;
    }

    .contact-facts > div:nth-child(even) {
        padding-left: 14px;
        border-left: 1px solid rgba(255,255,255,.12);
    }

    .contact-form-header {
        align-items: flex-start;
        padding: 30px 23px 23px;
    }

    .contact-form-header h2 {
        font-size: 2.25rem;
    }

    .contact-form-time {
        margin-top: 3px;
        padding: 7px 9px;
        font-size: .62rem;
    }

    .contact-form-body {
        padding: 25px 23px 34px;
    }

    .quote-form {
        gap: 25px;
    }

    .quote-section {
        padding-bottom: 25px;
    }

    .quote-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .quote-field-wide {
        grid-column: auto;
    }

    .quote-choice-grid {
        grid-template-columns: 1fr;
    }

    .contact-captcha-row {
        grid-template-columns: 1fr auto;
    }

    .contact-captcha-row input {
        grid-column: 1 / -1;
    }

    .contact-success {
        padding: 48px 28px 58px;
    }
}

@media (max-width: 420px) {
    .contact-form-header {
        display: block;
    }

    .contact-form-time {
        display: inline-block;
        margin-top: 13px;
    }

    .contact-facts {
        grid-template-columns: 1fr;
    }

    .contact-facts > div,
    .contact-facts > div:nth-child(even),
    .contact-facts > div + div {
        padding: 12px 0;
        border-left: 0;
    }
}
