/* styles.css - Simplified for optimal LCP and FCP */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    margin: 0;
    background: #f4f4f4;
    color: #333;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/assets/img/car-rental-tunisia-landinpage-mobile.webp') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
    min-height: 250px;
}

@media (min-width: 768px) {
    .hero {
        background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/assets/img/car-rental-tunisia-landinpage.webp');
        padding: 4rem 1rem;
        min-height: 350px;
    }
}

.hero h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

@media (min-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
}

.hero p {
    font-size: 1rem;
    margin: 0 auto 1.5rem;
    max-width: 600px;
    color: #ddd;
}

/* Form */
.form-container {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 700px;
    margin: 0 auto;
    color: #333;
}

.form-container h2 {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin: 0 0 1rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
}

.form-input, .form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #007bff;
}

.btn-primary {
    background: #007bff;
    color: #fff;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 20px;
    cursor: pointer;
}

.toggle-slider:before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}

input:checked + .toggle-slider {
    background: #007bff;
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Flatpickr Simplified */
.flatpickr-calendar {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
}

.flatpickr-day {
    padding: 0.5rem;
    text-align: center;
    color: #333;
}

.flatpickr-day.selected {
    background: #007bff;
    color: #fff;
    border-radius: 4px;
}

/* Below-the-Fold Sections */
.section {
    padding: 2rem 1rem;
    background: #fff;
}

.section:nth-child(even) {
    background: #f4f4f4;
}

.section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 1rem;
}

.section p {
    text-align: center;
    color: #666;
    margin: 0 auto 1.5rem;
    max-width: 600px;
}

.grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .grid { grid-template-columns: 1fr 1fr 1fr; }
}

.card {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.card p {
    font-size: 0.875rem;
    color: #666;
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.hidden { display: none; }