/* =========================================================
   AdamSooley.ca
   Contact Page
   assets/css/contact.css
   ========================================================= */


/* =========================================================
   CONTACT SECTION
   ========================================================= */

.as-contact-section {
    padding: 56px 24px 80px;
}

.as-contact-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}


/* =========================================================
   HEADING
   ========================================================= */

.as-contact-container > h2 {
    margin: 0 0 22px;

    font-family: var(--gh-font-heading, inherit);
    font-size: 2.4rem;
    line-height: 1.2;

    color: inherit;
}


/* =========================================================
   FORM
   ========================================================= */

.as-contact .as-contact-form {
    display: flex;
    flex-direction: column;

    gap: 16px;

    width: 100%;
    box-sizing: border-box;

    padding: 22px 24px;

    background-color: #f4f5f6;

    border: 1px solid #d7d9dc;
    border-radius: 10px;
}


/* =========================================================
   NAME + EMAIL ROW
   ========================================================= */

.as-contact-row {
    display: grid;

    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    gap: 16px;
}


/* =========================================================
   FIELDS
   ========================================================= */

.as-contact-field {
    display: flex;
    flex-direction: column;

    min-width: 0;

    gap: 5px;
}

.as-contact .as-contact-field label {
    font-family: var(--gh-font-body, inherit);

    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;

    color: #202124;
}

.as-contact .as-contact-field input,
.as-contact .as-contact-field textarea {
    display: block;

    width: 100%;
    box-sizing: border-box;

    font-family: var(--gh-font-body, inherit);
    font-size: 1.4rem;
    line-height: 1.5;

    color: #202124;

    background-color: #ffffff;

    border: 1px solid #b9bdc3;
    border-radius: 6px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.as-contact .as-contact-field input {
    height: 40px;

    padding: 8px 11px;
}

.as-contact .as-contact-field textarea {
    min-height: 105px;

    padding: 9px 11px;

    resize: vertical;
}


/* =========================================================
   HOVER
   ========================================================= */

.as-contact .as-contact-field input:hover,
.as-contact .as-contact-field textarea:hover {
    border-color: #777d85;
}


/* =========================================================
   FOCUS
   ========================================================= */

.as-contact .as-contact-field input:focus,
.as-contact .as-contact-field textarea:focus {
    outline: none;

    color: #202124;

    background-color: #ffffff;

    border-color: #1473e6;

    box-shadow: 0 0 0 3px rgba(20, 115, 230, 0.15);
}


/* =========================================================
   BUTTON
   ========================================================= */

.as-contact-actions {
    display: flex;

    justify-content: flex-start;

    margin-top: 2px;
}

.as-contact-submit {
    cursor: pointer;

    font: inherit;
}


/* =========================================================
   STATUS MESSAGE
   ========================================================= */

.as-contact-status {
    display: none;

    padding: 10px 12px;

    font-size: 1.35rem;
    line-height: 1.5;

    border-radius: 6px;
}

.as-contact-status.is-visible {
    display: block;
}

.as-contact-status.is-success {
    color: #145523;

    background-color: #e8f5eb;

    border: 1px solid #9dc9a6;
}

.as-contact-status.is-error {
    color: #8b1e28;

    background-color: #fcebec;

    border: 1px solid #e3a5aa;
}


/* =========================================================
   HONEYPOT
   ========================================================= */

.as-contact-honeypot {
    position: absolute !important;

    left: -10000px !important;
    top: auto !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;
}


/* =========================================================
   DARK MODE
   Bold theme uses: <html theme-mode="dark">
   ========================================================= */

html[theme-mode="dark"] .as-contact .as-contact-form {
    background-color: #1b232e !important;

    border-color: rgba(255, 255, 255, 0.14) !important;
}

html[theme-mode="dark"] .as-contact .as-contact-field label {
    color: #f5f7fa !important;
}

html[theme-mode="dark"] .as-contact .as-contact-field input,
html[theme-mode="dark"] .as-contact .as-contact-field textarea {
    color: #f5f7fa !important;

    background-color: #10151c !important;

    border-color: rgba(255, 255, 255, 0.20) !important;
}

html[theme-mode="dark"] .as-contact .as-contact-field input:hover,
html[theme-mode="dark"] .as-contact .as-contact-field textarea:hover {
    border-color: rgba(255, 255, 255, 0.35) !important;
}

html[theme-mode="dark"] .as-contact .as-contact-field input:focus,
html[theme-mode="dark"] .as-contact .as-contact-field textarea:focus {
    color: #f5f7fa !important;

    background-color: #10151c !important;

    border-color: #65afff !important;

    box-shadow: 0 0 0 3px rgba(101, 175, 255, 0.18) !important;
}

html[theme-mode="dark"] .as-contact .as-contact-field input::placeholder,
html[theme-mode="dark"] .as-contact .as-contact-field textarea::placeholder {
    color: #8f9baa !important;
}


/* =========================================================
   DARK MODE STATUS MESSAGES
   ========================================================= */

html[theme-mode="dark"] .as-contact .as-contact-status.is-success {
    color: #b9e8c3 !important;

    background-color: #17351f !important;

    border-color: #326b40 !important;
}

html[theme-mode="dark"] .as-contact .as-contact-status.is-error {
    color: #ffc2c7 !important;

    background-color: #3b1c20 !important;

    border-color: #82434a !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .as-contact-section {
        padding-top: 46px;
    }

    .as-contact-container {
        max-width: 620px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .as-contact-section {
        padding: 38px 16px 60px;
    }

    .as-contact-container {
        width: 100%;
        max-width: 500px;
    }

    .as-contact-row {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .as-contact .as-contact-form {
        gap: 14px;

        padding: 18px 16px;
    }

    .as-contact-container > h2 {
        font-size: 2.1rem;

        margin-bottom: 18px;
    }

    .as-contact .as-contact-field input {
        height: 42px;
    }

    .as-contact .as-contact-field textarea {
        min-height: 110px;
    }

    .as-contact-actions {
        width: 100%;
    }

    .as-contact-submit {
        width: 100%;

        text-align: center;
    }

}