/* ========================================
   CONTACT PAGE
======================================== */

.contact-container {
    width: calc(100% - 160px);
    max-width: 1240px;
    margin: 0 auto;
}


/* ========================================
   CONTACT HERO
======================================== */

.contact-hero {
    position: relative;

    padding: 150px 0 0;

    background: #ffffff;
}


.contact-heading {
    margin-bottom: 42px;
}


.contact-eyebrow {
    width: fit-content;

    display: inline-flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 22px;

    color: #00686d;

    font-family: "Graphik Trial", Arial, sans-serif;

    font-size: 12px;
    font-weight: 600;

    line-height: 1;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}


.contact-eyebrow::before {
    content: "";

    width: 30px;
    height: 1px;

    background: #006064;
}


.contact-heading h1 {
    max-width: 950px;

    margin: 0;

    color: #0A1022;

    font-family: "Graphik Trial", Arial, sans-serif;

    font-size: clamp(44px, 4.8vw, 50px);

    font-weight: 300;

    line-height: 1.03;

    letter-spacing: -1.08px;
}


/* ========================================
   HERO IMAGE
======================================== */

.contact-hero-image-wrap {
    position: relative;

    width: 100%;

    height: clamp(360px, 38vw, 510px);

    overflow: hidden;

    background: #dce4e3;

    border-radius: 10px;
}


.contact-hero-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    transition:
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.4s ease;
}


.contact-hero-image-wrap:hover .contact-hero-image {
    transform: scale(1.045);

    filter:
        brightness(0.97) contrast(1.02);
}


.contact-image-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(180deg,
            rgba(0, 35, 38, 0.01),
            rgba(0, 35, 38, 0.08));

    pointer-events: none;
}


/* ========================================
   CONTACT MAIN
======================================== */

.contact-main {
    position: relative;

    padding: 70px 0 78px;

    background: #ffffff;
}


.contact-layout {
    display: grid;

    grid-template-columns:
        minmax(280px, 0.72fr) minmax(0, 1.28fr);

    gap: clamp(70px, 9vw, 150px);

    align-items: start;
}


/* ========================================
   CONTACT INFORMATION
======================================== */

.contact-information {
    width: 100%;

    align-self: start;
}


.contact-description {
    max-width: 390px;

    margin: 0 0 36px;

    color: #4B5563;

    font-family: "Graphik Trial", Arial, sans-serif;

    font-size: 14px;
    font-weight: 400;

    line-height: 1.75;
}


.contact-detail-list {
    display: flex;

    flex-direction: column;

    gap: 27px;
}


.contact-detail-item {
    display: grid;

    gap: 9px;
}


.contact-detail-label {
    color: #748085;

    font-family: "Graphik Trial", Arial, sans-serif;

    font-size: 11px;
    font-weight: 500;

    line-height: 1.3;
}


.contact-detail-item a,
.contact-detail-item p {
    width: fit-content;

    margin: 0;

    color: #10232b;

    font-family: "Graphik Trial", Arial, sans-serif;

    font-size: 18px;
    font-weight: 400;

    line-height: 1.4;

    text-decoration: none;

    transition: color 0.3s ease;
}


.contact-detail-item a:hover {
    color: #006064;
}


/* ========================================
   CONTACT FORM
======================================== */

.contact-form-wrap {
    width: 100%;

    min-width: 0;
}


.contact-form {
    width: 100%;

    display: grid;

    gap: 29px;
}


.contact-form-row {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 28px;
}


/* ========================================
   FORM FIELDS
======================================== */

.contact-field {
    position: relative;

    display: flex;

    flex-direction: column;
}


.contact-field label,
.contact-upload>label {
    margin-bottom: 9px;

    color: #68777c;

    font-family: "Graphik Trial", Arial, sans-serif;

    font-size: 12px;
    font-weight: 400;

    line-height: 1.3;
}


.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 4px 0 12px;

    color: #10232b;

    background: transparent;

    border: 0;

    border-bottom: 1px solid #758286;

    border-radius: 0;

    outline: none;

    font-family: "Graphik Trial", Arial, sans-serif;

    font-size: 15px;
    font-weight: 400;

    line-height: 1.45;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.contact-field textarea {
    min-height: 92px;

    resize: vertical;
}


.contact-field select {
    appearance: none;

    cursor: pointer;
}


.contact-select-field {
    position: relative;
}


.contact-select-field::after {
    content: "";

    position: absolute;

    right: 4px;

    bottom: 18px;

    width: 7px;
    height: 7px;

    border-right: 1px solid #526267;
    border-bottom: 1px solid #526267;

    transform: rotate(45deg);

    pointer-events: none;
}


.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: #006064;

    box-shadow:
        0 1px 0 #006064;
}


.contact-field.has-error input,
.contact-field.has-error select,
.contact-field.has-error textarea {
    border-color: #b94747;
}


/* ========================================
   FIELD ERRORS
======================================== */

.field-error,
.consent-error {
    display: none;

    margin-top: 7px;

    color: #b94747;

    font-family: "Graphik Trial", Arial, sans-serif;

    font-size: 11px;

    line-height: 1.4;
}


.contact-field.has-error .field-error,
.consent-error.is-visible {
    display: block;
}


/* ========================================
   CONSENT
======================================== */

.contact-consent {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-top: 3px;
}


.contact-consent input {
    width: 18px;
    height: 18px;

    flex: 0 0 auto;

    margin: 0;

    accent-color: #006064;

    cursor: pointer;
}


.contact-consent label {
    color: #4d5c61;

    font-family: "Graphik Trial", Arial, sans-serif;

    font-size: 13px;
    font-weight: 400;

    line-height: 1.55;
}


.contact-consent a {
    color: #102a2f;

    text-decoration: underline;

    text-underline-offset: 2px;
}


/* ========================================
   SUBMIT BUTTON
======================================== */

.contact-submit {
    width: fit-content;

    min-width: 122px;

    padding: 13px 22px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 13px;

    color: #ffffff;

    background: #005a5d;

    border: 1px solid #005a5d;

    border-radius: 100px;

    font-family: "Graphik Trial", Arial, sans-serif;

    font-size: 12px;

    font-weight: 500;

    cursor: pointer;

    transition:
        color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.contact-submit:hover {
    color: #002f32;

    background: #caff00;

    border-color: #caff00;

    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(0, 72, 75, 0.17);
}


.contact-submit span:last-child {
    font-size: 14px;

    transition: transform 0.3s ease;
}


.contact-submit:hover span:last-child {
    transform: translate(3px, -3px);
}


.contact-submit:disabled {
    opacity: 0.6;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* ========================================
   FORM MESSAGE
======================================== */

.contact-form-message {
    min-height: 20px;

    color: #006064;

    font-family: "Graphik Trial", Arial, sans-serif;

    font-size: 13px;

    line-height: 1.5;
}


.contact-form-message.is-error {
    color: #b94747;
}


/* ========================================
   NO DELAYED PAGE LOADING
======================================== */

.contact-heading,
.contact-hero-image-wrap,
.contact-information,
.contact-form-wrap,
.contact-main {
    opacity: 1;

    transform: none;

    visibility: visible;
}


/* ========================================
   LAPTOP
======================================== */

@media (max-width: 1200px) {

    .contact-container {
        width: calc(100% - 96px);
    }

    .contact-layout {
        gap: 80px;
    }

}


/* ========================================
   TABLET
======================================== */

@media (max-width: 991px) {

    .contact-container {
        width: calc(100% - 64px);
    }

    .contact-hero {
        padding-top: 128px;
    }

    .contact-layout {
        grid-template-columns:
            minmax(240px, 0.75fr) minmax(0, 1.25fr);

        gap: 55px;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {

    .contact-container {
        width: calc(100% - 36px);
    }


    .contact-hero {
        padding-top: 110px;
    }


    .contact-heading {
        margin-bottom: 30px;
    }


    .contact-eyebrow {
        margin-bottom: 17px;

        font-size: 11px;
    }


    .contact-heading h1 {
        font-size: 36px;

        line-height: 1.06;

        letter-spacing: -1.6px;
    }


    .contact-heading h1 br {
        display: none;
    }


    .contact-hero-image-wrap {
        height: 330px;
    }


    .contact-main {
        padding: 54px 0 78px;
    }


    .contact-layout {
        grid-template-columns: 1fr;

        gap: 58px;
    }


    .contact-information {
        position: static;

        width: 100%;
    }


    .contact-description {
        font-size: 18px;

        line-height: 1.68;
    }


    .contact-detail-list {
        gap: 25px;
    }


    .contact-detail-item a,
    .contact-detail-item p {
        font-size: 18px;
    }


    .contact-form-row {
        grid-template-columns: 1fr;

        gap: 29px;
    }


    .contact-field label,
    .contact-upload>label {
        font-size: 15px;
    }


    .contact-field input,
    .contact-field select,
    .contact-field textarea {
        font-size: 16px;
    }


    .contact-upload-box {
        width: 100%;
    }


    .contact-file-name {
        max-width: calc(100% - 120px);
    }


    .contact-submit {
        min-width: 132px;

        padding: 14px 24px;
    }

}


/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 430px) {

    .contact-heading h1 {
        font-size: 32px;
    }


    .contact-hero-image-wrap {
        height: 285px;
    }


    .contact-upload-box {
        gap: 10px;
    }


    .upload-btn {
        padding: 8px 13px;
    }


    .contact-file-name {
        font-size: 11px;
    }

}