* {
    font-family: 'Inter', sans-serif;
}

body {
    transition: background-color 0.3s, color 0.3s;
}

body.dark {
    background-color: #0f172a;
    color: #e2e8f0;
}

body.dark .bg-white {
    background-color: #1e293b !important;
}

body.dark .bg-gray-50 {
    background-color: #0f172a !important;
}

body.dark .text-gray-600,
body.dark .text-gray-500 {
    color: #cbd5e1 !important;
}

body.dark input,
body.dark select,
body.dark textarea {
    background-color: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

.btn-primary {
    background-color: #2563eb;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.2);
}

.category-card {
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.25);
}

.category-card img {
    transition: transform 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.chatbot-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #2563eb;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 350px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

body.dark .chat-window {
    background: #1f2937;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-overlay.active {
    display: flex;
}

.booking-modal {
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    padding: 2rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

body.dark .booking-modal {
    background: #1e293b;
}

.payment-modal {
    max-width: 450px;
}

.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

.success-toast {
    position: fixed;
    bottom: 100px;
    right: 25px;
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    z-index: 1001;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2563eb;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.close-modal-btn:hover {
    color: #ef4444;
}

.vehicle-section {
    scroll-margin-top: 80px;
}

.admin-page {
    display: none;
}

.admin-page.active {
    display: block;
}

.StripeElement {
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.dark .StripeElement {
    background-color: #1e293b;
    border-color: #334155;
}

/* Marquee Animation */
.marquee-track {
    display: flex;
    width: fit-content;
    animation: marqueeRight 22s linear infinite;
}

.marquee-track-1 {
    animation: marqueeRight 22s linear infinite;
}

@keyframes marqueeRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee-track:hover {
    animation-play-state: paused;
}

.country-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 8px 24px;
    margin: 0 12px;
    border-radius: 60px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.dark .country-card {
    background: #1e293b;
}

.flag-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.flag-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-name {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .country-card {
        padding: 6px 16px;
        margin: 0 8px;
    }
    .flag-circle {
        width: 24px;
        height: 24px;
    }
    .country-name {
        font-size: 12px;
    }
}

/* ========== FIX NOTIFICATION Z-INDEX ========== */
.success-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #10b981;
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    z-index: 999999 !important;  /* 🔴 Sabse upar */
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
    pointer-events: none;  /* Notification par click disable */
}

/* Error notification ke liye */
.success-toast.error {
    background: #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Stripe Element Ko Z-Index Kam Karo */
.StripeElement {
    z-index: 1;
    position: relative;
}

/* Payment Modal Ko Adjust Karo */
.payment-modal {
    z-index: 10000;
    position: relative;
}

/* Notification Ko Modal Se Upar Rakho */
.modal-overlay.active .success-toast {
    z-index: 100001 !important;
}

.success-toast {
    z-index: 999999 !important;
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
}

.StripeElement {
    z-index: 1 !important;
}

.payment-modal {
    overflow: visible !important;
}
/* ========== COUNTRIES MARQUEE STYLES ========== */
.country-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 10px 28px;
    margin: 0 15px;
    border-radius: 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

/* Dark mode mein card */
.dark .country-card {
    background: #1e293b;
    border-color: #475569;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Hover effect */
.country-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: transparent;
}

.country-card:hover .country-name,
.country-card:hover .country-flag {
    color: white;
}

/* Flag style */
.country-flag {
    font-size: 28px;
    line-height: 1;
    display: inline-block;
}

/* Flag circle */
.flag-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.dark .flag-circle {
    background: #0f172a;
}
/* ========== PAYMENT MODAL RESPONSIVE FIX ========== */
.payment-modal {
    max-width: 500px;
    width: 95%;
    margin: 20px auto;
    border-radius: 20px;
}

@media (max-width: 640px) {
    .payment-modal {
        width: 98%;
        max-width: 98%;
        padding: 1rem;
        margin: 10px auto;
    }
    
    .payment-modal .space-y-2 {
        font-size: 12px;
    }
    
    .payment-modal .flex.justify-between {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .payment-modal .flex.justify-between span:first-child {
        min-width: 100px;
    }
    
    .payment-modal .text-3xl {
        font-size: 1.75rem;
    }
    
    .payment-modal .py-3 {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .payment-modal .gap-3 {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .payment-modal {
        width: 100%;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .payment-modal .space-y-2 {
        font-size: 11px;
    }
    
    .payment-modal .text-5xl {
        font-size: 2rem;
    }
    
    .payment-modal h3.text-2xl {
        font-size: 1.25rem;
    }
}

/* Country name */
.country-name {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    color: #1f2937;
}

.dark .country-name {
    color: #e2e8f0;
}

/* Marquee animation */
.marquee-track {
    display: flex;
    width: fit-content;
}

.marquee-track-1 {
    animation: marqueeRight 25s linear infinite;
}

@keyframes marqueeRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .country-card {
        padding: 6px 18px;
        margin: 0 8px;
        gap: 8px;
    }
    .country-flag {
        font-size: 22px;
    }
    .flag-circle {
        width: 30px;
        height: 30px;
    }
    .country-name {
        font-size: 12px;
    }
}
/* Final Fix for Payment Modal */
@media (max-width: 768px) {
    #paymentModal .booking-modal {
        width: 95%;
        padding: 15px;
        margin: 10px;
    }
    
    #paymentModal .flex.justify-between {
        flex-direction: column;
        gap: 4px;
    }
    
    #paymentModal .flex.justify-between span:first-child {
        font-weight: bold;
    }
    
    #paymentModal .flex.justify-between span:last-child {
        margin-left: 15px;
    }
    
    #paymentModal .gap-3 {
        gap: 8px;
    }
    
    #paymentModal .py-3 {
        padding: 10px;
    }
}