﻿/**
 * AFC Theme â€” Contact page template.
 */

.contact-section {
    background: linear-gradient(180deg, #eef1f5 0%, #f7f8fa 100%);
    padding: 72px 0 80px;
}

.contact-section .container {
    max-width: 94%;
}

.contact-grid {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.contact-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 40px rgb(9 24 40 / 10%);
    overflow: hidden;
}

/* thin red accent bar across the top of every card */
.contact-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--afc-red);
}

.contact-card .section-title {
    font-size: clamp(1.25rem, 2.2vw, 1.5rem);
    margin-bottom: 12px;
    padding-bottom: 12px;
}

/* short red underline beneath each title */
.contact-card .section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 3px;
    background: var(--afc-red);
    border-radius: 2px;
}

.contact-card__intro {
    color: var(--afc-muted);
    font-size: .9rem;
    margin-bottom: 1.25rem;
}

/* ---------- Info column (dark navy card) ---------- */
.contact-info {
    background: var(--afc-navy);
    color: rgb(255 255 255 / 85%);
}

.contact-info .section-title,
.contact-info .contact-card__intro {
    color: #fff;
}

.contact-info .contact-card__intro {
    color: rgb(255 255 255 / 70%);
}

.contact-info__list {
    margin: 0 0 1rem;
    padding: 0;
}

.contact-info__list li {
    display: flex;
    gap: .9rem;
    align-items: center;
    padding: .45rem 0;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
    font-size: .88rem;
    line-height: 1.35;
    word-break: break-word;
}

.contact-info__list li:last-child {
    border-bottom: 0;
}

.contact-info__list strong {
    display: block;
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--afc-gold);
    margin-bottom: .15rem;
}

.contact-info__list a {
    color: #fff;
    text-decoration: none;
}

.contact-info__list a:hover {
    color: var(--afc-gold);
}

.contact-info__icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--afc-red);
    color: #fff;
}

.contact-info__icon svg {
    width: 15px;
    height: 15px;
}

.contact-info__social-title {
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--afc-gold);
    margin-bottom: .75rem;
}

.contact-social {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
    padding: 0;
}

.contact-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgb(255 255 255 / 30%);
    color: #fff;
    transition: background .2s, border-color .2s, transform .2s;
}

.contact-social a svg {
    width: 18px;
    height: 18px;
}

.contact-social a:hover,
.contact-social a:focus-visible {
    background: var(--afc-red);
    border-color: var(--afc-red);
    transform: translateY(-3px);
}

/* ---------- Form column ---------- */
.contact-form .form-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--afc-navy);
    margin-bottom: .3rem;
}

.contact-form .form-control {
    border-radius: 4px;
    padding: .35rem .7rem;
    font-size: .9rem;
    line-height: 1.4;
    min-height: 0;
    height: 36px;
    background: #f5f7fa;
    border: 1px solid #dde2ea;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.contact-form textarea.form-control {
    height: 85px;
    resize: vertical;
}

.contact-form .form-control:focus {
    background: #fff;
    border-color: var(--afc-red);
    box-shadow: 0 0 0 .2rem rgb(200 30 40 / 15%);
}

.contact-form .btn-afc {
    margin-top: 15px;
    box-shadow: 0 6px 16px rgb(200 30 40 / 28%);
}

/* Shortcode forms (CF7, WPForms, etc.): lock the message box to 85px */
.contact-form--shortcode textarea,
.contact-form--shortcode textarea.form-control,
.contact-form--shortcode textarea.wpcf7-form-control {
    display: block;
    width: 100%;
    height: 85px !important;
    min-height: 85px !important;
    max-height: 85px !important;
    resize: none;
}

.contact-form--shortcode .wpcf7-form-control-wrap {
    display: block;
}

/* 15px gap above the Submit button (shortcode forms) */
.contact-form--shortcode input[type="submit"],
.contact-form--shortcode button[type="submit"],
.contact-form--shortcode .wpcf7-submit {
    margin-top: 15px !important;
}

.contact-form__hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

/* ---------- Map column ---------- */
.contact-map {
    display: flex;
    flex-direction: column;
}

.contact-map__frame {
    flex: 1 1 auto;
    min-height: 320px;
    margin: .5rem -1.6rem -2rem; /* run the map edge-to-edge inside the card */
    background: #e9e9e9;
}

.contact-map__frame iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
    display: block;
}

@media (max-width: 991.98px) {
    .contact-map__frame,
    .contact-map__frame iframe {
        min-height: 300px;
    }
}

@media (max-width: 575.98px) {
    .contact-section {
        padding: 48px 0 56px;
    }

    .contact-card {
        padding: 1.5rem 1.25rem;
    }

    .contact-map__frame {
        margin: .5rem -1.25rem -1.5rem;
    }
}
