/* ── Contact hero ────────────────────────────────────────────────────────── */
.contact-hero {
    position: relative;
    width: 100%;
    height: 62vh;
    min-height: 360px;
    max-height: 540px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Desktop: full-bleed video */
.contact-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Mobile image fallback — hidden on desktop */
.contact-hero-img {
    display: none;
    position: absolute;
    inset: 0;
    background-image: url('../../media/contact_hero.jpg');
    background-size: cover;
    background-position: center;
    background-color: rgb(0, 55, 85); /* fallback colour if image missing */
}

/* Overlay and text — desktop: hidden (video needs no caption) */
.contact-hero-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 50, 80, 0.78) 0%,
        rgba(0, 90, 130, 0.55) 60%,
        rgba(0, 71, 103, 0.72) 100%
    );
}

.contact-hero-content {
    display: none;
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    max-width: 680px;
}

.contact-hero-content h1 {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 700;
    margin: 0 0 10px;
    color: #fff;
}

.contact-hero-content p {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .contact-hero {
        height: 52vh;
        min-height: 280px;
    }
    /* Swap video → image */
    .contact-hero-video  { display: none; }
    .contact-hero-img    { display: block; }
    /* Show overlay + text on mobile */
    .contact-hero-overlay { display: block; }
    .contact-hero-content { display: block; }
}

/* ── Contact form ─────────────────────────────────────────────────────────── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.contact-form button {
    background-color: #28a745;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #218838;
}

.contact-form .error {
    color: red;
    font-size: 14px;
}

.contact-info {
    margin-top: 20px;
    font-size: 14px;
}
