/* =========================================================
   CONTACT PAGE
   ========================================================= */

.contact-page {
    background: #ffffff;
}

.contact-page *,
.contact-page *::before,
.contact-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   HERO
   ========================================================= */

.contact-hero {
    padding: 58px 0;
    border-bottom: 1px solid #dde5de;
    background:
        radial-gradient(
            circle at top right,
            rgba(8, 123, 33, 0.12),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #f1f6f1 0%,
            #ffffff 62%,
            #f4f7f4 100%
        );
}

.contact-hero__inner {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(320px, 0.68fr);
    gap: 55px;
    align-items: center;
}

.contact-eyebrow {
    margin: 0 0 8px;
    color: #087b21;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.contact-hero h1 {
    max-width: 760px;
    margin: 0 0 17px;
    color: #172019;
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.contact-hero__intro {
    max-width: 760px;
    margin: 0;
    color: #566057;
    font-size: 1.08rem;
    line-height: 1.72;
}

.contact-hero__trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.contact-trust-item {
    min-height: 145px;
    padding: 22px 13px;
    border: 1px solid #d8e2d9;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    text-align: center;
    box-shadow: 0 8px 25px rgba(27, 42, 29, 0.06);
}

.contact-trust-item strong {
    display: block;
    margin-bottom: 8px;
    color: #087b21;
    font-size: 1.52rem;
    line-height: 1;
}

.contact-trust-item span {
    color: #555f56;
    font-size: 0.83rem;
    font-weight: 750;
    line-height: 1.35;
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.contact-content {
    padding: 52px 0 68px;
}

.contact-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        340px;
    gap: 25px;
    align-items: start;
}

.contact-form-card,
.contact-sidebar-card {
    border: 1px solid #dbe3dc;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(27, 41, 29, 0.07);
}

.contact-form-card {
    padding: 31px;
}

.contact-form-card__header h2,
.contact-sidebar-card h2 {
    margin: 0 0 10px;
    color: #1b251d;
    line-height: 1.15;
}

.contact-form-card__header > p:last-child,
.contact-sidebar-card > p {
    color: #5d665e;
    line-height: 1.65;
}


/* =========================================================
   STORE SELECTOR
   ========================================================= */

.contact-store-selector {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid #d6e3d7;
    border-radius: 13px;
    background: #f3f8f3;
}

.contact-store-selector__heading {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
}

.contact-store-selector label {
    display: block;
    color: #243027;
    font-weight: 900;
}

.contact-store-selector label span,
.contact-field label span {
    color: #b31919;
}

.contact-store-selector__heading p {
    margin: 4px 0 0;
    color: #687169;
    font-size: 0.9rem;
}

.contact-store-selector select {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #bcc8be;
    border-radius: 8px;
    background: #ffffff;
    color: #222a23;
    font: inherit;
}

.contact-location-button {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 7px;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid #087b21;
    border-radius: 8px;
    background: #ffffff;
    color: #087b21;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 850;
    cursor: pointer;
}

.contact-location-button:hover {
    background: #edf7ef;
}

.contact-location-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.contact-location-status {
    min-height: 22px;
    margin-top: 9px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.contact-location-status--working {
    color: #59625a;
}

.contact-location-status--success {
    color: #126523;
    font-weight: 750;
}

.contact-location-status--error {
    color: #982020;
}


/* =========================================================
   FORM
   ========================================================= */

.contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 21px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-field--full {
    grid-column: 1 / -1;
}

.contact-field label {
    color: #273129;
    font-size: 0.94rem;
    font-weight: 850;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #c5cec6;
    border-radius: 8px;
    background: #ffffff;
    color: #202721;
    font: inherit;
}

.contact-field input,
.contact-field select {
    min-height: 46px;
}

.contact-field textarea {
    min-height: 155px;
    resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus,
.contact-store-selector select:focus {
    border-color: #087b21;
    outline: none;
    box-shadow: 0 0 0 3px rgba(8, 123, 33, 0.12);
}

.contact-form__footer {
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: space-between;
    margin-top: 21px;
    padding-top: 20px;
    border-top: 1px solid #e4e9e4;
}

.contact-form__footer p {
    max-width: 620px;
    margin: 0;
    color: #6b736c;
    font-size: 0.84rem;
    line-height: 1.5;
}

.contact-submit-button,
.contact-sidebar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid #087b21;
    border-radius: 9px;
    background: #087b21;
    color: #ffffff;
    font: inherit;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(8, 123, 33, 0.18);
}

.contact-submit-button:hover,
.contact-sidebar-button:hover {
    background: #06691c;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.contact-sidebar {
    display: grid;
    gap: 20px;
}

.contact-sidebar-card {
    padding: 25px;
}

.contact-sidebar-button {
    width: 100%;
    margin-top: 10px;
}

.contact-sidebar-card--green {
    border-color: #087b21;
    background: #087b21;
    color: #ffffff;
}

.contact-sidebar-card--green h2 {
    color: #ffffff;
}

.contact-sidebar-card--green ul {
    margin: 15px 0 0;
    padding-left: 20px;
}

.contact-sidebar-card--green li {
    margin: 10px 0;
    line-height: 1.5;
}


/* =========================================================
   MESSAGES AND SPAM FIELD
   ========================================================= */

.contact-message {
    margin: 20px 0;
    padding: 15px 17px;
    border-radius: 9px;
}

.contact-message p {
    margin: 5px 0 0;
    line-height: 1.5;
}

.contact-message--success {
    border: 1px solid #acd9b2;
    background: #eaf7ec;
    color: #145f22;
}

.contact-message--error {
    border: 1px solid #e2b2b2;
    background: #fff0f0;
    color: #972020;
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {
    .contact-hero__inner,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-hero__trust {
        max-width: 680px;
    }

    .contact-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {
    .contact-hero {
        padding: 39px 0;
    }

    .contact-hero h1 {
        font-size: 2.35rem;
    }

    .contact-hero__trust {
        grid-template-columns: 1fr;
    }

    .contact-trust-item {
        min-height: auto;
        padding: 17px;
    }

    .contact-content {
        padding: 35px 0 50px;
    }

    .contact-form-card,
    .contact-sidebar-card {
        padding: 21px;
    }

    .contact-store-selector {
        padding: 16px;
    }

    .contact-store-selector__heading {
        display: block;
    }

    .contact-location-button {
        width: 100%;
        margin-top: 13px;
    }

    .contact-form__grid,
    .contact-sidebar {
        grid-template-columns: 1fr;
    }

    .contact-field--full {
        grid-column: auto;
    }

    .contact-form__footer {
        display: block;
    }

    .contact-submit-button {
        width: 100%;
        margin-top: 16px;
    }
}

/* ============================================================
   CONTACT PAGE — COMPACT DESKTOP LAYOUT
   ============================================================ */

.contact-page {
    font-size: 15px;
}

.contact-page .site-container {
    width: min(100% - 40px, 1180px);
    margin-inline: auto;
}

/* Hero */
.contact-hero {
    padding: 28px 0 24px;
}

.contact-hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.contact-hero__content {
    max-width: 670px;
}

.contact-hero h1 {
    margin: 4px 0 8px;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.08;
}

.contact-hero__intro {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.contact-eyebrow {
    margin: 0 0 4px;
    font-size: 12px;
}

.contact-hero__trust {
    gap: 12px;
}

.contact-trust-item {
    min-width: 120px;
    padding: 12px 14px;
}

.contact-trust-item strong {
    font-size: 22px;
}

.contact-trust-item span {
    font-size: 12px;
    line-height: 1.3;
}

/* Main content */
.contact-content {
    padding: 30px 0 44px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
    align-items: start;
}

/* Form card */
.contact-form-card {
    padding: 24px;
}

.contact-form-card__header {
    margin-bottom: 18px;
}

.contact-form-card__header h2 {
    margin: 2px 0 5px;
    font-size: 25px;
}

.contact-form-card__header p {
    margin: 0;
    line-height: 1.45;
}

/* Store selector */
.contact-store-selector {
    margin-bottom: 18px;
    padding: 16px;
}

.contact-store-selector__heading {
    margin-bottom: 10px;
}

.contact-store-selector__heading p {
    margin: 3px 0 0;
    font-size: 13px;
}

.contact-location-button {
    min-height: 38px;
    padding: 8px 13px;
}

.contact-store-selector select {
    min-height: 44px;
    padding: 9px 12px;
}

/* Form fields */
.contact-form__grid {
    gap: 14px 16px;
}

.contact-field label {
    margin-bottom: 5px;
    font-size: 14px;
}

.contact-field input,
.contact-field select {
    min-height: 42px;
    padding: 8px 11px;
}

.contact-field textarea {
    min-height: 110px;
    padding: 10px 11px;
    resize: vertical;
}

.contact-form__footer {
    margin-top: 18px;
    padding-top: 16px;
    gap: 18px;
}

.contact-form__footer p {
    margin: 0;
    max-width: 560px;
    font-size: 12px;
    line-height: 1.4;
}

.contact-submit-button {
    min-height: 42px;
    padding: 9px 22px;
}

/* Sidebar */
.contact-sidebar {
    gap: 18px;
}

.contact-sidebar-card {
    padding: 20px;
}

.contact-sidebar-card h2 {
    margin: 3px 0 9px;
    font-size: 21px;
}

.contact-sidebar-card p {
    margin: 0 0 15px;
    line-height: 1.5;
}

.contact-sidebar-card ul {
    margin: 10px 0 0;
    padding-left: 19px;
}

.contact-sidebar-card li {
    margin-bottom: 7px;
    line-height: 1.4;
}

.contact-sidebar-button {
    min-height: 40px;
    padding: 9px 16px;
}

/* ============================================================
   TABLET / MOBILE
   ============================================================ */

@media (max-width: 900px) {
    .contact-page .site-container {
        width: min(100% - 28px, 720px);
    }

    .contact-hero__inner {
        display: block;
    }

    .contact-hero__trust {
        margin-top: 20px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .contact-page .site-container {
        width: min(100% - 20px, 100%);
    }

    .contact-hero {
        padding: 22px 0 20px;
    }

    .contact-hero h1 {
        font-size: 30px;
    }

    .contact-hero__trust {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .contact-content {
        padding: 20px 0 90px;
    }

    .contact-form-card,
    .contact-sidebar-card {
        padding: 18px;
    }

    .contact-form__grid {
        grid-template-columns: 1fr;
    }

    .contact-field--full {
        grid-column: auto;
    }

    .contact-store-selector__heading,
    .contact-form__footer {
        display: block;
    }

    .contact-location-button,
    .contact-submit-button {
        width: 100%;
        margin-top: 12px;
    }

    .contact-sidebar {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   CONTACT PAGE — COMPACT DESKTOP OVERRIDE
   ============================================================ */

.contact-page .site-container {
    width: 100% !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
}

.contact-hero {
    padding: 22px 0 !important;
    min-height: 0 !important;
}

.contact-hero__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1.4fr) minmax(430px, 1fr) !important;
    align-items: center !important;
    gap: 32px !important;
}

.contact-hero__content {
    max-width: 620px !important;
}

.contact-hero h1 {
    margin: 4px 0 10px !important;
    font-size: 42px !important;
    line-height: 1.05 !important;
}

.contact-hero__intro {
    margin: 0 !important;
    max-width: 620px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
}

.contact-hero__trust {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.contact-trust-item {
    min-width: 0 !important;
    padding: 14px 10px !important;
}

.contact-trust-item strong {
    font-size: 21px !important;
}

.contact-trust-item span {
    font-size: 11px !important;
    line-height: 1.3 !important;
}

.contact-content {
    padding: 24px 0 40px !important;
}

.contact-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 285px !important;
    gap: 20px !important;
    align-items: start !important;
}

.contact-form-card {
    padding: 22px !important;
}

.contact-form-card__header {
    margin-bottom: 15px !important;
}

.contact-form-card__header h2 {
    margin: 2px 0 5px !important;
    font-size: 24px !important;
}

.contact-form-card__header p {
    margin: 0 !important;
}

.contact-store-selector {
    margin-bottom: 14px !important;
    padding: 14px 16px !important;
}

.contact-store-selector__heading {
    margin-bottom: 9px !important;
}

.contact-store-selector select {
    min-height: 42px !important;
}

.contact-form__grid {
    gap: 12px 14px !important;
}

.contact-field input,
.contact-field select {
    min-height: 40px !important;
    padding: 8px 10px !important;
}

.contact-field textarea {
    min-height: 90px !important;
    padding: 9px 10px !important;
}

.contact-form__footer {
    margin-top: 14px !important;
    padding-top: 14px !important;
}

.contact-sidebar {
    gap: 14px !important;
}

.contact-sidebar-card {
    padding: 18px !important;
}

.contact-sidebar-card h2 {
    font-size: 20px !important;
    margin: 3px 0 8px !important;
}

.contact-sidebar-card p,
.contact-sidebar-card li {
    font-size: 13px !important;
    line-height: 1.45 !important;
}

@media (max-width: 950px) {
    .contact-hero__inner,
    .contact-layout {
        grid-template-columns: 1fr !important;
    }

    .contact-hero__trust {
        margin-top: 18px !important;
    }

    .contact-sidebar {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .contact-page .site-container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .contact-hero h1 {
        font-size: 31px !important;
    }

    .contact-hero__trust,
    .contact-sidebar {
        grid-template-columns: 1fr !important;
    }

    .contact-form-card,
    .contact-sidebar-card {
        padding: 17px !important;
    }
}