/* ===============================
   ROOT VARIABLES
================================ */
:root {
    --primary: #0e5881;
    --secondary: #f9c422;
    --bg-light: #f4f7fb;
    --dark: #212529;
    --muted: #6c757d;
    --border: #dde6ee;
}

/* ===============================
   GLOBAL RESET
================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background: #fff;
    color: var(--dark);
    line-height: 1.6;
}

/* ===============================
   LAYOUT HELPERS
================================ */
main {
    flex: 1 0 auto;
}

/* ===============================
   HEADER / NAV (SAFE OVERRIDES)
================================ */
header {
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ===============================
   CONTACT PAGE
================================ */
.contact-page {
    background: var(--bg-light);
    padding: 70px 0;
}



/* ===============================
   CONTACT BANNER
================================ */
.contact-banner {
    position: relative;
    width: 100%;
    min-height: 420px;
    height: 50vh;               /* 50% of viewport height */
    max-height: 650px;
    background: url("../images/contact_banner.jpg") center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
}



/* Dark overlay */
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(14, 88, 129, 0.85),
        rgba(0, 0, 0, 0.65)
    );
}

/* Content */
.banner-content {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    max-width: 800px;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.banner-content p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-banner {
        height: 240px;
    }

    .banner-content h1 {
        font-size: 2.1rem;
    }

    .banner-content p {
        font-size: 1rem;
    }
}




/* ===============================
   HERO SECTION
================================ */
.contact-hero {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
    text-align: center;
}

.contact-hero h1 {
    font-size: 2.6rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.contact-hero p {
    color: var(--muted);
    font-size: 1.1rem;
}

/* ===============================
   INFO CARDS
================================ */
.info-cards {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.info-card i {
    font-size: 36px;
    color: var(--secondary);
    margin-bottom: 14px;
}

.info-card h3 {
    margin: 0 0 6px;
    color: var(--primary);
    font-size: 1.2rem;
}

.info-card p {
    margin: 0;
    color: var(--muted);
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 48px rgba(0,0,0,.12);
}

/* ===============================
   CONTACT WRAP
================================ */
.contact-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

/* ===============================
   CARD BASE
================================ */
.contact-card,
.map-card {
    background: #fff;
    border-radius: 18px;
    padding: 36px;
    box-shadow: 0 14px 40px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
}

.contact-card h2,
.map-card h2 {
    color: var(--primary);
    margin: 0 0 25px;
}

/* ===============================
   FORM GRID (EVEN FIELDS)
================================ */
form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ===============================
   FLOATING FORM FIELDS
================================ */
.form-field {
    position: relative;
    width: 100%;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 18px 14px;
    font-size: 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
    outline: none;
    background: transparent;
    transition: border-color .25s, box-shadow .25s;
}

.form-field textarea {
    min-height: 160px;
    resize: vertical;
}

/* Floating label */
.form-field label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 6px;
    color: #999;
    font-size: 14px;
    pointer-events: none;
    transition: .25s ease;
}

/* Active state */
.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14,88,129,.12);
}

/* Float label when active */
.form-field input:focus + label,
.form-field textarea:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 12px;
    color: var(--primary);
}

/* ===============================
   SUBMIT BUTTON
================================ */
.submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), #08334b);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.2);
}

/* ===============================
   ALERTS
================================ */
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 600;
}

.alert-success {
    background: #e6f4ea;
    color: #1e7e34;
    border-left: 5px solid #28a745;
}

.alert-error {
    background: #fdecea;
    color: #b02a37;
    border-left: 5px solid #dc3545;
}

/* ===============================
   MAP
================================ */
.map-card iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border-radius: 12px;
    border: none;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 900px) {

    .info-cards {
        grid-template-columns: 1fr;
    }

    .contact-wrap {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .submit-row {
        justify-content: center;
    }

    .map-card iframe {
        min-height: 260px;
    }
}









 