/* ── Flash messages ──────────────────────────────── */

.flash-wrap {
    max-width: 900px;
    margin: 0 auto 20px auto;
    display: grid;
    gap: 10px;
    padding: 20px 20px 0;
}

.flash {
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.flash.success {
    background: #eaf6ee;
    color: #1f6b35;
}

.flash.error {
    background: #fdecec;
    color: #8a1f1f;
}

/* ── Section 1: Hero ─────────────────────────────── */

.contact-hero {
    position: relative;
    padding: 80px 20px 72px;
    color: #fff;
}

.contact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #1d2438;
    z-index: 0;
}

.contact-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.contact-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.contact-hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    margin: 0 auto 36px;
    max-width: 560px;
    line-height: 1.65;
}

.contact-reach {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.contact-reach-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: var(--ui-radius-md);
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.20);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.contact-reach-btn i {
    font-size: 0.95rem;
    color: #79baff;
    flex-shrink: 0;
}

.contact-reach-btn:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(121,186,255,0.50);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.30);
}

.trust-pills {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: var(--ui-pill);
    background: rgba(11,20,40,0.45);
    border: 1px solid rgba(255,255,255,0.16);
    color: #dde8ff;
    font-size: 0.87rem;
    font-weight: 500;
    line-height: 1.3;
}

.trust-pill i {
    color: #79baff;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ── Section 2: Body (two-column) ───────────────── */

.contact-body {
    padding: 60px 20px;
    background-color: #f4f4f4;
}

.contact-body-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: start;
}

/* Left: aside */

.contact-aside {
    background: var(--ui-card-surface);
    border-radius: var(--ui-radius-lg);
    border: 1px solid var(--ui-card-border);
    border-left: 4px solid #007bff;
    box-shadow: var(--ui-card-shadow);
    padding: 28px 22px;
}

.aside-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #007bff;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: 0.92rem;
    padding: 9px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-day {
    color: #2b3447;
    font-weight: 500;
}

.hours-time {
    color: #666;
    font-weight: 400;
    white-space: nowrap;
}

.aside-divider {
    border: 0;
    border-top: 1px solid rgba(0,0,0,0.09);
    margin: 22px 0;
}

.social-pills {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: var(--ui-pill);
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(0,0,0,0.09);
    box-shadow: 0 3px 8px rgba(15,28,58,0.07);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2a37;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.social-pill i {
    font-size: 1rem;
    color: #007bff;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.social-pill:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.92);
    border-color: var(--ui-card-border-hover);
    box-shadow: var(--ui-card-shadow-hover);
}

/* Right: form card */

.contact-form {
    background: var(--ui-card-surface);
    padding: 28px 28px 24px;
    border-radius: var(--ui-radius-lg);
    border: 1px solid var(--ui-card-border);
    box-shadow: var(--ui-card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-4px);
    border-color: var(--ui-card-border-hover);
    box-shadow: var(--ui-card-shadow-hover);
}

.contact-form h3 {
    margin: 0 0 20px;
    color: #333;
    font-size: 1.3rem;
    font-weight: 700;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: var(--ui-radius-sm);
    border: 1px solid #ddd;
    font-size: 16px;
    font-family: inherit;
    color: #2b3447;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form select {
    appearance: none;
    background-color: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0,123,255,0.15);
    outline: none;
}

.form-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cta-button,
.contact-form button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #007bff 0%, #0a63d5 100%);
    color: #fff;
    border: none;
    border-radius: var(--ui-radius-sm);
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 8px 18px rgba(0,123,255,0.30);
    text-decoration: none;
    margin-top: 4px;
}

.cta-button:hover,
.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0,123,255,0.42);
    filter: brightness(1.06);
}

.cta-button:active,
.contact-form button:active {
    transform: translateY(0);
}

/* ── Section 3: Map strip ───────────────────────── */

.contact-map-section {
    width: 100%;
    overflow: hidden;
    background-color: #e8edf5;
}

.map-label {
    text-align: center;
    padding: 36px 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.map-label-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #007bff;
}

.map-label-city {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2b3447;
    letter-spacing: -0.01em;
}

.contact-map-section iframe {
    display: block;
    width: 100%;
    height: 340px;
    border: 0;
}

/* ── Section 4: Quick-links strip ───────────────── */

.quick-links-strip {
    padding: 48px 20px 52px;
    background-color: #f4f4f4;
    text-align: center;
}

.strip-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #007bff;
    margin-bottom: 18px;
}

.quick-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 860px;
    margin: 0 auto;
}

.quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--ui-pill);
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(0,0,0,0.10);
    box-shadow: 0 4px 10px rgba(15,28,58,0.08);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1f2a37;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.quick-pill i {
    font-size: 0.88rem;
    color: #007bff;
    flex-shrink: 0;
}

.quick-pill:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.96);
    border-color: var(--ui-card-border-hover);
    box-shadow: var(--ui-card-shadow-hover);
}

/* ── Responsive: 900px ───────────────────────────── */

@media (max-width: 900px) {
    .contact-body-inner {
        grid-template-columns: 1fr;
    }

    .contact-form {
        order: 1;
    }

    .contact-aside {
        order: 2;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-body {
        padding: 48px 16px;
    }
}

/* ── Responsive: 600px ───────────────────────────── */

@media (max-width: 600px) {
    .contact-hero {
        padding: 60px 16px 56px;
    }

    .contact-reach {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-reach-btn {
        justify-content: center;
    }

    .trust-pills {
        flex-direction: column;
        align-items: center;
    }

    .trust-pill {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .contact-form {
        padding: 20px 16px 18px;
    }

    .contact-map-section iframe {
        height: 260px;
    }

    .quick-links-strip {
        padding: 36px 16px 40px;
    }
}

/* ── Dark mode ───────────────────────────────────── */

@media (prefers-color-scheme: dark) {

    .flash.success {
        background: rgba(31,107,53,0.25);
        color: #d7ffe4;
    }

    .flash.error {
        background: rgba(138,31,31,0.25);
        color: #ffd7d7;
    }

    /* Hero is always dark — no changes needed */

    .contact-body {
        background-color: #1a2035;
    }

    .contact-aside {
        background: var(--ui-card-surface-dark);
        border: 1px solid var(--ui-card-dark-border);
        border-left: 4px solid #4d9fff;
        box-shadow: var(--ui-card-dark-shadow);
    }

    .aside-label {
        color: #66aaff;
    }

    .hours-list li {
        border-bottom-color: rgba(255,255,255,0.08);
    }

    .hours-day {
        color: #dde8ff;
    }

    .hours-time {
        color: #8899b8;
    }

    .aside-divider {
        border-top-color: rgba(255,255,255,0.10);
    }

    .social-pill {
        background: rgba(121,186,255,0.10);
        border-color: rgba(168,206,255,0.20);
        color: #e8ecff;
    }

    .social-pill i {
        color: #66aaff;
    }

    .social-pill:hover {
        background: rgba(121,186,255,0.18);
        border-color: rgba(168,206,255,0.40);
        box-shadow: var(--ui-card-dark-shadow-hover);
    }

    .contact-form {
        background: var(--ui-card-surface-dark);
        border: 1px solid var(--ui-card-dark-border);
        box-shadow: var(--ui-card-dark-shadow);
    }

    .contact-form:hover {
        box-shadow: var(--ui-card-dark-shadow-hover);
    }

    .contact-form h3 {
        color: #ecf2ff;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        background-color: #1f2638;
        border: 1px solid rgba(255,255,255,0.12);
        color: #f2f2f2;
    }

    .contact-form select {
        background-color: #1f2638;
        color: #f2f2f2;
    }

    .contact-form input::placeholder,
    .contact-form textarea::placeholder {
        color: #8899b8;
    }

    .contact-map-section {
        background-color: #151c2e;
    }

    .map-label-eyebrow {
        color: #66aaff;
    }

    .map-label-city {
        color: #ecf2ff;
    }

    .quick-links-strip {
        background-color: #1a2035;
    }

    .strip-eyebrow {
        color: #66aaff;
    }

    .quick-pill {
        background: rgba(121,186,255,0.10);
        border-color: rgba(168,206,255,0.18);
        color: #e8ecff;
    }

    .quick-pill i {
        color: #66aaff;
    }

    .quick-pill:hover {
        background: rgba(121,186,255,0.18);
        border-color: rgba(168,206,255,0.40);
        box-shadow: var(--ui-card-dark-shadow-hover);
    }
}
