/* ==========================================================
   CONTACT PAGE
========================================================== */

.contact-page {
    background: var(--background);
}


/* ==========================================================
   HEADER
========================================================== */

.page-header {
    padding: 55px 30px 42px;
}

.page-header .container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-eyebrow {
    display: block;

    margin-bottom: 12px;

    color: var(--primary);

    font-size: .75rem;
    font-weight: 700;

    letter-spacing: 1.8px;
}

.page-header h1 {
    margin: 0 0 14px;

    font-size: 3.6rem;

    line-height: 1.1;
}

.page-header p {
    max-width: 680px;

    margin: 0;

    color: var(--text-light);

    font-size: 1rem;

    line-height: 1.7;
}


/* ==========================================================
   CONTACT INFORMATION
========================================================== */

.contact-info-section {
    padding: 0 30px 55px;
}

.contact-info-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr
        1.2fr
        1fr;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.contact-info-item {
    min-height: 120px;

    padding: 24px 28px;

    border-right: 1px solid var(--border);

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-item:first-child {
    padding-left: 0;
}

.contact-info-item:last-child {
    border-right: none;
}

.contact-info-item span {
    display: block;

    margin-bottom: 9px;

    color: var(--primary);

    font-size: .7rem;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.contact-info-item p,
.contact-info-item a {
    margin: 0;

    color: var(--text);

    font-size: .95rem;

    line-height: 1.5;

    text-decoration: none;
}

.contact-info-item a:hover {
    color: var(--primary);
}


/* ==========================================================
   SOCIAL
========================================================== */

.social-links {
    display: flex;

    align-items: flex-start;

    gap: 8px;

    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;

    padding: 6px 13px;

    border: 1px solid var(--border);

    border-radius: 30px;

    background: #fff;

    font-size: .8rem;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.social-links a:hover {
    background: var(--primary);

    color: #fff;

    transform: translateY(-1px);
}


/* ==========================================================
   LOCATIONS
========================================================== */

.locations-section {
    padding: 10px 30px 90px;
}

.locations-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.locations-heading {
    margin-bottom: 28px;
}

.locations-heading > span {
    display: block;

    margin-bottom: 10px;

    color: var(--primary);

    font-size: .72rem;
    font-weight: 700;

    letter-spacing: 1.7px;
}

.locations-heading h2 {
    max-width: 760px;

    margin: 0;

    font-size: 2.5rem;

    line-height: 1.15;
}


/* ==========================================================
   LOCATION GRID
========================================================== */

.locations-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.location-card {
    overflow: hidden;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 18px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .035);
}


/* ==========================================================
   LOCATION DETAILS
========================================================== */

.location-details {
    padding: 25px 26px 23px;
}

.location-name {
    display: block;

    margin-bottom: 7px;

    color: var(--primary);

    font-size: .7rem;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.location-details h3 {
    margin: 0 0 6px;

    font-size: 1.65rem;

    line-height: 1.2;
}

.location-details p {
    margin: 0 0 17px;

    color: var(--text-light);

    font-size: .9rem;

    line-height: 1.5;
}


/* ==========================================================
   MAP LINK
========================================================== */

.location-map-link {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 9px 15px;

    border-radius: 30px;

    background: var(--primary);

    color: #fff;

    font-size: .8rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        transform .2s ease,
        opacity .2s ease;
}

.location-map-link:hover {
    color: #fff;

    opacity: .9;

    transform: translateY(-2px);
}

.location-map-link span {
    font-size: .95rem;
}


/* ==========================================================
   MAP
========================================================== */

.location-map {
    width: 100%;

    height: 270px;

    border-top: 1px solid var(--border);

    background: #eee;
}

.location-map iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 900px) {

    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info-item:nth-child(2) {
        border-right: none;
    }

    .contact-info-item:nth-child(3),
    .contact-info-item:nth-child(4) {
        border-top: 1px solid var(--border);
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

    .page-header {
        padding: 45px 20px 35px;
    }

    .page-header h1 {
        font-size: 2.7rem;
    }

    .contact-info-section {
        padding: 0 20px 45px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-item,
    .contact-info-item:first-child {
        min-height: auto;

        padding: 18px 0;

        border-right: none;

        border-bottom: 1px solid var(--border);
    }

    .contact-info-item:last-child {
        border-bottom: none;
    }

    .locations-section {
        padding: 5px 20px 65px;
    }

    .locations-heading {
        margin-bottom: 22px;
    }

    .locations-heading h2 {
        font-size: 2.1rem;
    }

    .location-details {
        padding: 22px;
    }

    .location-map {
        height: 250px;
    }

}

/* ==========================================================
   CONTACT FORM
========================================================== */

.contact-form-section {
    padding: 20px 30px 90px;
}

.contact-form-section .container {
    max-width: 1000px;
    margin: 0 auto;
}


/* ==========================================================
   FORM WRAPPER
========================================================== */

.contact-form-wrapper {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 70px;

    padding: 48px;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 20px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, .04);
}


/* ==========================================================
   FORM HEADING
========================================================== */

.contact-form-heading {
    align-self: start;

    padding-top: 5px;
}

.contact-form-heading > span {
    display: block;

    margin-bottom: 12px;

    color: var(--primary);

    font-size: .72rem;
    font-weight: 700;

    letter-spacing: 1.7px;
}

.contact-form-heading h2 {
    margin: 0 0 14px;

    font-size: 2.3rem;

    line-height: 1.15;
}

.contact-form-heading p {
    max-width: 360px;

    margin: 0;

    color: var(--text-light);

    font-size: .95rem;

    line-height: 1.7;
}


/* ==========================================================
   FORM
========================================================== */

.contact-form {
    width: 100%;
}

.contact-form .form-group {
    margin-bottom: 22px;
}

.contact-form label {
    display: block;

    margin-bottom: 8px;

    color: var(--text);

    font-size: .78rem;
    font-weight: 700;

    letter-spacing: .3px;
}


/* ==========================================================
   INPUTS
========================================================== */

.contact-form input[type="email"],
.contact-form textarea {
    display: block;

    width: 100%;

    box-sizing: border-box;

    padding: 14px 16px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: #fafafa;

    color: var(--text);

    font-family: inherit;

    font-size: .95rem;

    outline: none;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}


.contact-form input[type="email"] {
    height: 50px;
}


.contact-form textarea {
    min-height: 170px;

    resize: vertical;

    line-height: 1.6;
}


/* ==========================================================
   INPUT FOCUS
========================================================== */

.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    background: #fff;

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(0, 0, 0, .045);
}


/* ==========================================================
   PLACEHOLDER
========================================================== */

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #a4a4a4;
}


/* ==========================================================
   SUBMIT BUTTON
========================================================== */

.contact-submit {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 12px 24px;

    border: none;

    border-radius: 30px;

    background: var(--primary);

    color: #fff;

    font-family: inherit;

    font-size: .85rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform .2s ease,
        opacity .2s ease,
        box-shadow .2s ease;
}

.contact-submit:hover {
    color: #fff;

    opacity: .92;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, .10);
}

.contact-submit:active {
    transform: translateY(0);
}


/* ==========================================================
   HONEYPOT
========================================================== */

.contact-honeypot {
    position: absolute !important;

    left: -9999px !important;

    top: auto !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;

    opacity: 0 !important;

    pointer-events: none !important;
}

.contact-honeypot input {
    width: 1px !important;
    height: 1px !important;
}


/* ==========================================================
   SUCCESS / ERROR ALERTS
========================================================== */

.contact-alert {
    width: 100%;

    padding: 17px 0;

    border-bottom: 1px solid var(--border);
}

.contact-alert .container {
    max-width: 1000px;

    margin: 0 auto;
}

.contact-alert p {
    margin: 0;

    font-size: .92rem;

    line-height: 1.6;
}


/* SUCCESS */

.contact-alert-success {
    background: #edf7f1;

    color: #245c3a;

    border-bottom-color: #b9dfc8;
}


/* ERROR */

.contact-alert-error {
    background: #fff1f1;

    color: #7a2929;

    border-bottom-color: #e5bcbc;
}


/* ==========================================================
   RESPONSIVE — TABLET
========================================================== */

@media (max-width: 900px) {

    .contact-form-wrapper {
        grid-template-columns: 1fr;

        gap: 35px;

        padding: 38px;
    }

    .contact-form-heading p {
        max-width: 600px;
    }

}


/* ==========================================================
   RESPONSIVE — MOBILE
========================================================== */

@media (max-width: 700px) {

    .contact-form-section {
        padding: 10px 20px 65px;
    }

    .contact-form-wrapper {
        gap: 30px;

        padding: 28px 22px;

        border-radius: 16px;
    }

    .contact-form-heading h2 {
        font-size: 2rem;
    }

    .contact-form-heading p {
        font-size: .9rem;
    }

    .contact-form input[type="email"] {
        height: 48px;
    }

    .contact-form textarea {
        min-height: 150px;
    }

    .contact-submit {
        width: 100%;
    }

    .contact-alert {
        padding: 15px 20px;
    }

}