/* ---------- GLOBAL ---------- */
body {
    background: #f4f6fb;
    color: #1b1f27;
    margin: 0;
}

:root {
    --dark: #0d1b3d;
    --primary: #003bba;
    --gradient: linear-gradient(135deg, #002d79, #005eff);
}

/* ---------- HERO WITH IMAGE ---------- */
.hero {
    height: 640px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 30, 0.55);
    z-index: 2;
}

.hero-title {
    position: absolute;
    top: 40%;
    left: 9%;
    transform: translate(-50%, -50%);
    z-index: 3;
    color: #fff;
    font-size: 42px;
    font-weight: 600;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

/* ---------- FLOATING FORM CARD ---------- */
.form-wrapper {
    max-width: 780px;
    margin: 0 auto;
    margin-top: -320px;
    position: relative;
    z-index: 10;
}

.form-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.12);
    margin-top: 60px;
}

input,
textarea {
    border-radius: 10px !important;
    border: 1px solid #d3d8e5 !important;
    padding: 12px !important;
    background: #fcfcff !important;
}

.btn-submit {
    margin-left: 25%;
    width: 50%;
    padding: 14px;
    background: var(--gradient);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    transition: 0.2s ease;
}

.btn-submit:hover {
    opacity: 0.88;
}

/* ---------- MAP SECTION ---------- */
.section-title {
    text-align: center;
    margin-top: 90px;
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 600;
}

.location-card {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    overflow: hidden;
    /* Ensure content stays within rounded corners if needed */
}

.location-map {
    flex: 1;
    min-width: 0;
    /* Prevents iframe from forcing overflow */
    display: flex;
    /* Ensures iframe fills height */
}

.location-map iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 18px;
    display: block;
    /* Removes extra spacing below inline iframe */
}

.location-info {
    flex: 0 0 380px;
    /* Fixed width for the floating card effect */
    max-width: 40%;
    /* Safety cap */
    background: #0d2460;
    color: #fff !important;
    padding: 40px;
    /* Larger padding */
    border-radius: 20px;
    align-self: center;
    /* Vertically centered */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    /* Strong shadow */
    box-sizing: border-box;
    z-index: 2;
    /* Visual hierarchy */
}

.location-info h4 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #fff;
}

.location-info p {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.6;
    color: #fff;
}


/* 
==================================
       RESPONSIVE DESIGN 
==================================
*/

/* ---------- Tablet (900px ↓) ---------- */
@media (max-width: 900px) {
    .hero {
        height: 450px;
    }

    .hero-title {
        font-size: 32px;
        width: 100%;
        text-align: center;
        padding: 0 10px;
        margin-left: 0;
        margin-top: -38px;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .form-wrapper {
        margin-top: -80px;
        padding: 0 15px;
    }

    .form-card {
        padding: 25px;
    }

    /* Stack Layout for Location Card */
    .location-card {
        flex-direction: column;
        align-items: stretch;
        /* Full width children */
        padding: 20px;
        gap: 20px;
    }

    .location-map iframe {
        height: 300px;
        /* Adjusted magnitude for tablet */
    }

    .location-info {
        flex: auto;
        /* Reset flex basis */
        width: 100%;
        max-width: 100%;
        margin-top: 0;
        text-align: center;
        /* Generally looks better centered in stack */
    }
}

/* ---------- Mobile Large (600px ↓) ---------- */
@media (max-width: 600px) {
    .hero {
        height: 380px;
    }

    .hero-title {
        font-size: 28px;
        padding: 0 20px;
    }

    .form-wrapper {
        margin-top: -60px;
    }

    .form-card {
        padding: 20px;
    }

    input,
    textarea {
        padding: 10px !important;
    }

    .location-card {
        padding: 15px;
        margin-bottom: 30px;
    }

    .location-map iframe {
        height: 240px;
    }

    .location-info {
        padding: 25px;
    }
}

/* ---------- Mobile Small (480px ↓) ---------- */
@media (max-width: 480px) {
    .hero {
        height: 320px;
    }

    .hero-title {
        font-size: 24px;
        margin-left: 0;
        /* Centered in tablet query, keep consistent */
    }

    .form-wrapper {
        margin-top: -50px;
    }

    .location-map iframe {
        height: 220px;
    }

    .location-info p {
        font-size: 14px;
    }
}

/* ---------- Extra Small (375px ↓) ---------- */
@media (max-width: 375px) {
    .hero {
        height: 300px;
    }

    .hero-title {
        font-size: 22px;
    }

    .form-card {
        padding: 15px;
    }

    .location-map iframe {
        height: 200px;
    }
}

.map-flex {
    flex: 1 1 auto !important;
}