/* =========================================================
   ZENITH KARATE ACADEMY
   CONTACT PAGE
========================================================= */


/* =========================================================
   CONTACT SECTION
========================================================= */

.contact-section {

    width: min(
        1200px,
        calc(100% - 40px)
    );

    margin: 100px auto 120px;
 
}


.contact-section-heading {

    max-width: 760px;

    margin-bottom: 55px;

}


.contact-section-heading h2 {

    margin: 12px 0 18px;

    font-family:
        "Bebas Neue",
        "Trebuchet MS",
        sans-serif;

    font-size: clamp(
        3rem,
        7vw,
        5.5rem
    );

    line-height: 0.95;

    letter-spacing: 1px;

}


.contact-section-heading p {

    max-width: 650px;

    margin: 0;

    color: rgba(
        255,
        255,
        255,
        0.68
    );

    font-size: 1rem;

    line-height: 1.8;

}


.contact-section-label {

    display: inline-block;

    font-size: 0.72rem;

    font-weight: 700;

    letter-spacing: 2px;

    color: rgba(
        255,
        255,
        255,
        0.55
    );

}


/* =========================================================
   CONTACT LAYOUT
========================================================= */

.contact-layout {

    display: grid;

    grid-template-columns:
        minmax(260px, 0.8fr)
        minmax(0, 1.2fr);

    gap: 70px;

    align-items: start;

}


/* =========================================================
   CONTACT DETAILS
========================================================= */

.contact-details {

    display: flex;

    flex-direction: column;

    gap: 0;

}


.contact-detail {

    padding: 28px 0;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );

}


.contact-detail:last-child {

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );

}


.contact-detail-label {

    display: block;

    margin-bottom: 10px;

    font-size: 0.72rem;

    font-weight: 700;

    letter-spacing: 2px;

    color: rgba(
        255,
        255,
        255,
        0.45
    );

}


.contact-detail h3 {

    margin: 0 0 8px;

    font-family:
        "Bebas Neue",
        "Trebuchet MS",
        sans-serif;

    font-size: 1.8rem;

    letter-spacing: 0.8px;

}


.contact-detail p {

    margin: 0;

    color: rgba(
        255,
        255,
        255,
        0.62
    );

    font-size: 0.95rem;

    line-height: 1.7;

}


/* =========================================================
   FORM WRAPPER
========================================================= */

.contact-form-wrapper {

    padding: 34px;

    background:
        rgba(
            255,
            255,
            255,
            0.025
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.10
        );

    border-radius: 4px;

    box-sizing: border-box;

}


/* =========================================================
   FORM
========================================================= */

.contact-form {

    display: flex;

    flex-direction: column;

    gap: 22px;

}


.contact-form-row {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;

}


.contact-field {

    display: flex;

    flex-direction: column;

    gap: 9px;

}


.contact-field label {

    font-size: 0.72rem;

    font-weight: 700;

    letter-spacing: 1.8px;

    color: rgba(
        255,
        255,
        255,
        0.55
    );

}


.contact-field input,
.contact-field textarea {

    width: 100%;

    box-sizing: border-box;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.14
        );

    border-radius: 2px;

    background:
        rgba(
            0,
            0,
            0,
            0.35
        );

    color: #ffffff;

    font-family:
        "Trebuchet MS",
        "Lucida Sans Unicode",
        sans-serif;

    font-size: 0.95rem;

    padding: 14px 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;

}


.contact-field textarea {

    min-height: 170px;

    resize: vertical;

    line-height: 1.6;

}


.contact-field input::placeholder,
.contact-field textarea::placeholder {

    color: rgba(
        255,
        255,
        255,
        0.28
    );

}


.contact-field input:focus,
.contact-field textarea:focus {

    border-color:
        rgba(
            255,
            85,
            55,
            0.8
        );

    background:
        rgba(
            255,
            255,
            255,
            0.035
        );

    box-shadow:
        0 0 0 3px
        rgba(
            255,
            70,
            50,
            0.08
        );

}


/* =========================================================
   INVALID FIELD
========================================================= */

.contact-field input.contact-invalid,
.contact-field textarea.contact-invalid {

    border-color:
        rgba(
            255,
            70,
            70,
            0.85
        );

}


/* =========================================================
   STATUS
========================================================= */

.contact-status {

    min-height: 22px;

    font-size: 0.88rem;

    line-height: 1.5;

}


.contact-status:empty {

    min-height: 0;

}


.contact-status.success {

    color:
        #8ee6a5;

}


.contact-status.error {

    color:
        #ff8c8c;

}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.contact-submit {

    position: relative;

    width: 100%;

    min-height: 52px;

    border: none;

    border-radius: 2px;

    cursor: pointer;

    background:
        linear-gradient(
            90deg,
            #d9362b,
            #f29b2e
        );

    color: #ffffff;

    font-family:
        "Trebuchet MS",
        "Lucida Sans Unicode",
        sans-serif;

    font-size: 0.8rem;

    font-weight: 700;

    letter-spacing: 2px;

    transition:
        transform 0.2s ease,
        filter 0.2s ease,
        opacity 0.2s ease;

}


.contact-submit:hover {

    transform:
        translateY(-2px);

    filter:
        brightness(1.08);

}


.contact-submit:active {

    transform:
        translateY(0);

}


.contact-submit:disabled {

    cursor: not-allowed;

    opacity: 0.65;

    transform: none;

}


.contact-submit-loading {

    display: none;

}


.contact-submit.is-loading
.contact-submit-text {

    display: none;

}


.contact-submit.is-loading
.contact-submit-loading {

    display: inline;

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .contact-layout {

        grid-template-columns: 1fr;

        gap: 50px;

    }

}


@media (max-width: 650px) {

    .contact-section {

        width:
            calc(100% - 28px);

        margin:
            75px auto 90px;

    }


    .contact-section-heading {

        margin-bottom: 38px;

    }


    .contact-section-heading h2 {

        font-size:
            clamp(
                2.7rem,
                14vw,
                4rem
            );

    }


    .contact-form-wrapper {

        padding: 22px;

    }


    .contact-form-row {

        grid-template-columns: 1fr;

        gap: 22px;

    }


    .contact-detail {

        padding: 23px 0;

    }

}


@media (max-width: 420px) {

    .contact-section {

        width:
            calc(100% - 22px);

    }


    .contact-form-wrapper {

        padding: 18px;

    }


    .contact-field input,
    .contact-field textarea {

        padding:
            13px 12px;

    }

}