/* ================================================
   CONTACT PAGE
   Intro + info boxes + message form + map
   ================================================ */

.contact-section {
    padding: 5em 0 2em;
}

/* Intro */
.contact-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.contact-intro h6 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #D31F0D;
    margin-bottom: 12px;
}

.contact-intro h2 {
    font-family: var(--font-primary);
    font-size: var(--h2-size);
    font-weight: var(--h2-weight);
    line-height: 1.25em;
    letter-spacing: var(--h2-letter-spacing);
    color: var(--color-dark-heading);
    margin-bottom: 0;
}

/* Info boxes */
.contact-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.contact-box {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-bottom: 4px solid var(--color-border);
    padding: 36px 28px;
    text-align: center;
    transition: border-color 0.4s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-box:hover {
    border-bottom-color: #D31F0D;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

/* Framed circle icon */
.contact-box-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    margin-bottom: 20px;
    border: 2px solid #D31F0D;
    border-radius: 50%;
    color: #D31F0D;
    font-size: 28px;
    transition: background 0.3s ease, color 0.3s ease;
}

.contact-box:hover .contact-box-icon {
    background: #D31F0D;
    color: #FFFFFF;
}

.contact-box h5 {
    font-family: var(--font-primary);
    font-size: var(--h5-size);
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--color-dark-heading);
    margin-bottom: 10px;
}

.contact-box p {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6em;
    color: var(--color-body);
    margin-bottom: 0;
}

.contact-box p a {
    color: var(--color-body);
    transition: color 0.3s ease;
}

.contact-box p a:hover {
    color: #D31F0D;
}

/* ------------------------------------------------
   Message form
   ------------------------------------------------ */
.contact-form-section {
    padding: 2em 0 4em;
}

.contact-form-card {
    background: var(--color-bg-light);
    padding: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-form-card h2 {
    font-family: var(--font-primary);
    font-size: var(--h3-size);
    font-weight: 700;
    line-height: 1.3em;
    letter-spacing: -0.5px;
    color: var(--color-dark-heading);
    margin-bottom: 10px;
}

.contact-form-lead {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6em;
    color: var(--color-body);
    margin-bottom: 28px;
}

/* White inputs with a clear border so fields never blend into the panel */
.contact-form-card .form-control {
    background-color: #FFFFFF;
    border: 1px solid #DCDCDE;
}

.contact-form-card .form-control:focus {
    border-color: #760000;
}

.contact-form-card .req {
    color: #D31F0D;
}

/* Status alerts */
.contact-form-card .form-alert {
    padding: 14px 18px;
    margin-bottom: 22px;
    font-family: var(--font-body);
    font-size: 14px;
    border-left: 4px solid;
}

.form-alert--success {
    background: #eaf7ed;
    border-left-color: #2e7d32;
    color: #1e5e22;
}

.form-alert--error {
    background: #fdecea;
    border-left-color: #D31F0D;
    color: #8a1a0d;
}

/* ------------------------------------------------
   Map
   ------------------------------------------------ */
.contact-map-section {
    padding: 0 0 5em;
}

.contact-map {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

.contact-map iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
    filter: grayscale(0.1);
}

/* ------------------------------------------------
   Responsive
   ------------------------------------------------ */
@media (max-width: 1024px) {
    .contact-boxes {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 560px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .contact-section {
        padding: 3em 0 1em;
    }

    .contact-form-card {
        padding: 24px;
    }

    .contact-map iframe {
        height: 320px;
    }
}
