/* ==========================================================================
   1. GLOBAL PAGE WRAPPER & SPACING
   ========================================================================= */
.main-page-wrapper {
    padding-bottom: 100px; 
    background-color: #fcfcfc;
}

 .dealer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}


/* ==========================================================================
   2. HERO BANNER
   ========================================================================= */
.modern-hero {
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: block;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1));
    display: flex;
    align-items: center;
}

.hero-container { padding-left: 10%; color: #ffffff; }
.hero-container h1 { font-size: 3.5rem; font-weight: 800; margin: 0; }
.hero-container p { font-size: 1.2rem; margin-top: 9px; opacity: 0.9; }
/* --- MOBILE VIEW PARA SA HERO --- */
@media screen and (max-width: 768px) {
    .modern-hero {
        height: 400px; /* Mas maikli na taas para sa mobile */
        /* Optional: background-attachment: scroll; - mas okay ito sa mobile kaysa fixed */
    }

    .hero-overlay {
        /* Gradient: Sa mobile, mas maganda kung pantay ang dilim (to bottom o full overlay) */
        background: rgba(0, 0, 0, 0.5); 
        justify-content: center; /* I-center ang content horizontal */
        text-align: center;      /* I-center ang text alignment */
    }

    .hero-container {
        padding-left: 0;         /* Alisin ang 10% padding */
        width: 90%;              /* Bigyan ng saktong lapad */
        margin: 0 auto;          /* I-center ang container */
    }

    .hero-container h1 {
        font-size: 2.2rem;       /* Paliitin ang text para kumasya sa isang screen */
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .hero-container p {
        font-size: 1rem;         /* Mas readable na sukat sa mobile */
        padding: 0 10px;
    }
}

/* Para sa mas liliit pang screens (Small Phones) */
@media screen and (max-width: 480px) {
    .modern-hero {
        height: 350px;
    }

    .hero-container h1 {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   4. DEALER SECTION LAYOUT
   ========================================================================= */
.dealer-container { display: flex; gap: 30px; margin-top: 50px; }
.dealer-form-box { flex: 1.6; background: #fff; padding: 50px; border-radius: 20px; box-shadow: 0 15px 50px rgba(0,0,0,0.06); }
.dealer-info-card { flex: 1; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 50px rgba(0,0,0,0.06); height: fit-content; }

/* ==========================================================================
   5. MAP WRAPPER & HOVER EFFECTS
   ========================================================================= */
.modern-map-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    border: 5px solid #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

.modern-map-wrapper:hover { box-shadow: 0 20px 50px rgba(0,0,0,0.25); transform: translateY(-5px); }
.modern-map-wrapper iframe { width: 100%; height: 100%; border: 0; transition: transform 0.8s ease; }
.modern-map-wrapper:hover iframe { transform: scale(1.05); }

.map-info-header {
    position: absolute; top: 0; left: 0; background: #c02a1b; color: white;
    padding: 7px 15px; border-radius: 12px; z-index: 5; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.get-directions-btn {
    position: absolute; bottom: 20px; right: 20px; background: #c02a1b; color: white !important;
    padding: 12px 22px; border-radius: 50px; text-decoration: none; display: flex; align-items: center;
    gap: 10px; font-family: 'Arial Black', sans-serif; font-size: 0.85rem; z-index: 5; transition: 0.3s;
}

/* ==========================================================================
   6. FORMS & CONTACT DETAILS
   ========================================================================= */
.form-title { font-size: 2.2rem; color: #1a1a40; margin-bottom: 30px; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group { margin-bottom: 25px; display: flex; flex-direction: column; }
.input-group label { font-weight: 700; font-size: 0.85rem; color: #444; margin-bottom: 10px; text-transform: uppercase; }
.input-group input, .input-group textarea { padding: 14px 18px; border: 2px solid #f0f0f0; border-radius: 12px; background: #fafafa; transition: 0.3s; }
.input-group input:focus, .input-group textarea:focus { border-color: #a00; background: #fff; outline: none; box-shadow: 0 0 0 4px rgba(160, 0, 0, 0.1); }

.submit-app-btn {
    background-color: #a00; color: #fff; width: 100%; padding: 16px; border: none;
    border-radius: 12px; font-weight: 700; font-size: 1.1rem; cursor: pointer;
    display: flex; justify-content: center; align-items: center; gap: 12px; transition: 0.3s;
}

.info-details-padding { padding: 35px; }
.dealer-subtitle { font-size: 1.6rem; color: #1a1a40; position: relative; padding-bottom: 10px; margin-bottom: 30px; }
.dealer-subtitle::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 4px; background: #a00; }
.branch-name { font-size: 1.15rem; font-weight: 700; color: #1a1a40; margin-bottom: 15px; }
.contact-detail { display: flex; gap: 15px; margin-bottom: 12px; }
.contact-detail i { color: #a00; width: 20px; text-align: center; }

/* ==========================================================================
   7. THANK YOU MODAL (BINALIK NA!)
   ========================================================================= */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-icon { font-size: 4rem; color: #28a745; margin-bottom: 20px; }
.modal-content h2 { color: #1a1a40; margin-bottom: 15px; font-weight: 800; }
.modal-content p { color: #666; line-height: 1.6; margin-bottom: 20px; }

.close-btn {
    background: #a00; color: #fff; border: none; padding: 12px 30px;
    border-radius: 10px; cursor: pointer; font-weight: 700; width: 100%; transition: 0.3s;
}
.close-btn:hover { background: #800; }

@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   8. MOBILE VIEW
   ========================================================================= */
@media (max-width: 992px) { .dealer-container { flex-direction: column; } .dealer-form-box, .dealer-info-card { width: 100%; } }
@media (max-width: 768px) { .main-page-wrapper { padding-bottom: 50px; } .form-grid { grid-template-columns: 1fr; } .hero-container h1 { font-size: 2.2rem; } }