/* =========================
   CONTACT PAGE
   ========================= */


/* ----- Hero ----- */

.contact-hero {
    position: relative;
    overflow: hidden;

    min-height: 420px;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 82% 45%,
            rgba(68, 176, 215, .10) 0%,
            rgba(68, 176, 215, .03) 28%,
            transparent 52%
        ),
        linear-gradient(
            110deg,
            #07161E 0%,
            #102A36 58%,
            #153C50 100%
        );

    border-bottom: 1px solid rgba(68, 176, 215, .14);
}

.contact-hero::before {
    content: "";

    position: absolute;

    width: 480px;
    height: 480px;

    right: -120px;
    top: 50%;

    transform: translateY(-50%);

    border: 1px solid rgba(68, 176, 215, .07);
    border-radius: 50%;

    pointer-events: none;
}

.contact-hero-content {
    position: relative;
    z-index: 1;

    max-width: 820px;
}

.contact-hero h1 {
    margin: 0 0 1.25rem;

    color: var(--z-text);

    font-size: clamp(2.9rem, 5vw, 4.8rem);
    font-weight: 750;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.contact-hero-lead {
    max-width: 720px;

    margin: 0;

    color: var(--z-text-muted);

    font-size: 1.1rem;
    line-height: 1.7;
}


/* ----- Main Layout ----- */

.contact-main {
    position: relative;
    overflow: hidden;

    padding: 6rem 0;

    background:
        linear-gradient(
            135deg,
            #102A36 0%,
            #0B202A 55%,
            #07161E 100%
        );
}

.contact-main::before {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    left: -300px;
    bottom: -320px;

    background: rgba(68, 176, 215, .055);

    border-radius: 50%;
    filter: blur(110px);

    pointer-events: none;
}

.contact-grid {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(280px, .7fr);

    gap: 3rem;

    align-items: start;
}


/* ----- Form Panel ----- */

.contact-form-panel {
    position: relative;
    overflow: hidden;

    padding: 2.75rem;

    background:
        linear-gradient(
            145deg,
            #102A36 0%,
            #0B202A 62%,
            #07161E 100%
        );

    border: 1px solid rgba(68, 176, 215, .22);
    border-radius: 6px;

    box-shadow:
        0 20px 45px rgba(0, 0, 0, .18),
        0 0 30px rgba(68, 176, 215, .035);
}

.contact-form-panel::before {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    right: -140px;
    top: -150px;

    background: rgba(68, 176, 215, .07);

    border-radius: 50%;
    filter: blur(80px);

    pointer-events: none;
}

.contact-form {
    position: relative;
    z-index: 1;
}

.contact-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 1.35rem 1.5rem;
}

.contact-field {
    margin-bottom: 1.45rem;
}

.contact-field label {
    display: block;

    margin-bottom: .55rem;

    color: var(--z-text);

    font-size: .88rem;
    font-weight: 650;
}

.contact-field label span {
    margin-left: .35rem;

    color: var(--z-text-muted);

    font-size: .76rem;
    font-weight: 500;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;

    padding: .9rem 1rem;

    color: var(--z-text);

    background: rgba(7, 22, 30, .68);

    border: 1px solid rgba(68, 176, 215, .20);
    border-radius: 4px;

    font: inherit;

    outline: none;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.contact-field input,
.contact-field select {
    min-height: 50px;
}

.contact-field textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: rgba(170, 184, 194, .55);
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: rgba(68, 176, 215, .70);

    background: rgba(7, 22, 30, .90);

    box-shadow:
        0 0 0 3px rgba(68, 176, 215, .08);
}


/* ----- Select Styling ----- */

.contact-field select {
    appearance: none;

    background-image:
        linear-gradient(45deg, transparent 50%, var(--z-cyan) 50%),
        linear-gradient(135deg, var(--z-cyan) 50%, transparent 50%);

    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;

    padding-right: 2.75rem;
}


/* ----- Conditional Context Panel ----- */
.contact-context-panel {
    margin: .5rem 0 1.75rem;
    padding: 1.6rem;

    background:
        linear-gradient(
            135deg,
            rgba(21, 60, 80, .52) 0%,
            rgba(7, 22, 30, .76) 100%
        );

    border: 1px solid rgba(68, 176, 215, .18);
    border-left: 3px solid var(--z-cyan);
    border-radius: 4px;
}

.contact-context-eyebrow {
    margin: 0 0 1.25rem;

    color: var(--z-cyan);

    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}


/* ----- Validation ----- */
.contact-validation {
    margin-bottom: 1.5rem;

    color: #ffb6b6;

    font-size: .9rem;
}

.contact-field-error {
    display: block;

    margin-top: .35rem;

    color: #ffb6b6;

    font-size: .78rem;
}


/* ----- Form Footer ----- */
.contact-form-footer {
    display: flex;
    align-items: center;

    gap: 1.5rem;

    margin-top: .75rem;
    padding-top: 1.5rem;

    border-top: 1px solid rgba(68, 176, 215, .12);
}

.contact-form-footer p {
    max-width: 420px;

    margin: 0;

    color: var(--z-text-muted);

    font-size: .8rem;
    line-height: 1.5;
}


/* ----- Sidebar ----- */
.contact-sidebar {
    position: flex;
    top: 120px;

    padding: 2rem 0 2rem 2.5rem;

    background: transparent;

    border: 0;
    border-left: 1px solid rgba(68, 176, 215, .22);
    border-radius: 0;
}

.contact-sidebar .section-eyebrow {
    margin-bottom: 1rem;
}

.contact-sidebar h2 {
    max-width: 320px;

    margin: 0 0 2.25rem;

    color: var(--z-text);

    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.15;
}

.contact-next-step {
    position: relative;

    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);

    gap: 1rem;

    padding: 1.25rem 0;

    border-bottom: 1px solid rgba(68, 176, 215, .12);
}

.contact-next-step:first-of-type {
    padding-top: 0;
}

.contact-next-step:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.contact-next-step > span {
    padding-top: .12rem;

    color: var(--z-cyan);

    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .12em;
}

.contact-next-step h3 {
    margin: 0 0 .4rem;

    color: var(--z-text);

    font-size: 1rem;
    font-weight: 700;
}

.contact-next-step p {
    max-width: 340px;

    margin: 0;

    color: var(--z-text-muted);

    font-size: .88rem;
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .contact-grid {
        grid-template-columns:
            minmax(0, 1.2fr)
            minmax(260px, .8fr);

        gap: 2.5rem;
    }

    .contact-form-panel {
        padding: 2.5rem;
    }

    .contact-sidebar {
        padding-left: 2rem;
    }
}

@media (max-width: 992px) {
    .contact-hero {
        min-height: 390px;
    }

    .contact-hero::before {
        width: 420px;
        height: 420px;
        right: -200px;
    }

    .contact-main {
        padding: 5rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-panel {
        padding: 2.25rem;
    }

    .contact-sidebar {
        position: static;
        top: auto;

        padding: 2rem 0 0;

        border-left: 0;
        border-top: 1px solid rgba(68, 176, 215, .22);
    }

    .contact-sidebar h2 {
        max-width: none;
    }

    .contact-form-panel {
        order: 2;
    }

    .contact-sidebar {
        order: 1;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: 360px;
    }

    .contact-hero::before {
        width: 360px;
        height: 360px;
        right: -220px;
    }

    .contact-hero h1 {
        font-size: clamp(2.6rem, 9vw, 4rem);
    }

    .contact-hero-lead {
        font-size: 1.05rem;
    }

    .contact-main {
        padding: 4.5rem 0;
    }

    .contact-grid {
        gap: 2.5rem;
    }

    .contact-form-panel {
        padding: 2rem;
    }

    .contact-field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-context-panel {
        padding: 1.4rem;
    }

    .contact-form-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .contact-sidebar {
        padding-top: 1.75rem;
    }

    .contact-next-step {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: .9rem;
    }
}

@media (max-width: 576px) {
    .contact-hero {
        min-height: auto;
        padding: 3.75rem 0;
    }

    .contact-hero::before {
        display: none;
    }

    .contact-hero h1 {
        margin-bottom: 1rem;
        font-size: clamp(2.3rem, 11vw, 3.2rem);
    }

    .contact-hero-lead {
        font-size: 1rem;
        line-height: 1.65;
    }

    .contact-main {
        padding: 3.75rem 0;
    }

    .contact-grid {
        gap: 2rem;
    }

    .contact-form-panel {
        padding: 1.5rem;
    }

    .contact-field {
        margin-bottom: 1.25rem;
    }

    .contact-field label {
        font-size: .85rem;
    }

    .contact-field input,
    .contact-field select,
    .contact-field textarea {
        padding: .85rem .9rem;
    }

    .contact-field input,
    .contact-field select {
        min-height: 48px;
    }

    .contact-field textarea {
        min-height: 135px;
    }

    .contact-context-panel {
        margin-bottom: 1.5rem;
        padding: 1.25rem;
    }

    .contact-context-eyebrow {
        margin-bottom: 1rem;
        font-size: .7rem;
    }

    .contact-form-footer {
        margin-top: .5rem;
        padding-top: 1.25rem;
    }

    .contact-form-footer .z-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .contact-sidebar {
        padding-top: 1.5rem;
    }

    .contact-sidebar h2 {
        margin-bottom: 1.75rem;
        font-size: 1.6rem;
    }

    .contact-next-step {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: .75rem;
        padding: 1.1rem 0;
    }

    .contact-next-step > span {
        padding-top: .15rem;
    }

    .contact-next-step h3 {
        margin-bottom: .35rem;
        font-size: 1rem;
    }

    .contact-next-step p {
        font-size: .85rem;
    }
}

@media (max-width: 400px) {
    .contact-hero {
        padding: 3.25rem 0;
    }

    .contact-hero h1 {
        font-size: 2.15rem;
    }

    .contact-main {
        padding: 3.25rem 0;
    }

    .contact-form-panel {
        padding: 1.25rem;
    }

    .contact-context-panel {
        padding: 1rem;
    }

    .contact-next-step {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: .65rem;
    }

    .contact-sidebar h2 {
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-field input,
    .contact-field select,
    .contact-field textarea {
        transition: none;
    }
}