/* ===== RESET & VARIABLES ===== */
:root {
    --orange: #FF6B35;
    --dark-orange: #E55A2B;
    --dark: #2C2C2C;
    --light: #F8F9FA;
    --gray: #6C757D;
    --shadow: 0 3px 10px rgba(0,0,0,0.1);
    --radius: 6px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    line-height: 1.5;
    font-size: 15px;
}

.container {
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== MAINTENANCE POPUP ===== */
.maintenance-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.popup-content {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.maintenance-icon {
    width: 50px;
    height: 50px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 22px;
}

.popup-header h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.popup-body p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.popup-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border-radius: var(--radius);
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--orange);
    color: var(--orange);
}

.btn-outline:hover {
    background: var(--orange);
    color: white;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: white;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--orange);
    color: white;
    padding: 8px 0;
    font-size: 0.8rem;
    text-align: center;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: var(--dark);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    height: 35px;
    width: auto;
}

.brand-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 15px;
}

.nav-link {
    color: white;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
}

.nav-link.active {
    background: var(--orange);
}

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7)), 
                url('asset/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.hero-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.btn-primary {
    background: var(--orange);
    color: white;
    padding: 12px 25px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    font-weight: 500;
}

.btn-primary:hover {
    background: var(--dark-orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.w-100 {
    width: 100% !important;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ===== FORM STYLING - UPDATED ===== */
.form-control, .form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: white;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-control::placeholder {
    color: #999;
    font-size: 0.9rem;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
}

/* ===== BOOKING FORM ===== */
.booking-section {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.booking-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.booking-card h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    text-align: center;
    color: var(--dark);
    font-weight: 600;
}

.booking-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.form-group {
    margin-bottom: 0;
}

.extra-field {
    display: none;
    grid-column: 1 / -1;
}

.btn-submit {
    grid-column: 1 / -1;
    background: var(--orange);
    color: white;
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--dark-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== NETLIFY FORM STYLING ===== */
.netlify-form {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 40px auto;
}

.netlify-form h3 {
    color: var(--dark);
    font-size: 1.3rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.netlify-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
    padding: 15px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--orange);
    cursor: pointer;
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--gray);
    cursor: pointer;
}

/* ===== SECTIONS ===== */
.section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.section-title p {
    color: var(--gray);
    font-size: 0.9rem;
}

.bg-light {
    background-color: #f8f9fa;
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.feature-box {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 45px;
    height: 45px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: white;
    font-size: 18px;
}

.feature-box h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.feature-box p {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ===== CAR CARDS - FIXED FOR FULL CAR VISIBILITY ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 0 auto;
}

.car-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.image-wrapper {
    height: 200px;
    width: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.car-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.car-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.car-content h5 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.car-content p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.car-price {
    font-size: 1.3rem;
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

/* ===== CONTACT CARDS ===== */
.contact-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon-wrapper {
    height: 120px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon-wrapper.phone {
    background: var(--orange);
}

.contact-icon-wrapper.whatsapp {
    background: #25D366;
}

.contact-icon-wrapper.email {
    background: var(--dark-orange);
}

.contact-icon {
    color: white;
    font-size: 40px;
}

.contact-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.contact-content h5 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.contact-content p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.contact-content .btn-primary {
    width: 100%;
    display: block;
}

/* ===== TRANSFER CARDS ===== */
.transfer-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.transfer-icon {
    width: 60px;
    height: 60px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 24px;
}

.transfer-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.transfer-price {
    font-size: 1.5rem;
    color: var(--orange);
    font-weight: 600;
    margin: 10px 0;
}

.transfer-card p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 15px;
    flex-grow: 1;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 100;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    text-decoration: none;
    color: white;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--orange);
}

.footer-section p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 12px;
    line-height: 1.5;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    font-size: 0.85rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--orange);
}

.contact-info {
    list-style: none;
}

.contact-info li {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.contact-info i {
    color: var(--orange);
    margin-top: 2px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.social-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.3s ease;
}

.social-icon:hover {
    background: var(--orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    opacity: 0.7;
}

.creator-credit {
    margin-top: 5px;
    font-size: 0.75rem;
}

.creator-link {
    color: var(--orange);
}

.creator-link:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 15px;
        gap: 10px;
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .navbar-toggler {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .booking-form {
        grid-template-columns: 1fr;
    }
    
    .booking-card {
        padding: 20px;
    }
    
    .netlify-form {
        padding: 20px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .image-wrapper {
        height: 180px;
        padding: 15px;
    }
    
    .contact-icon-wrapper {
        height: 100px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== FORM LAYOUT HELPERS ===== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.form-section {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 30px auto;
    max-width: 800px;
}

.form-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: var(--gray);
    text-align: center;
}

/* ===== FORM STATE CLASSES ===== */
.form-control.error {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.02);
}

.form-control.success {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.02);
}

.form-control:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* ===== FORM HELP TEXT ===== */
.form-help {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 5px;
    font-style: italic;
}

.required:after {
    content: " *";
    color: #dc3545;
}

/* ===== FORM GROUP SPACING ===== */
.form-group-spaced {
    margin-bottom: 25px;
}

/* ===== ALTERNATE FORM STYLES ===== */
.form-light {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.form-dark {
    background: var(--dark);
    color: white;
}

.form-dark .form-control,
.form-dark .form-select {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: white;
}

.form-dark .form-control:focus,
.form-dark .form-select:focus {
    border-color: var(--orange);
    background: rgba(255,255,255,0.1);
}

.form-dark .form-label {
    color: rgba(255,255,255,0.9);
}

/* ===== SPECIAL FORM ELEMENTS ===== */
.form-file {
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-file:hover {
    border-color: var(--orange);
    background: rgba(255, 107, 53, 0.05);
}

.form-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--orange);
    cursor: pointer;
}

/* ===== FORM VALIDATION ===== */
.validation-message {
    font-size: 0.85rem;
    margin-top: 5px;
    padding: 5px 10px;
    border-radius: var(--radius);
    display: none;
}

.validation-error {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    display: block;
}

.validation-success {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    display: block;
}

/* ===== FORM LOADING STATE ===== */
.form-loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.form-loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}