/* Contact page ------------------------------------------------------------- */

.contact-hero {
    position: relative;
    padding-top: 9rem;
    padding-bottom: 3rem;
}

@media (min-width: 1024px) {
    .contact-hero {
        padding-top: 10rem;
    }
}

.contact-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 480px;
    background: linear-gradient(180deg, rgba(23, 141, 114, 0.12), rgba(255, 255, 255, 0));
    z-index: 0;
    pointer-events: none;
}

:where(.uc-dark) .contact-hero::before {
    background: linear-gradient(180deg, rgba(23, 141, 114, 0.22), rgba(14, 14, 15, 0));
}

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

/* Info cards */
.contact-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--bs-border-color, rgba(15, 23, 42, 0.08));
    border-radius: 1rem;
    background: #fff;
    height: 100%;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary, #178d72);
    box-shadow: 0 12px 30px rgba(23, 141, 114, 0.1);
}

.contact-card .contact-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgba(23, 141, 114, 0.1);
    color: var(--color-primary, #178d72);
}

.contact-card h3 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
}

.contact-card p,
.contact-card a {
    margin: 0;
    color: #52647a;
    line-height: 1.6;
    word-break: break-word;
}

.contact-card a:hover {
    color: var(--color-primary, #178d72);
}

:where(.uc-dark) .contact-card {
    background: #0e0e0f;
    border-color: rgba(255, 255, 255, 0.12);
}

:where(.uc-dark) .contact-card p,
:where(.uc-dark) .contact-card a {
    color: var(--color-gray-200, #aeb2b8);
}

/* Form card */
.contact-form {
    border: 1px solid var(--bs-border-color, rgba(15, 23, 42, 0.08));
    border-radius: 1.25rem;
    background: #fff;
}

:where(.uc-dark) .contact-form {
    background: #0e0e0f;
    border-color: rgba(255, 255, 255, 0.14);
}

.contact-form .form-select {
    display: block;
    width: 100%;
    height: 48px !important;
    min-height: 48px;
    padding: 0.625rem 4.125rem 0.625rem 1rem;
    font-family: var(--font-text-family, Arial, sans-serif);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #24364b !important;
    -webkit-text-fill-color: #24364b;
    background-color: #fff !important;
    opacity: 1;
}

.contact-form .form-select option {
    color: #24364b;
    background-color: #fff;
}

.contact-form .form-select:invalid,
.contact-form .form-select option[value=""] {
    color: #6c757d !important;
    -webkit-text-fill-color: #6c757d;
}

.contact-form.was-validated .form-select:valid,
.contact-form .form-select.is-valid {
    color: #24364b !important;
    -webkit-text-fill-color: #24364b;
}

:where(.uc-dark) .contact-form .form-select {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    background-color: #0e0e0f !important;
}

:where(.uc-dark) .contact-form .form-select option {
    color: #fff;
    background-color: #0e0e0f;
}

:where(.uc-dark) .contact-form .form-select:invalid {
    color: #aeb2b8 !important;
    -webkit-text-fill-color: #aeb2b8;
}

/* Honeypot — visually and functionally hidden, kept out of the a11y tree */
.contact-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
