/* --- HAAGISEPOISID - TÄIELIK JA PARANDATUD STIILIFAIL --- */

:root {
    --primary: #2d5a27; 
    --primary-light: #45823d;
    --dark: #1a1a1a;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --accent: #e67e22; 
    --error-red: #C1272D;
}

/* 1. ÜLDINE RESET JA BAAS */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: var(--light-bg);
    color: var(--dark);
    font-size: 18px; 
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 2. HEADER (Logo ja Menüü alati keskel) */
header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    flex-direction: column; /* Logo üleval, menüü all */
    align-items: center;    /* Horisontaalselt keskele */
    justify-content: center;
}

.logo-link img {
    max-width: 280px; /* Logo suurus arvutis */
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    display: flex;
    justify-content: center;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-size: 24px; 
    font-weight: 900; 
    text-transform: uppercase;
    transition: color 0.3s;
    letter-spacing: 1px;
}

nav a:hover {
    color: var(--primary);
}

/* 3. KONTEINERID JA SISU */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 60px auto;
    background: var(--white);
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

.car-info h1 {
    font-size: 3.5rem; 
    margin-bottom: 25px;
    color: var(--primary);
    line-height: 1.1;
    font-weight: 900;
}

.car-info p {
    font-size: 1.3rem; 
    color: #444;
}

/* 4. VORM JA SISENDID (Kastid arvutis) */
.input-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 1.1rem;
    text-transform: uppercase;
}

/* See on see sisestuskast, mida tegime väiksemaks */
input[type="text"] {
    width: 100%;
    padding: 14px 18px; /* Vähendatud kõrgust */
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1.1rem; 
    font-weight: 500;
    transition: all 0.3s;
    background: #fdfdfd;
}

input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45, 90, 39, 0.05);
    outline: none;
}

/* 5. NUPUD */
.btn-primary {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 5px 0 #1b3818;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #1b3818;
}

.btn-primary:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #1b3818;
}

.btn-primary:disabled {
    background: #ccc !important;
    color: #888;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* 6. KALENDER */
.flatpickr-day.flatpickr-disabled {
    background: #fff0f0 !important;
    color: var(--error-red) !important;
    text-decoration: line-through;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 7. MOBIILI KOHANDUSED (SIIN ON PARANDUSED) */
@media (max-width: 900px) {
    header {
        padding: 15px 0;
    }

    .logo-link img {
        max-width: 200px; /* Logo mobiilis väiksem ja keskel */
        margin: 0 auto;
    }

    nav ul {
        flex-direction: row; 
        flex-wrap: wrap;     
        gap: 15px;           
        justify-content: center;
        margin: 10px 0 0 0;
    }
    
    nav a {
        font-size: 16px; 
    }

    .booking-container { 
        grid-template-columns: 1fr; 
        padding: 25px; 
        margin: 20px 10px; 
        gap: 25px;
    }

    .car-info h1 { 
        font-size: 2.2rem !important; 
        text-align: center;
    }

    .car-info p {
        text-align: center;
        font-size: 1.1rem;
    }

    /* SISENDKASTI MOBIILI SUURUS - VEELGI KOMPAKTSEM */
    input[type="text"] {
        padding: 10px 15px !important; /* See on nüüd tõesti madal ja kompaktne */
        font-size: 0.95rem !important;
        height: 45px; /* Fikseeritud kõrgus, et oleks stabiilne */
    }

    .btn-primary {
        padding: 15px;
        font-size: 1.1rem;
    }

    .flatpickr-calendar {
        max-width: 280px; 
        margin: 0 auto;
    }
}
/* --- CHECKOUT LEHE STIILID --- */
.checkout-container {
    max-width: 1000px;
    margin: 40px auto;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.checkout-header {
    text-align: center;
    margin-bottom: 40px;
}

.checkout-header h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin: 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Vasakul info, paremal vorm */
    gap: 40px;
    align-items: start;
}

/* KOKKUVÕTTE BLOKK */
.summary-box {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--primary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.price-row {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
    font-weight: 900;
    font-size: 1.4rem;
}

.total-amount {
    color: var(--primary);
}

/* VORM MOBIILIS JA ARVUTIS */
.form-group {
    margin-bottom: 20px;
}

.final-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 1rem;
    text-transform: none; /* Et ei oleks ainult suured tähed */
}

.final-form input, 
.final-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
}

.final-form textarea {
    resize: vertical;
}

.final-form input:focus {
    border-color: var(--primary);
    outline: none;
}

/* ERROR BOX */
.error-box {
    text-align: center;
    padding: 60px 20px;
}

/* MOBIILI KOHANDUS */
@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-container {
        padding: 20px;
        margin: 20px 10px;
    }
}
/* --- MATKAAUTO LEHE ERI-STIILID --- */

.car-hero {
    text-align: center;
    padding: 60px 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--primary);
    margin: 10px 0;
    font-weight: 900;
}

.badge {
    background: var(--primary-light);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-image img {
    width: 100%;
    max-width: 1000px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* Funktsioonid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.f-icon { font-size: 2.5rem; margin-bottom: 15px; }

/* Detailid */
.details-section {
    margin: 80px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: start;
}

.details-text h2 { color: var(--primary); font-size: 2.2rem; }

.sleeping-arrangements {
    background: #eef3ed;
    padding: 25px;
    border-radius: 15px;
    margin-top: 25px;
}

.tech-box {
    background: var(--dark);
    color: white;
    padding: 30px;
    border-radius: 20px;
}

.tech-box h3 { color: var(--primary-light); margin-top: 0; }

.warning-card {
    background: #fff0f0;
    border-left: 5px solid var(--error-red);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    color: #a00;
}

/* Matkavarustuse blokk */
.included-section {
    margin: 60px 0;
}

.included-card {
    background: var(--primary);
    color: white;
    padding: 50px;
    border-radius: 30px;
    text-align: center;
}

.included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
    text-align: left;
}

.included-col h4 { margin-bottom: 10px; color: var(--accent); font-size: 1.2rem; }

.car-cta {
    text-align: center;
    margin-bottom: 80px;
}

.car-cta .btn-primary {
    display: inline-block;
    width: auto;
    padding: 20px 60px;
}

/* Mobiil */
@media (max-width: 900px) {
    .hero-content h1 { font-size: 2.5rem; }
    .details-grid { grid-template-columns: 1fr; }
    .included-grid { text-align: center; }
}