﻿/* --- Full-bleed hero that contains the overlay card --- */
.hero-banner {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    /* Tall enough to fully hold the card */
    min-height: clamp(520px, 70vh, 760px);
    overflow: hidden;
}

    .hero-banner img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* --- Overlay card, centered near the bottom of the hero --- */
:root {
    --contact-overlay-bottom: 16px;
}
/* ↓ adjust this value to fine-tune spacing */

.contact-shell {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: var(--contact-overlay-bottom); /* was 40px */
    max-width: 760px;
    width: 100%;
    padding: 0 16px; /* small side gutter on mobile */
    z-index: 2;
    margin: 0;
}

/* Glass effect so the hero shows through */
.contact-card {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

    /* Form styles */
    .contact-card .form-label {
        font-weight: 600;
    }

#subject-count, #body-count {
    font-variant-numeric: tabular-nums;
}

.status-message {
    min-height: 1.5rem;
    font-size: 0.95rem;
}

    .status-message.ok {
        color: #2e7d32;
    }

    .status-message.err {
        color: #c62828;
    }

    .status-message.info {
        color: #5f6368;
    }

#contact-body {
    resize: vertical;
}

/* --- Responsive tweaks --- */
@media (max-width: 576px) {
    .hero-banner {
        min-height: 66vh;
    }

    .contact-shell {
        bottom: 12px;
    }
    /* a touch lower on small screens */
}
