html.page-contact-root {
    overflow-y: auto;
}

body.page-contact {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    overflow: visible;
}

.page-contact main {
    flex: 1 0 auto;
    min-height: 0;
    overflow: visible;
}

.contact-page {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: start;
    /* Fill a normal viewport, but let the document grow when its form does. */
    min-height: calc(100vh - var(--site-endcap-h));
    min-height: calc(100svh - var(--site-endcap-h));
    overflow: visible;
    padding: calc(var(--header-h) + clamp(40px, 5vw, 72px)) 0 48px;
    background:
        radial-gradient(circle at 82% 14%, rgba(57, 172, 215, .17), transparent 24%),
        radial-gradient(circle at 13% 88%, rgba(21, 91, 119, .12), transparent 28%),
        linear-gradient(145deg, #06131b 0%, #03090d 54%, #020609 100%);
}

.contact-page__grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .34;
    background-image:
        linear-gradient(rgba(81, 199, 243, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(81, 199, 243, .035) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(135deg, rgba(0, 0, 0, .92), transparent 78%);
    mask-image: linear-gradient(135deg, rgba(0, 0, 0, .92), transparent 78%);
}

.contact-page__layout {
    display: block;
}

.contact-card {
    width: min(100%, 840px);
    margin-inline: auto;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid rgba(127, 207, 237, .19);
    background:
        linear-gradient(145deg, rgba(14, 34, 44, .92), rgba(5, 15, 20, .94));
    box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
}

.contact-form label {
    margin: 0;
    color: #8fc9dc;
    font-size: var(--small-text-min);
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.contact-card h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(30px, 3vw, 40px);
    font-weight: var(--display-weight);
    letter-spacing: -.045em;
    line-height: 1;
}

.contact-form {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.contact-form__identity {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-form__field {
    display: grid;
    gap: 6px;
}

.contact-form input:not([type="hidden"]),
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(142, 195, 216, .2);
    border-radius: 0;
    outline: 0;
    color: #edf5f7;
    background: rgba(2, 10, 14, .64);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.contact-form input:not([type="hidden"]) {
    min-height: 44px;
    padding: 9px 14px;
}

.contact-form textarea {
    min-height: clamp(96px, 12vh, 116px);
    padding: 12px 14px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #637881;
    opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--cyan);
    background: rgba(5, 19, 25, .9);
    box-shadow: 0 0 0 3px rgba(81, 199, 243, .12);
}

.contact-form__honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.contact-form__submit {
    justify-self: start;
    min-height: 46px;
    margin-top: 2px;
}

@media (max-width: 620px) {
    .contact-page {
        display: block;
        padding-top: calc(var(--header-h) + 32px);
        padding-bottom: 40px;
    }

    .contact-card {
        padding: 26px 20px 24px;
    }

    .contact-form {
        gap: 16px;
        margin-top: 24px;
    }

    .contact-form__identity {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-form textarea {
        min-height: 126px;
    }

    .contact-form__submit {
        width: 100%;
    }
}
