.contact-banner img {
    object-position: center;
}

.contact-information {
    background: #e5f4f6 url("assets/contact-background.jpg") center / cover no-repeat;
}

.contact-grid,
.contact-message {
    max-width: 960px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    text-align: center;
}

.contact-grid article {
    min-width: 0;
}

.contact-icon {
    display: grid;
    width: 82px;
    aspect-ratio: 1;
    margin-inline: auto;
    place-items: center;
    border: 1px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
}

.contact-icon svg {
    width: 32px;
    height: 32px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-grid article:is(:hover, :focus-within) .contact-icon {
    color: #fff;
    background-color: var(--accent);
}

.contact-grid h2 {
    margin: 24px 0 20px;
    font: 300 1.125rem/1.5 var(--light-font);
}

.contact-details {
    padding-top: 20px;
    border-top: 1px solid rgb(38 111 126 / 23%);
    font-style: normal;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.contact-details a {
    display: block;
    width: fit-content;
    min-height: 44px;
    max-width: 100%;
    margin-inline: auto;
}

.contact-details a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.contact-message h2 {
    margin-bottom: clamp(28px, 4vw, 40px);
    text-align: center;
}

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

.contact-field-full,
.contact-form-actions {
    grid-column: 1 / -1;
}

.contact-field label {
    display: block;
    margin-bottom: 10px;
}

.contact-optional,
.contact-form-actions p {
    color: var(--muted);
    font-size: .875rem;
}

.contact-field :is(input, textarea) {
    display: block;
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid #a9b8bd;
    border-radius: 8px;
    background: var(--soft);
    color: var(--ink);
    font: inherit;
}

.contact-field :is(input, textarea):focus {
    border-color: var(--accent);
    background: #fff;
}

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

.contact-captcha {
    width: 100%;
    max-width: 550px;
}

.contact-captcha-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.contact-captcha-row input {
    flex: 1 1 200px;
    min-width: 0;
}

.contact-captcha-row canvas,
.contact-captcha-row img {
    display: block;
    width: 150px;
    height: 54px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.contact-honeypot {
    position: absolute !important;
    inline-size: 1px !important;
    block-size: 1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.contact-code-refresh {
    padding: 0 4px;
    border: 0;
    background: transparent;
}

.contact-code-refresh:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.contact-captcha input[aria-invalid="true"] {
    border-color: #9e3939;
}

.contact-code-error {
    margin-top: 8px;
    color: #9e3939;
    font-size: .875rem;
}

.contact-code-error:empty {
    margin-top: 0;
}

.contact-form-actions {
    text-align: center;
}

.contact-form-actions p {
    margin-top: 12px;
}

.contact-submit {
    min-width: 195px;
    min-height: 52px;
    border-color: var(--accent);
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
}

.contact-submit:disabled {
    opacity: .6;
}

@media (prefers-reduced-motion: no-preference) {
    .contact-icon {
        transition: color .25s, background-color .25s, transform .25s;
    }

    .contact-grid article:is(:hover, :focus-within) .contact-icon {
        transform: translateY(-4px);
    }

    :is(.contact-grid article, .contact-message).is-reveal-ready {
        transition: opacity .45s ease, transform .45s ease;
    }

    :is(.contact-grid article, .contact-message).is-reveal-ready:not(.is-revealed, :focus-within) {
        opacity: 0;
        transform: translateY(24px);
    }
}

@media (max-width: 760px) {
    .contact-banner {
        min-height: clamp(325px, 105vw, 570px);
    }

    .contact-grid,
    .contact-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-grid {
        max-width: 420px;
        gap: 38px;
    }

    .contact-grid h2 {
        margin: 16px 0 12px;
    }

    .contact-details {
        padding-top: 12px;
    }
}
