/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: white;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Menu Close Button - Hidden on all screen sizes */
.menu-close {
    display: none;
    z-index: 1001;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 4rem;
    box-sizing: border-box;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.logo {
    margin-right: 2rem;
    padding: 0;
}

.logo h1 {
    font-size: 1.6rem;
    color: #333;
    line-height: 1;
    margin: 0;
    text-align: left;
    transition: color 0.3s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    height: 100%;
}

.nav-links > * {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
}

.nav-links > *:hover {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

.nav-links > *.active {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

.nav-links > *.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: #007bff;
    border-radius: 1.5px;
}

.search-icon {
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1588702547919-26089e690ecc?ixlib=rb-4.0.3');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem 2rem;
    position: relative;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    padding: 0 1rem;
}

.hero-content {
    color: white;
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

/* Quote Box */
.quote-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 16px;
    width: min(500px, 100%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    margin: 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.quote-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.75rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.progress-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    margin: 20px auto 30px;
    gap: 10px;
}

.step {
    width: 30px;
    height: 30px;
    background: white;
    border: 2px solid #000;
    text-align: center;
    line-height: 28px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.line {
    flex-grow: 1;
    height: 4px;
    background-color: #ccc;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.step.active + .line {
    background-color: #0d6efd;
}

.form-section {
    max-width: 500px;
    margin: auto;
}

#step4 {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 15px;
}

#step4::-webkit-scrollbar {
    width: 8px;
}

#step4::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#step4::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#step4::-webkit-scrollbar-thumb:hover {
    background: #555;
}

label {
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
    color: #495057;
    transition: color 0.3s ease;
}

select, input[type="datetime-local"], input[type="text"], input[type="email"],
input[type="tel"], input[type="file"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

select:focus, input[type="datetime-local"]:focus, input[type="text"]:focus, 
input[type="email"]:focus, input[type="tel"]:focus, input[type="file"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
    background-color: white;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

button {
    padding: 12px 24px;
    font-size: 1rem;
    margin: 24px 12px 0 0;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#nextBtn, #step2Next, #step3Next, #step4Submit {
    background-color: #007bff;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

#nextBtn:hover, #step2Next:hover, #step3Next:hover, #step4Submit:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

#prevBtn, #step2Prev, #step3Prev, #step4Prev {
    background-color: #f8f9fa;
    color: #495057;
}

#prevBtn:hover, #step2Prev:hover, #step3Prev:hover, #step4Prev:hover {
    background-color: #e9ecef;
}

#nextBtn:disabled, #step2Next:disabled, #step3Next:disabled, #step4Submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

button:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
}

#step2 {
    text-align: center;
}

#estimatedCost {
    color: #f55a1f;
    font-size: 48px;
    margin: 10px 0;
}

#bookNowBtn {
    margin: 30px auto 10px;
    padding: 15px 25px;
    font-size: 16px;
    background: #f55a1f;
    color: white;
    border: none;
    border-radius: 50px;
    width: 100%;
    cursor: pointer;
}

/* Services Section */
.services {
    padding: 2rem 0;
    background-color: white;
    transition: background-color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    position: relative;
    text-align: center;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/3;
    transition: border 0.3s ease;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    margin: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* About Section */
.about {
    padding: 5rem 0;
    transition: background-color 0.3s ease;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #666;
    transition: color 0.3s ease;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Repair and Warranty Section */
.repair {
    padding: 5rem 0;
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

.repair-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.warranty-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, border 0.3s ease, color 0.3s ease;
}

.warranty-card i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 4rem 0 2rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: #ccc;
    transition: color 0.3s ease;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}

.social-icon {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #007bff;
}

.phone-number {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    margin-left: 2rem;
    transition: color 0.3s ease;
}

.phone-number:hover {
    color: #007bff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    transition: border-top-color 0.3s ease;
}

/* --- COMPLETE DARK MODE STYLES --- */
@media (prefers-color-scheme: dark) {
    /* Base styles */
    body {
        background-color: #121212;
        color: rgba(255, 255, 255, 0.87);
    }

    h1, h2, h3, h4, h5, h6 {
        color: rgba(255, 255, 255, 0.95);
    }

    p {
        color: rgba(255, 255, 255, 0.87);
    }

    /* Scrollbar styling */
    * {
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
    }

    #step4::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }

    #step4::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
    }

    #step4::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }

    /* Navigation */
    .navbar {
        background-color: rgba(18, 18, 18, 0.9);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
    }

    .logo h1 {
        color: rgba(255, 255, 255, 0.95);
    }

    .nav-links {
        background-color: #121212; /* For mobile menu */
    }

    .nav-links > * {
        color: rgba(255, 255, 255, 0.87);
    }

    .nav-links > *:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    .nav-links > *.active {
        color: #007bff;
        background-color: rgba(0, 123, 255, 0.15);
    }

    .search-icon {
        color: rgba(255, 255, 255, 0.87);
    }

    /* Quote box and forms */
    .quote-box {
        background: rgba(23, 23, 23, 0.9);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .quote-box h2 {
        color: rgba(255, 255, 255, 0.95);
    }

    .step {
        background: rgba(23, 23, 23, 0.9);
        border-color: rgba(255, 255, 255, 0.2);
        color: rgba(255, 255, 255, 0.8);
    }

    .step.active {
        background: #007bff;
        border-color: #007bff;
        color: white;
    }

    .line {
        background: rgba(255, 255, 255, 0.2);
    }

    .step.active + .line {
        background: #007bff;
    }

    /* Form inputs */
    select, 
    input[type="datetime-local"], 
    input[type="text"], 
    input[type="email"],
    input[type="tel"], 
    input[type="file"],
    .login-content input {
        background: rgba(17, 17, 17, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.9);
    }

    select:focus, 
    input[type="datetime-local"]:focus, 
    input[type="text"]:focus,
    input[type="email"]:focus, 
    input[type="tel"]:focus, 
    input[type="file"]:focus,
    .login-content input:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
        background: rgba(17, 17, 17, 0.95);
    }

    select option {
        background: #171717;
        color: rgba(255, 255, 255, 0.9);
    }

    label {
        color: rgba(255, 255, 255, 0.9);
    }

    /* Buttons */
    #prevBtn, #step2Prev, #step3Prev, #step4Prev {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.9);
    }

    #prevBtn:hover, #step2Prev:hover, #step3Prev:hover, #step4Prev:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    #bookNowBtn {
        background: #f55a1f;
        color: white;
    }

    button:disabled {
        background-color: rgba(255, 255, 255, 0.1) !important;
        color: rgba(255, 255, 255, 0.3) !important;
    }


    .service-card {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .service-card h3 {
        background: rgba(0, 0, 0, 0.8);
        color: rgba(255, 255, 255, 0.95);
    }

    /* About section */
    .about {
        background-color: #121212;
    }

    .about-text p {
        color: rgba(255, 255, 255, 0.7);
    }

    .warranty-card {
        background: rgba(23, 23, 23, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.87);
    }

    .warranty-card i {
        color: #007bff;
    }

    /* Footer */
    .footer {
        background-color: #0d1117;
        color: rgba(255, 255, 255, 0.87);
    }

    .footer-section h3 {
        color: rgba(255, 255, 255, 0.95);
    }

    .footer-section p {
        color: rgba(255, 255, 255, 0.6);
    }

    .social-icon {
        color: rgba(255, 255, 255, 0.87);
    }

    .social-icon:hover {
        color: #007bff;
    }

    .phone-number {
        color: rgba(255, 255, 255, 0.87);
    }

    .phone-number:hover {
        color: #007bff;
    }

    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Cost display */
    #estimatedCost {
        color: #ff7849;
    }

    .service-card {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .service-card h3 {
        background: rgba(0, 0, 0, 0.8);
        color: rgba(255, 255, 255, 0.95);
    }

    /* About section */
    .about {
        background-color: #121212;
    }

    .about-text p {
        color: rgba(255, 255, 255, 0.7);
    }

    /* Repair section */
    .repair {
        background-color: #1a1a1a;
    }

    .warranty-card {
        background: rgba(23, 23, 23, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.87);
    }

    .warranty-card i {
        color: #007bff;
    }

    /* Footer */
    .footer {
        background-color: #0d1117;
        color: rgba(255, 255, 255, 0.87);
    }

    .footer-section h3 {
        color: rgba(255, 255, 255, 0.95);
    }

    .footer-section p {
        color: rgba(255, 255, 255, 0.6);
    }

    .social-icon {
        color: rgba(255, 255, 255, 0.87);
    }

    .social-icon:hover {
        color: #007bff;
    }

    .phone-number {
        color: rgba(255, 255, 255, 0.87);
    }

    .phone-number:hover {
        color: #007bff;
    }

    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .admin-link {
        color: rgba(255, 255, 255, 0.5);
    }

    .admin-link:hover {
        color: rgba(255, 255, 255, 0.7);
    }

    /* Login content */
    .login-content {
        background-color: rgba(23, 23, 23, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }

    .login-content button[type="submit"] {
        background-color: #007bff;
    }

    .login-content button[type="submit"]:hover {
        background-color: #0056b3;
    }

    .error-message {
        color: #ff6b6b;
    }

    /* Cost display */
    #estimatedCost {
        color: #ff7849;
    }
}
