.contact-page {
    width: min(920px, calc(100% - 2rem));
    margin: 2rem auto;
    color: #172033;
    font-family: system-ui, -apple-system, sans-serif;
}

.contact-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact-header h1,
.contact-hero h1 {
    margin: .2rem 0;
    font-size: clamp(2rem, 5vw, 3rem);
}

.contact-eyebrow {
    margin: 0;
    color: #166534;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.contact-panel {
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(15 23 42 / 6%);
}

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

.contact-form__wide {
    grid-column: 1 / -1;
}

.contact-form label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 700;
}

.contact-form__label-with-info {
    display: flex;
    position: relative;
    gap: .45rem;
    align-items: center;
    width: fit-content;
}

.contact-form__label-with-info label {
    margin: 0;
}

.contact-info {
    display: inline-grid;
    width: 1.15rem;
    height: 1.15rem;
    padding: 0;
    border: 1px solid #5b7c70;
    border-radius: 50%;
    color: #275b49;
    background: #edf7f2;
    font: 800 .72rem/1 system-ui, sans-serif;
    cursor: help;
    place-items: center;
}

.contact-info__tooltip {
    position: absolute;
    z-index: 10;
    bottom: calc(100% + .65rem);
    left: 0;
    width: min(330px, calc(100vw - 3rem));
    padding: .75rem .85rem;
    border-radius: .65rem;
    color: #fff;
    background: #183d31;
    box-shadow: 0 12px 30px rgb(15 23 42 / 22%);
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.45;
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
    transition: opacity .18s ease, transform .18s ease;
}

.contact-info__tooltip::after {
    position: absolute;
    top: 100%;
    left: 5.2rem;
    border: 6px solid transparent;
    border-top-color: #183d31;
    content: "";
}

.contact-info:hover + .contact-info__tooltip,
.contact-info:focus-visible + .contact-info__tooltip {
    opacity: 1;
    transform: translateY(0);
}

.contact-form input {
    box-sizing: border-box;
    width: 100%;
    padding: .72rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.contact-form select,
.contact-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: .72rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: inherit;
    background: #fff;
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus {
    border-color: #16815c;
    outline: 3px solid rgb(22 129 92 / 14%);
}

.contact-form input:user-invalid {
    border-color: #b91c1c;
    outline-color: rgb(185 28 28 / 12%);
}

.contact-form ul {
    color: #b91c1c;
}

.contact-help,
.contact-update {
    color: #64748b;
    font-size: .88rem;
}

.contact-update {
    margin: 1.25rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.contact-button {
    display: inline-block;
    padding: .72rem 1rem;
    border: 0;
    border-radius: 8px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.contact-button--primary {
    color: #fff;
    background: #166534;
}

.contact-button--light {
    color: #174ea6;
    background: #eef5ff;
}

.contact-hero {
    margin-bottom: 1.25rem;
    padding: clamp(1.5rem, 6vw, 3.5rem);
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #14532d, #0f766e);
}

.contact-hero .contact-eyebrow {
    color: #bbf7d0;
}

.contact-public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.contact-item {
    padding: 1.25rem;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #fff;
}

.contact-item.contact-icon {
    padding-left: 3.35rem;
}

.contact-item.contact-icon::before {
    top: 1.35rem;
    left: 1.25rem;
    color: #16815c;
    font-size: 1.15rem;
}

.contact-item span {
    display: block;
    margin-bottom: .45rem;
    color: #64748b;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contact-item a {
    color: #166534;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.contact-item p {
    margin: 0;
    white-space: pre-line;
}

.contact-social {
    display: flex;
    gap: .55rem;
    align-items: flex-start;
    flex-direction: column;
}

.contact-social a {
    white-space: nowrap;
}

.contact-empty {
    text-align: center;
    color: #64748b;
}

.contact-map,
.contact-message {
    margin-top: 1.5rem;
}

.contact-map {
    overflow: hidden;
    padding: 1.25rem;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #fff;
}

.contact-map h2,
.contact-message h2 {
    margin: .2rem 0 .8rem;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 340px;
    margin-bottom: .8rem;
    border: 0;
    border-radius: 10px;
}

.contact-map a {
    color: #166534;
    font-weight: 750;
}

.contact-message > header {
    margin-bottom: 1.25rem;
}

.contact-message > header p:last-child {
    color: #64748b;
}

.contact-consent > div {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
}

.contact-consent input {
    width: auto;
    margin-top: .25rem;
}

.contact-consent label {
    font-weight: 500;
}

.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.contact-recipient {
    padding: 1rem;
    border: 1px solid #b9d8cc;
    border-radius: 10px;
    background: #f1f8f5;
}

.contact-recipient p {
    margin: .45rem 0 0;
    color: #526b62;
    font-size: .82rem;
}

@media (max-width: 650px) {
    .contact-header {
        flex-direction: column;
    }

    .contact-form__grid {
        grid-template-columns: 1fr;
    }

    .contact-form__wide {
        grid-column: auto;
    }
}
