﻿/* =========================================================
   CONTACT PAGE
   ========================================================= */

.contact-page {
    width: 100%;
    max-width: 100%;
    font-family: SegoeUIVar, "Segoe UI", system-ui, sans-serif;
    color: var(--ui-color-black);
    overflow-x: hidden;
}


/* =========================================================
   HERO
   ========================================================= */

.contact-hero {
    position: relative;
    width: 100%;
    height: clamp(140px, 15vw, 200px);
    overflow: hidden;
}

    .contact-hero img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


/* =========================================================
   HERO TITLE
   ========================================================= */

.contact-hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    margin: 0;
    color: var(--ui-color-white);
    font-family: SegoeUIVar, Georgia, serif;
    font-size: clamp(28px, 2.5vw, 42px);
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}


/* =========================================================
   CONTACT SECTION
   ========================================================= */

.contact-section {
    min-height: 500px;
    padding: clamp(40px, 4vw, 60px) 0 clamp(80px, 10vw, 140px);
}


/* =========================================================
   DETAILS
   ========================================================= */

.contact-details {
    margin-top: 18px;
    font-family: SegoeUIVar, "Segoe UI", system-ui, sans-serif;
    font-size: clamp(13px, 1vw, 15px);
    line-height: 1.35;
}


/* =========================================================
   COMPANY
   ========================================================= */

.contact-company {
    font-weight: 700;
}


/* =========================================================
   ADDRESS
   ========================================================= */

.contact-address {
    margin-top: 18px;
    max-width: 800px;
}


/* =========================================================
   FORM
   ========================================================= */

.contact-form {
    width: min(100%, 500px);
    margin-top: 35px;
}


/* =========================================================
   FIELD
   ========================================================= */

.contact-field {
    margin-bottom: 15px;
}

    .contact-field label {
        display: block;
        margin-bottom: 5px;
        color: var(--ui-color-black);
        font-family: SegoeUIVar, "Segoe UI", system-ui, sans-serif;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.2;
    }


    /* =========================================================
   INPUTS
   ========================================================= */

    .contact-field input,
    .contact-field textarea {
        display: block;
        width: 100%;
        box-sizing: border-box;
        border: 1px solid #d9d9d9;
        border-radius: 0;
        background: #fff;
        color: #222;
        font-family: SegoeUIVar, "Segoe UI", system-ui, sans-serif;
        font-size: 13px;
        line-height: 1.35;
        outline: none;
        transition: border-color 150ms ease, box-shadow 150ms ease;
    }


    .contact-field input {
        height: 34px;
        padding: 7px 9px;
    }


    .contact-field textarea {
        min-height: 105px;
        padding: 8px 9px;
        resize: vertical;
    }


        .contact-field input::placeholder,
        .contact-field textarea::placeholder {
            color: #777;
        }


        .contact-field input:focus,
        .contact-field textarea:focus {
            border-color: #999;
            box-shadow: none;
        }


    /* =========================================================
   VALIDATION ERROR STATE
   ========================================================= */

    .contact-field.has-error input,
    .contact-field.has-error textarea {
        border-color: #efb5b5;
    }


.contact-error {
    display: none;
    margin-top: 4px;
    color: #e53935;
    font-family: SegoeUIVar, "Segoe UI", system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.2;
}


.contact-field.has-error .contact-error {
    display: block;
}


/* =========================================================
   GENERAL FORM MESSAGE
   ========================================================= */

.contact-form-message {
    display: none;
    margin-bottom: 12px;
    color: #e53935;
    font-size: 13px;
    line-height: 1.35;
}


/* =========================================================
   SUBMIT
   ========================================================= */

.contact-page .contact-submit {
    display: block;
    width: 100%;
    height: 32px;
    border: 0;
    border-radius: 2px;
    background-color: var(--ui-color-gold);
    color: #fff;
    font-family: SegoeUIVar, "Segoe UI", system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}


.contact-submit:hover {
    background-color: var(--ui-color-white);
    color: var(--ui-color-gold);
    border: solid 1px var(--ui-color-gray)
}


    .contact-submit:disabled {
        cursor: default;
        opacity: 0.65;
    }


/* =========================================================
   HONEYPOT
   ========================================================= */

.contact-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}


/* =========================================================
   SUCCESS
   ========================================================= */

.contact-form.is-success .contact-form-message {
    display: block;
    color: #2e7d32;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 768px) and (max-width: 1100px) {

    .contact-section {
        padding: 40px 0 100px;
    }

    .contact-form {
        width: min(100%, 500px);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .contact-hero {
        height: 180px;
    }

    .contact-hero-title {
        font-size: 28px;
    }

    .contact-section {
        min-height: 450px;
        padding: 30px 0 70px;
    }

    .contact-details {
        margin-top: 18px;
        font-size: 12px;
        line-height: 1.45;
    }

    .contact-address {
        margin-top: 16px;
    }

    .contact-form {
        width: 100%;
        margin-top: 30px;
    }

    .contact-field label {
        font-size: 11px;
    }

    .contact-field input,
    .contact-field textarea {
        font-size: 12px;
    }

    .contact-field input {
        height: 36px;
    }

    .contact-field textarea {
        min-height: 110px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .contact-hero-title {
        font-size: 24px;
    }

    .contact-section {
        padding-bottom: 60px;
    }

    .contact-details {
        font-size: 11px;
    }

    .contact-form {
        margin-top: 25px;
    }
}


/* =========================================================
   SUCCESS
   ========================================================= */

.contact-success {
    display: none;
    padding: 15px 0;
    color: var(--ui-color-black);
    font-family: SegoeUIVar, "Segoe UI", system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

.contact-form.is-success #contactFormFields {
    display: none;
}

.contact-form.is-success .contact-success {
    display: block;
}