
/* =========================================================
   eDEFEND CONTACT PAGE
   Matches the supplied Contact page reference and uses the
   approved shared header/footer design system.
========================================================= */

.contact-main {
    min-height: 0;
    background: #f8fafb;
}

.contact-container {
    width: min(calc(100% - 72px), 1180px);
    margin-inline: auto;
}

.contact-page-head {
    padding: 72px 0 42px;
}

.contact-page-head h1 {
    margin: 0;
    color: #17191d;
    font-size: clamp(42px, 5vw, 62px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.055em;
}

.contact-title-line {
    width: 92px;
    height: 5px;
    margin-top: 17px;
    background: #248E41;
    border-radius: 999px;
}

.contact-page-head p {
    max-width: 720px;
    margin: 22px 0 0;
    color: #646a73;
    font-size: 18px;
    line-height: 1.55;
}

/* ---------------------------------------------------------
   MAIN CONTACT GRID
--------------------------------------------------------- */

.contact-grid {
    padding-bottom: 78px;
    display: grid;
    grid-template-columns: 1.42fr .98fr;
    gap: 46px;
    align-items: stretch;
}

.contact-card {
    background: #fff;
    border: 1px solid #dfe4e7;
    border-radius: 17px;
    box-shadow: 0 2px 4px rgba(24, 39, 31, .025);
}

.contact-form-card {
    padding: 42px 40px 46px;
}

.contact-details-card {
    padding: 42px 40px 40px;
}

.contact-card-title {
    margin: 0;
    color: #17191d;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.03em;
}

.contact-card-title-line {
    width: 46px;
    height: 4px;
    margin: 10px 0 28px;
    background: #248E41;
    border-radius: 999px;
}

/* ---------------------------------------------------------
   FORM
--------------------------------------------------------- */

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 19px 20px;
}

.contact-field {
    min-width: 0;
}

.contact-field--full {
    grid-column: 1 / -1;
}

.contact-label {
    display: block;
    margin-bottom: 7px;
    color: #3d4249;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .015em;
}

.contact-label .required {
    color: #e54848;
}

.contact-input,
.contact-select,
.contact-textarea {
    width: 100%;
    border: 1px solid #cfd5d9;
    background: #fff;
    color: #242a31;
    outline: none;
    border-radius: 8px;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.contact-input,
.contact-select {
    height: 44px;
    padding: 0 15px;
    font-size: 13px;
}

.contact-select {
    padding-right: 40px;
}

.contact-textarea {
    min-height: 126px;
    padding: 15px;
    resize: vertical;
    font-size: 13px;
    line-height: 1.55;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
    color: #a4a8ad;
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
    border-color: #248E41;
    box-shadow: 0 0 0 3px rgba(36,147,65,.10);
}

.contact-privacy-note {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding-top: 2px;
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    color: #7a8088;
    font-size: 11px;
    line-height: 1.55;
}

.contact-privacy-icon {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    color: #248E41;
    font-size: 12px;
    font-weight: 800;
}

.contact-submit-row {
    grid-column: 1 / -1;
    margin-top: 13px;
}

.contact-submit {
    min-width: 184px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: #248E41;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color .22s ease,
        transform .22s ease,
        box-shadow .22s ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
    background: #248E41;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(36,147,65,.18);
}

.contact-form-status {
    margin: 12px 0 0;
    color: #248E41;
    font-size: 12px;
    line-height: 1.5;
}

/* ---------------------------------------------------------
   CONTACT DETAILS
--------------------------------------------------------- */

.contact-detail-list {
    display: grid;
    gap: 24px;
}

.contact-detail-row {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 15px;
    align-items: start;
}

.contact-detail-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #248E41;
    background: #eefaf3;
    border: 1px solid #d8eee0;
    border-radius: 12px;
    font-size: 17px;
}

.contact-detail-label {
    display: block;
    margin-bottom: 4px;
    color: #737981;
    font-size: 11px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.contact-detail-value {
    display: block;
    color: #20242a;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}

.contact-detail-value--green {
    color: #248E41;
}

.contact-detail-note {
    display: block;
    margin-top: 3px;
    color: #858a91;
    font-size: 11px;
    line-height: 1.4;
}

.contact-separator {
    height: 1px;
    margin: 22px 0 24px;
    background: #edf0f2;
}

.contact-subtitle {
    margin: 0 0 15px;
    color: #747a82;
    font-size: 11px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.contact-locations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-location {
    min-height: 92px;
    padding: 16px;
    background: #f9faf9;
    border: 1px solid #edf0f1;
    border-radius: 12px;
}

.contact-location strong {
    display: block;
    margin-bottom: 8px;
    color: #20242a;
    font-size: 13px;
    line-height: 1.25;
}

.contact-location strong span {
    color: #248E41;
    margin-right: 6px;
}

.contact-location small {
    display: block;
    color: #787f88;
    font-size: 11px;
    line-height: 1.4;
}

.contact-assurances {
    display: grid;
    gap: 11px;
}

.contact-assurance {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 9px;
    align-items: center;
    color: #4e555e;
    font-size: 11px;
    line-height: 1.45;
}

.contact-assurance-check {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    color: #248E41;
    background: #eefaf3;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
}

/* ---------------------------------------------------------
   ENGAGEMENT
--------------------------------------------------------- */

.engagement-section {
    padding: 60px 0 92px;
    border-top: 1px solid #e6eaec;
    background: #f8fafb;
}

.engagement-head {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.engagement-head h2 {
    margin: 0;
    color: #17191d;
    font-size: 27px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.03em;
}

.engagement-title-line {
    width: 58px;
    height: 4px;
    margin: 13px auto 0;
    background: #248E41;
    border-radius: 999px;
}

.engagement-head p {
    margin: 15px auto 0;
    color: #747b84;
    font-size: 13px;
    line-height: 1.6;
}

.engagement-grid {
    max-width: 1040px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.engagement-card {
    min-height: 180px;
    padding: 26px 25px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
    border: 1px solid #dfe4e7;
    border-radius: 12px;
}

.engagement-number {
    min-width: 92px;
    min-height: 34px;
    margin-bottom: 18px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #248E41;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .03em;
    box-shadow: 0 10px 22px rgba(36, 142, 65, .18);
}

.engagement-card h3 {
    margin: 0 0 10px;
    color: #20242a;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}

.engagement-card p {
    margin: 0;
    color: #000;
    font-size: 12px;
    line-height: 1.6;
}

/* ---------------------------------------------------------
   REVEALS
--------------------------------------------------------- */

.contact-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity .7s cubic-bezier(.22,.61,.36,1),
        transform .7s cubic-bezier(.22,.61,.36,1);
}

.contact-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-contact-delay="1"] { transition-delay: .08s; }
[data-contact-delay="2"] { transition-delay: .16s; }

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 960px) {
    .contact-container {
        width: min(calc(100% - 40px), 1180px);
    }

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

    .contact-details-card {
        order: 2;
    }
}

@media (max-width: 720px) {
    .contact-container {
        width: calc(100% - 30px);
    }

    .contact-page-head {
        padding: 54px 0 34px;
    }

    .contact-page-head h1 {
        font-size: 46px;
    }

    .contact-page-head p {
        font-size: 16px;
    }

    .contact-grid {
        gap: 24px;
        padding-bottom: 60px;
    }

    .contact-form-card,
    .contact-details-card {
        padding: 30px 22px;
    }

    .contact-form-grid,
    .contact-locations,
    .engagement-grid {
        grid-template-columns: 1fr;
    }

    .contact-field--full,
    .contact-privacy-note,
    .contact-submit-row {
        grid-column: auto;
    }

    .contact-submit {
        width: 100%;
    }

    .engagement-section {
        padding: 54px 0 70px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
