/* =========================================================
   M+ LABS — CONTACT PAGE
   ========================================================= */

.contact-page {
    background: var(--paper);
    color: var(--ink);
}


/* =========================================================
   CONTACT HERO
   ========================================================= */

.contact-hero {
    padding: 150px clamp(24px, 7vw, 120px) 120px;
}

.contact-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.contact-eyebrow,
.contact-form-label,
.contact-direct-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;

    color: var(--soft-ink);

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-eyebrow span,
.contact-form-label span,
.contact-direct-eyebrow span {
    display: block;

    width: 27px;
    height: 1px;

    background: currentColor;
}


.contact-hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(280px, 0.6fr);

    gap: 80px;

    align-items: end;

    margin-top: 60px;
}


.contact-heading h1 {
    max-width: 950px;

    margin: 0;

    font-size: clamp(60px, 8vw, 125px);

    font-weight: 400;

    line-height: 0.92;

    letter-spacing: -0.065em;
}


.contact-heading h1 em {
    display: block;

    font-family: Georgia, serif;

    font-style: italic;

    font-weight: 400;
}


.contact-intro {
    max-width: 390px;

    padding-bottom: 8px;
}


.contact-intro p {
    margin: 0 0 22px;

    color: var(--soft-ink);

    font-size: 17px;

    line-height: 1.7;
}


/* =========================================================
   FORM SECTION
   ========================================================= */

.contact-form-section {
    padding:
        110px
        clamp(24px, 7vw, 120px)
        130px;

    border-top: 1px solid var(--line);
}


.contact-form-inner {
    display: grid;

    grid-template-columns:
        240px
        minmax(0, 1fr);

    gap: 70px;

    max-width: 1400px;

    margin: 0 auto;
}


.contact-form {
    max-width: 950px;
}

.contact-form-error,
.project-quote-notice {
    margin: 0 0 30px;
    padding: 16px 18px;
    border: 1px solid rgba(23, 25, 22, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.42);
}

.hosting-pricing-notice {
    display: grid;
    gap: 7px;
    margin: 0 0 30px;
    padding: 17px 19px;
    border: 1px solid rgba(117, 128, 72, 0.28);
    border-radius: 12px;
    background: #e8ebd6;
}

.hosting-pricing-notice strong {
    font-size: 13px;
}

.hosting-pricing-notice > span {
    color: var(--soft-ink);
    font-size: 12px;
    line-height: 1.65;
}

.hosting-pricing-notice a {
    width: fit-content;
    margin-top: 3px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    text-underline-offset: 4px;
}

.project-quote-notice {
    display: grid;
    gap: 5px;
    border-color: rgba(117, 128, 72, 0.28);
    background: #e8ebd6;
}

.project-quote-notice strong {
    font-size: 13px;
}

.project-quote-notice span {
    color: var(--soft-ink);
    font-size: 12px;
    line-height: 1.65;
}

.contact-form-trap {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.hosting-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
    margin: 18px 0 42px;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid rgba(23, 25, 22, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.36);
}

#hosting-details[hidden],
#budget-field[hidden] {
    display: none;
}

.hosting-details-heading {
    grid-column: 1 / -1;
    margin-bottom: 26px;
}

.hosting-details-heading h2 {
    margin: 18px 0 8px;
    font-size: clamp(25px, 4vw, 38px);
    font-weight: 400;
    letter-spacing: -0.05em;
}

.hosting-details-heading p {
    max-width: 640px;
    margin: 0;
    color: var(--soft-ink);
    font-size: 12px;
    line-height: 1.7;
}

.hosting-details .form-field {
    margin-bottom: 24px;
}

.hosting-details .form-field-large {
    grid-column: 1 / -1;
}


.form-field {
    margin-bottom: 45px;
}


.form-field label {
    display: block;

    margin-bottom: 14px;

    color: var(--ink);

    font-size: 14px;

    font-weight: 500;
}


.form-field label span {
    color: #85877f;

    font-size: 12px;

    font-weight: 400;
}


.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 18px 0;

    border: 0;

    border-bottom: 1px solid rgba(23, 25, 22, 0.25);

    border-radius: 0;

    outline: none;

    background: transparent;

    color: var(--ink);

    font-family: inherit;

    font-size: 17px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #85877f;
}


.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-bottom-color: var(--ink);

    box-shadow: 0 1px 0 var(--ink);
}


.form-field select {
    cursor: pointer;
}


.form-field textarea {
    resize: vertical;

    min-height: 180px;

    line-height: 1.6;
}


.form-field-large {
    margin-bottom: 35px;
}


/* =========================================================
   CONSENT
   ========================================================= */

.contact-consent {
    margin-bottom: 45px;
}


.checkbox-label {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    max-width: 650px;

    color: var(--soft-ink);

    font-size: 13px;

    line-height: 1.6;

    cursor: pointer;
}


.checkbox-label input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.checkbox-custom {
    display: block;

    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    margin-top: 1px;

    border: 1px solid rgba(23, 25, 22, 0.3);

    border-radius: 3px;

    background: transparent;
}


.checkbox-label input:checked + .checkbox-custom {
    border-color: var(--accent);

    background: var(--accent);

    box-shadow:
        inset 0 0 0 4px var(--paper);
}


/* =========================================================
   SUBMIT
   ========================================================= */

.contact-submit-row {
    display: flex;

    align-items: center;

    gap: 35px;
}


.contact-submit {
    display: inline-flex;

    align-items: center;

    justify-content: space-between;

    gap: 70px;

    min-width: 280px;

    padding: 18px 22px;

    border: 0;

    border-radius: 10px;

    background: var(--accent);

    color: var(--ink);

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.contact-submit:hover {
    transform: translateY(-2px);
}


.contact-submit-row p {
    margin: 0;

    color: var(--soft-ink);

    font-size: 12px;
}


/* =========================================================
   DIRECT CONTACT
   ========================================================= */

.contact-direct {
    padding:
        120px
        clamp(24px, 7vw, 120px);

    background: var(--dark);

    color: #ffffff;
}


.contact-direct-inner {
    max-width: 1400px;

    margin: 0 auto;
}


.contact-direct-eyebrow {
    color: rgba(255, 255, 255, 0.65);
}


.contact-direct-content {
    margin-top: 65px;
}


.contact-direct-content h2 {
    max-width: 850px;

    margin: 0 0 55px;

    font-size: clamp(52px, 7vw, 100px);

    font-weight: 400;

    line-height: 0.95;

    letter-spacing: -0.06em;
}


.contact-direct-content h2 em {
    color: var(--accent);

    font-family: Georgia, serif;

    font-style: italic;

    font-weight: 400;
}


.contact-email {
    display: inline-flex;

    align-items: center;

    gap: 25px;

    color: #ffffff;

    border-bottom: 1px solid rgba(255, 255, 255, 0.4);

    padding-bottom: 12px;

    font-size: 20px;

    text-decoration: none;

    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}


.contact-email:hover {
    color: var(--accent);

    border-color: var(--accent);
}


.contact-email span {
    font-size: 22px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .contact-hero {
        padding-top: 110px;
    }


    .contact-hero-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }


    .contact-intro {
        max-width: 600px;
    }


    .contact-form-inner {
        grid-template-columns: 1fr;

        gap: 45px;
    }


    .contact-form-label {
        margin-bottom: 0;
    }


    .contact-submit-row {
        align-items: flex-start;

        flex-direction: column;

        gap: 20px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .contact-hero {
        padding:
            100px
            24px
            80px;
    }


    .contact-hero-grid {
        margin-top: 40px;
    }


    .contact-heading h1 {
        font-size: clamp(50px, 13vw, 68px);
    }


    .contact-intro p {
        font-size: 15px;
    }


    .contact-form-section {
        padding:
            80px
            24px
            80px;
    }


    .contact-form-inner {
        gap: 35px;
    }


    .form-field {
        margin-bottom: 35px;
    }


    .form-field input,
    .form-field select,
    .form-field textarea {
        font-size: 16px;
    }


    .contact-submit {
        width: 100%;

        min-width: 0;
    }


    .contact-direct {
        padding:
            80px
            24px;
    }


    .contact-direct-content {
        margin-top: 45px;
    }


    .contact-direct-content h2 {
        margin-bottom: 45px;

        font-size: clamp(48px, 12vw, 65px);
    }


    .contact-email {
        font-size: 16px;
    }

}

.form-error {
    margin-top: 8px;
    color: #b42318;
    font-size: 13px;
    line-height: 1.4;
}

.contact-messages {
    width: min(1400px, calc(100% - 48px));
    margin: 110px auto 0;
}

.contact-message {
    padding: 18px 22px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.contact-message-success {
    background: #e8f5d0;
    color: #263014;
    border: 1px solid rgba(38, 48, 20, 0.12);
}

@media (max-width: 600px) {
    .hosting-details {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 22px;
    }

    .hosting-details-heading,
    .hosting-details .form-field-large {
        grid-column: auto;
    }
}
