/* =========================================
   1. IMPORTS & CONFIGURATION
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-red: #d32f2f;
    --primary-dark: #b71c1c;
    --primary-gradient: linear-gradient(135deg, #FF5252 0%, #D32F2F 100%);
    --gold: #FFD700;
    --gold-dark: #FFA000;
    --success: #2e7d32;
    --error: #c62828;
    --bg-body: #f4f7fa;
    --white: #ffffff;
    --text-main: #2D3436;
    --text-light: #636E72;
    --radius-card: 20px;
    --radius-btn: 50px;
}

/* =========================================
   2. GLOBAL RESET
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   3. ANIMATIONS
   ========================================= */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); } 70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }
@keyframes gradientBG { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.float { animation: float 4s ease-in-out infinite; display: inline-block; }
.pulse-animation { animation: pulse 2s infinite; }
.bounce { animation: bounce 2s infinite; }

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    background: linear-gradient(-45deg, #d32f2f, #b71c1c, #ff6f00, #ff8f00);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--white);
    padding: 30px 0 80px 0;
    text-align: center;
    border-radius: 0 0 50px 50px;
    position: relative;
    box-shadow: 0 10px 30px rgba(211, 47, 47, 0.3);
}

.navbar {
    display: flex; flex-direction: column; align-items: center; gap: 15px; margin-bottom: 30px;
}

.logo {
    font-size: 3rem; font-weight: 800; text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}
.highlight { color: var(--gold); }

/* Powered By Badge */
.powered-by-badge {
    background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.4); padding: 8px 20px;
    border-radius: 50px; display: inline-flex; flex-direction: column;
    align-items: center; line-height: 1.2;
}
.powered-by-badge .small-label { font-size: 0.7rem; text-transform: uppercase; opacity: 0.9; letter-spacing: 1px; }
.powered-by-badge .brand-name { font-weight: 700; font-size: 1rem; }

/* Operator Tag */
.operator-tag {
    background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.25));
    border: 1px solid rgba(255,255,255,0.4); padding: 10px 20px;
    border-radius: 50px; display: inline-block; margin-bottom: 20px; font-size: 0.95rem;
}

/* Route Box */
.route-box { display: flex; justify-content: center; margin-bottom: 25px; }
.route-text {
    background: rgba(0,0,0,0.25); padding: 10px 25px; border-radius: 50px;
    display: inline-flex; align-items: center; gap: 10px; font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Zingato Banner */
.lucky-draw-banner {
    background: #fff; color: var(--primary-dark); padding: 20px;
    border-radius: 20px; max-width: 600px; margin: 0 auto; position: relative;
    border: 3px solid transparent;
    background-image: linear-gradient(#fff, #fff), linear-gradient(45deg, #FFD700, #FFA000);
    background-origin: border-box; background-clip: padding-box, border-box;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary-gradient); color: var(--white);
    padding: 5px 15px; border-radius: 20px; font-weight: 700; font-size: 0.8rem;
    white-space: nowrap;
}
.zingato-link { color: var(--primary-red); font-weight: 800; border-bottom: 2px solid var(--primary-red); }

/* =========================================
   5. SEAT CARDS
   ========================================= */
.main-content { margin-top: -50px; position: relative; z-index: 10; padding-bottom: 60px; }
.section-title { text-align: center; margin: 50px 0 30px; }
.section-title h2 { font-size: 2rem; color: var(--text-main); font-weight: 700; }

.card-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; justify-content: center;
}

.seat-card {
    background: var(--white); padding: 30px; border-radius: var(--radius-card);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center; cursor: pointer;
    transition: 0.3s; display: flex; flex-direction: column; justify-content: space-between;
    border: 1px solid rgba(0,0,0,0.03); animation: slideUp 0.6s ease backwards;
}
.seat-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.icon-box {
    width: 70px; height: 70px; margin: 0 auto 20px;
    background: #FFF5F5; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--primary-red);
}

.amenities-row { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.amenities-row span {
    background: #f8f9fa; padding: 6px 12px; border-radius: 10px;
    font-size: 0.85rem; font-weight: 600; color: #555; border: 1px solid #eee;
}

/* Premium Card */
.premium-card { background: linear-gradient(to bottom, #fff, #fffdf2); border: 2px solid var(--gold); position: relative; }
.ribbon {
    position: absolute; top: 20px; right: -35px; transform: rotate(45deg);
    background: linear-gradient(45deg, var(--gold), #FFA000); color: #fff;
    font-weight: 800; font-size: 0.75rem; padding: 5px 40px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
.amenities-list { list-style: none; text-align: left; background: rgba(255, 215, 0, 0.08); padding: 15px; border-radius: 12px; margin-bottom: 20px; }
.amenities-list li { margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }

/* Buttons */
.btn-cta {
    background: var(--primary-gradient); color: white; border: none; padding: 14px; width: 100%;
    border-radius: var(--radius-btn); font-weight: 700; cursor: pointer; transition: 0.3s;
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3); font-size: 1rem;
}
.btn-cta:hover { transform: scale(1.03); }
.btn-premium { background: linear-gradient(45deg, #FF6F00, #FFCA28); box-shadow: 0 5px 15px rgba(255, 160, 0, 0.3); }

/* =========================================
   6. VERIFY & ABOUT
   ========================================= */
.verify-section { margin: 60px 0; position: relative; z-index: 5; }
.verify-card {
    background: var(--white); border-radius: 20px; padding: 30px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); border-left: 6px solid var(--primary-red);
}
.verify-icon {
    width: 50px; height: 50px; background: #FFEBEE; color: var(--primary-red);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; flex-shrink: 0;
}
.verify-text h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 5px; }
.verify-btn {
    background: var(--text-main); color: var(--white); padding: 12px 25px; border-radius: 50px;
    font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 8px;
    transition: 0.3s; white-space: nowrap;
}
.verify-btn:hover { background: var(--primary-red); transform: translateY(-3px); }

/* About Grid */
.about-section { background: var(--white); padding: 60px 0; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 40px; }
.about-item { text-align: center; padding: 15px; }
.about-icon { font-size: 2rem; color: var(--primary-red); margin-bottom: 15px; }
.section-subtitle { text-align: center; color: #666; margin-top: -20px; }

/* Partners */
.partners-section { background: #E0E0E0; padding: 20px 0; text-align: center; }
.partner-badge { display: inline-block; background: white; padding: 8px 20px; border-radius: 30px; margin: 5px; font-weight: 600; color: #555; font-size: 0.9rem; }

/* =========================================
   7. FOOTER
   ========================================= */
.main-footer {
    background: #1a1a1a; color: #bbb; padding: 60px 0 20px; font-size: 0.95rem;
    border-top: 4px solid var(--primary-red);
}
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px; margin-bottom: 40px;
}
.footer-col h3 { color: var(--white); font-size: 1.8rem; margin-bottom: 10px; font-weight: 800; }
.footer-col h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 15px; position: relative; display: inline-block; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 40px; height: 2px; background: var(--primary-red); }

.support-box {
    margin-top: 15px; background: rgba(255,255,255,0.05);
    padding: 15px; border-radius: 10px; border: 1px dashed #444;
}
.support-number { color: var(--gold); font-size: 1.4rem; font-weight: 700; display: block; margin-top: 5px; }

.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #ddd; border-bottom: 1px dotted #666; transition: 0.3s; }
.footer-links a:hover { color: var(--primary-red); }

.dev-link {
    display: inline-flex; align-items: center; gap: 8px; background: #222; color: #fff;
    padding: 8px 18px; border-radius: 50px; font-weight: 600; margin-top: 5px; border: 1px solid #333;
}
.dev-link:hover { background: var(--primary-red); border-color: var(--primary-red); }

.footer-bottom { border-top: 1px solid #333; padding-top: 20px; text-align: center; font-size: 0.85rem; color: #666; }

/* =========================================
   8. MODAL & FORM
   ========================================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(5px);
    display: none; align-items: center; justify-content: center; z-index: 2000;
}
.modal-content {
    background: #fff; padding: 30px; border-radius: 20px;
    width: 90%; max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.close-btn { font-size: 2rem; cursor: pointer; color: #aaa; transition: 0.3s; }
.close-btn:hover { color: var(--primary-red); }

.summary-box { background: #F1F8E9; padding: 15px; border-radius: 10px; text-align: center; border: 1px solid #C8E6C9; margin-bottom: 20px; }
.price-tag { font-size: 1.3rem; color: var(--success); font-weight: 800; }

.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; color: #555; }
.form-group input, .form-group select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; outline: none; }
.form-group input:focus, .form-group select:focus { border-color: var(--primary-red); }

.btn-pay { background: var(--success); margin-top: 10px; }
.btn-pay:disabled { background: #ccc; cursor: not-allowed; }

/* Loader */
.loader-small {
    border: 3px solid #f3f3f3; border-top: 3px solid #555; border-radius: 50%;
    width: 20px; height: 20px; animation: spin 1s linear infinite; display: inline-block; vertical-align: middle;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* =========================================
   9. MISC
   ========================================= */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    background: #25D366; color: white; padding: 15px 30px; border-radius: 50px;
    text-decoration: none; font-weight: 700; font-size: 1.1rem;
    display: flex; align-items: center; gap: 12px;
    z-index: 999; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: 0.3s; animation: float 3s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); background: #128C7E; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .verify-card { flex-direction: column; text-align: center; }
    .footer-grid { text-align: center; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .hero { padding-bottom: 60px; }
    .navbar { text-align: center; }
    
}




/* ================= SEAT MAP STYLES ================= */
.bus-layout-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
    overflow-x: auto;
}

.deck {
    border: 2px solid #ddd;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    min-width: 120px;
}

.deck h4 { text-align: center; margin: 0 0 10px 0; color: #555; font-size: 0.9rem; }

.seat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Seats per row */
    gap: 10px;
}

.seat-item {
    width: 40px;
    height: 60px; /* Sleeper Shape */
    border: 1px solid #ccc;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    cursor: pointer;
    background: #fff;
    transition: 0.2s;
    position: relative;
}

/* Steering Wheel Icon */
.driver-cabin { margin-bottom: 20px; text-align: right; color: #888; }

/* States */
.seat-item:hover { border-color: #d32f2f; }

.seat-item.selected {
    background: #2e7d32; /* Green */
    color: white;
    border-color: #2e7d32;
}

.seat-item.booked {
    background: #dfe6e9; /* Grey */
    color: #b2bec3;
    border-color: #dfe6e9;
    cursor: not-allowed;
    pointer-events: none;
}

.seat-legend {
    display: flex; justify-content: center; gap: 15px; margin-top: 10px; font-size: 0.8rem;
}
.legend-box { width: 15px; height: 15px; display: inline-block; vertical-align: middle; border-radius: 3px; }