/* Contact page — shared across brands. Accents via --brand-* tokens only. */

.contact-page {
    max-width: 960px;
}

.contact-page__intro {
    margin-bottom: 2rem;
    color: #333;
}

/* Two-column layout: form + contact-info aside. Collapses on small screens. */
.contact-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-page__layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* .section-title has no rule on this page (only home.css, faq.css and
   international.css define it), so the title was a bare Bootstrap h1. Each
   brand's heading idiom via the tokens; EB at the legacy h1 scale (60pt,
   capped at 3.5rem). */
.contact-page__title {
    font-weight: var(--type-heading-weight);
    text-transform: var(--type-heading-case);
    letter-spacing: var(--type-heading-tracking);
    line-height: var(--type-heading-leading);
}

[data-brand="eb"] .contact-page__title {
    font-size: clamp(2.1875rem, 0.5rem + 5.6vw, 3.5rem);
}

/* Contact-info aside. */
.contact-info {
    font-size: var(--type-body-size);
    color: #333;
    line-height: 1.6;
}

/* Legacy EB office heading: h4, 14pt uppercase Black. */
.contact-info__heading,
.contact-info__hours h3 {
    font-weight: var(--type-heading-weight);
    text-transform: var(--type-heading-case);
    letter-spacing: var(--type-heading-tracking);
}

.contact-info__heading {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

[data-brand="eb"] .contact-info__heading {
    font-size: 1.1667rem;
}

.contact-info__address {
    font-style: normal;
    margin-bottom: 1rem;
}

/* Label / value detail list (Telephone, Fax). */
.contact-info__meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 0.75rem;
    margin: 0 0 1rem;
}

.contact-info__meta dt {
    font-weight: 700;
}

.contact-info__meta dd {
    margin: 0;
}

.contact-info a {
    color: var(--brand-link, var(--brand-primary));
    font-weight: 700;
}

.contact-info__hours h3 {
    font-size: 1rem;
    margin: 0 0 0.25rem;
}

.contact-info__hours,
.contact-info__link,
.contact-info__sister {
    margin-top: 1rem;
}

.contact-info__sister {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.contact-page__thanks {
    padding: 1.5rem;
    background: #f9f9f9;
    border-left: 4px solid var(--brand-primary);
    margin-bottom: 2rem;
}

.contact-form .form-label {
    font-weight: 700;
}

/* Honeypot — visually removed but present in the DOM for bots to trip on. */
.contact-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Error summary shared by the forms cluster. */
.form-errors {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: #fde8e8;
    border: 1px solid #f5c6cb;
    color: #922b21;
}

.form-errors__title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-errors ul {
    margin: 0;
    padding-left: 1.25rem;
}
