/* Enhanced Styles for Road Test Booking Service */

/* General Styles */
body {
    font-family: 'Nunito', sans-serif;
    color: #333;
    background-color: #f8f9fa;
    font-size: 16px;
    line-height: 1.6;
}

.main-content {
    padding: 120px 0 60px;
}

/* Typography Consistency */
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, .display-5, .navbar-brand, .section-title {
    font-family: 'Montserrat', sans-serif;
}

h1, .h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2, .h2, .section-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #0056b3;
}

h3, .h3 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.2px;
}

h4, .h4, .display-5 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.1px;
}

h5, .h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.7;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f8f9fa;
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: white !important;
}

.navbar-brand {
    font-weight: 600;
    color: #0056b3 !important;
    font-size: 1.25rem;
}

.navbar-brand i {
    margin-right: 8px;
    color: #0056b3;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0056b3 !important;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 60px;
    background-color: #fff;
}

.text-section {
    padding-right: 30px;
}

.text-section h1, .text-section h4 {
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 1.5rem;
}

.text-section .lead {
    margin-bottom: 1.5rem;
}

/* Service Fee */
.service-fee {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    border-left: 3px solid #0056b3;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.fee-amount {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0056b3;
    margin-right: 10px;
}

.fee-note {
    font-size: 1rem;
    color: #495057;
}

/* How It Works Section */
.how-it-works-section {
    background-color: #f8f9fa;
}

.step-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-icon {
    font-size: 2.5rem;
    color: #0056b3;
    margin-bottom: 20px;
}

.step-title {
    color: #0056b3;
    margin-bottom: 15px;
    font-weight: 600;
}

.step-description {
    color: #495057;
    margin-bottom: 0;
}

/* Pricing Section */
.pricing-section {
    background-color: #fff;
}

.pricing-box {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.price-tag-large {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 15px;
    line-height: 1;
}

.price-tag-large span {
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
    margin-left: 5px;
    vertical-align: middle;
}

.pricing-points {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
}

.pricing-points li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #495057;
    padding: 5px 0;
}

.pricing-points li i {
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #f8f9fa;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 30px;
}

.card-text {
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
}

/* Form Section */
.form-section {
    background-color: #fff;
}

.form-bg {
    padding: 80px 0;
}

.form-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.form-container .title {
    color: #0056b3;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.75rem;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
}

.form-control {
    border-radius: 5px;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
}

.form-control:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

.form-text {
    font-size: 0.85rem;
}

.check-terms {
    margin: 20px 0;
    font-size: 1rem;
}

.checkbox {
    margin-right: 10px;
}

.check-label {
    color: #495057;
}

.fee-notice {
    margin: 15px 0;
}

.btn.signup {
    background-color: #0056b3;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn.signup:hover {
    background-color: #004494;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary {
    background-color: #0056b3;
    border-color: #0056b3;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

/* Date Picker Styles */
.datepicker {
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
}

.input-group-text {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #fff;
}

/* Location Search Styles */
.location-search-container {
    position: relative;
}

.location-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0 0 5px 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.location-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 1rem;
}

.location-item:hover {
    background-color: #f8f9fa;
}

.location-item:last-child {
    border-bottom: none;
}

.location-item-agency {
    font-weight: 600;
    color: #0056b3;
}

.location-item-address {
    font-size: 0.85rem;
    color: #6c757d;
}

.selected-locations-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.selected-location {
    background-color: #e9f0f8;
    color: #0056b3;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.remove-location {
    margin-left: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6c757d;
}

.remove-location:hover {
    color: #dc3545;
}

/* Footer Styles */
footer {
    background-color: #343a40;
}

footer h5 {
    color: #fff;
    font-weight: 600;
    font-size: 1.25rem;
}

footer .text-muted {
    color: #adb5bd !important;
    font-size: 1rem;
}

footer a.text-muted:hover {
    color: #fff !important;
    text-decoration: none;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner .text-white {
    font-size: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        padding: 100px 0 40px;
    }
    
    .text-section {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    h1, .h1 {
        font-size: 2.25rem;
    }
    
    h2, .h2, .section-title {
        font-size: 1.75rem;
    }
    
    h3, .h3 {
        font-size: 1.5rem;
    }
    
    h4, .h4, .display-5 {
        font-size: 1.35rem;
    }
    
    .step-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 40px 0;
    }
    
    .hero-section {
        padding: 80px 0 30px;
    }
    
    .form-container {
        padding: 25px 15px;
    }
    
    h1, .h1 {
        font-size: 1.8rem;
    }
    
    h2, .h2, .section-title {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
    
    h4, .h4, .display-5 {
        font-size: 1.2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Mobile-specific improvements */
    .step-card {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .pricing-box {
        padding: 20px 15px;
    }
    
    .price-tag-large {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 8px 20px;
        font-size: 0.95rem;
    }
    
    .card-body {
        padding: 20px 15px;
    }
    
    .service-fee {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fee-amount {
        margin-bottom: 5px;
    }
    
    /* Full-width container on mobile */
    .container {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100%;
    }
    
    /* Improve form elements on mobile */
    .form-control {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    /* Better spacing for form groups on mobile */
    .form-group {
        margin-bottom: 15px;
    }
    
    /* Make sure images don't overflow */
    .image-container {
        max-width: 100% !important;
    }
    
    /* Improve navbar on mobile */
    .navbar-collapse {
        background-color: white;
        padding: 15px;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .navbar-nav {
        margin-top: 10px;
    }
    
    .nav-item {
        margin-bottom: 5px;
    }
}
    }
}
