/* =====================================================
   HOME PAGE STYLES - MODERN CAR RENTAL DESIGN
   ===================================================== */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 500px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0 120px;
    overflow: visible;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>') repeat;
    background-size: 100px 100px;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Search Card */
.search-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 8px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto;
    align-items: center;
}

.search-field {
    position: relative;
    padding: 16px 20px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.search-field:hover {
    background: #f7f7f7;
}

.search-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.search-input {
    border: none;
    outline: none;
    font-size: 14px;
    color: #717171;
    background: transparent;
    width: 100%;
    cursor: pointer;
}

.search-divider {
    width: 1px;
    height: 40px;
    background: #ebebeb;
}

.search-button {
    background: var(--primary-color, #FF5A5F);
    color: white;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.search-button:hover {
    background: var(--primary-hover, #e04e52);
    transform: scale(1.05);
}

.search-button.pulse {
    animation: pulse-btn 0.6s ease-out;
}

@keyframes pulse-btn {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 90, 95, 0.7); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 15px rgba(255, 90, 95, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 90, 95, 0); }
}

/* Search Dropdowns */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 9999;
}

.search-dropdown.show {
    display: block;
}

/* Ensure dropdowns are not cut off */
.search-card {
    overflow: visible !important;
}

.search-form {
    overflow: visible !important;
}

.search-field {
    overflow: visible !important;
}

.location-dropdown {
    min-width: 320px;
    padding: 8px 0;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-title {
    padding: 12px 20px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #717171;
    text-transform: uppercase;
}

.location-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.15s;
}

.location-option:hover {
    background: #f7f7f7;
}

.location-option i {
    color: #717171;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: #ebebeb;
    margin: 8px 0;
}

/* DateTime Dropdown */
.datetime-dropdown {
    padding: 20px;
    min-width: 480px;
}

.datetime-container {
    display: flex;
    gap: 20px;
}

.date-picker {
    flex: 1;
}

.time-picker {
    width: 120px;
}

.time-header {
    font-size: 11px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.time-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

/* Calendar */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.calendar-title {
    font-size: 14px;
    font-weight: 600;
}

.calendar-nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ebebeb;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.calendar-nav-btn:hover:not(.disabled) {
    border-color: #222;
}

.calendar-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 8px;
}

.calendar-weekdays div {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #717171;
    padding: 4px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s;
}

.calendar-day:hover:not(.disabled):not(.empty) {
    background: #f7f7f7;
}

.calendar-day.selected {
    background: #222;
    color: white;
}

.calendar-day.disabled {
    color: #ddd;
    cursor: not-allowed;
}

/* Section Styles */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-gray {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-header.text-center {
    display: block;
    text-align: center;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.75rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
    max-width: 600px;
}

.section-header.text-center .section-subtitle {
    margin: 0 auto;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color, #FF5A5F);
    color: var(--primary-color, #FF5A5F);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--primary-color, #FF5A5F);
    color: white;
}

/* Features Section */
.features-section {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f1f5f9;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
    border-color: transparent;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color, #FF5A5F) 0%, var(--primary-light, #ff8a8d) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-3deg);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.75rem;
}

.feature-description {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    line-height: 1.7;
}

/* Featured Vehicles */
.featured-vehicles-section {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.vehicle-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.vehicle-image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.vehicle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-image-placeholder {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-image-placeholder i {
    font-size: 3rem;
    color: #94a3b8;
}

.vehicle-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--primary-color, #FF5A5F) 0%, var(--primary-light, #ff8a8d) 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.vehicle-info {
    padding: 1.25rem;
}

.vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.vehicle-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.vehicle-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #f59e0b;
    font-size: 0.875rem;
    font-weight: 600;
}

.vehicle-specs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #64748b;
}

.vehicle-specs span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.vehicle-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.vehicle-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color, #FF5A5F);
}

.price-period {
    font-size: 0.85rem;
    color: #64748b;
}

.btn-book {
    background: linear-gradient(135deg, var(--primary-color, #FF5A5F) 0%, var(--primary-light, #ff8a8d) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* How It Works */
.how-it-works-section {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 240px;
    max-width: 300px;
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}

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

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color, #FF5A5F) 0%, var(--primary-light, #ff8a8d) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255,90,95,0.4);
}

.step-icon {
    width: 90px;
    height: 90px;
    margin: 0.5rem auto 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.step-card:hover .step-icon {
    transform: scale(1.1);
}

.step-icon i {
    font-size: 2.25rem;
    color: var(--primary-color, #FF5A5F);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.75rem;
}

.step-description {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    line-height: 1.7;
}

.step-connector {
    display: flex;
    align-items: center;
    color: #cbd5e1;
    font-size: 1.5rem;
    padding-top: 5rem;
}

@media (max-width: 900px) {
    .step-connector {
        display: none;
    }
}

/* Vehicle Types / Categories */
.vehicle-types-section {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    padding: 2rem 1.25rem;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #FF5A5F), var(--primary-light, #ff8a8d));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.category-card:hover {
    border-color: var(--primary-color, #FF5A5F);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255,90,95,0.15);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--primary-color, #FF5A5F) 0%, var(--primary-light, #ff8a8d) 100%);
}

.category-card:hover .category-icon i {
    color: white;
}

.category-icon i {
    font-size: 1.75rem;
    color: var(--primary-color, #FF5A5F);
    transition: color 0.3s;
}

.category-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.5rem;
}

.category-count {
    font-size: 0.85rem;
    color: #64748b;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color, #FF5A5F), var(--primary-hover, #e04e52));
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    color: white;
}

.stat-icon {
    margin-bottom: 12px;
}

.stat-icon i {
    font-size: 32px;
    opacity: 0.9;
}

.stat-value {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 4px;
}

/* Testimonials - Slider Style */
.testimonials-section {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.testimonials-slider {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    min-height: 320px;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
    background: white;
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
    pointer-events: none;
}

.testimonial-card.active {
    opacity: 1;
    position: relative;
    transform: translateY(0);
    pointer-events: auto;
}

.testimonial-rating {
    margin-bottom: 1.25rem;
}

.testimonial-rating i {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin: 0 0.1rem;
}

.testimonial-rating i.active {
    color: #f59e0b;
}

.testimonial-content {
    font-size: 1.1rem;
    color: #374151;
    line-height: 1.8;
    margin: 0 0 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar-placeholder i {
    font-size: 1.25rem;
    color: #94a3b8;
}

.author-info {
    text-align: left;
}

.author-name {
    display: block;
    font-weight: 600;
    color: #1a202c;
}

.author-role {
    font-size: 0.85rem;
    color: #64748b;
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-dot.active {
    background: var(--primary-color, #FF5A5F);
    transform: scale(1.2);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color, #FF5A5F) 0%, var(--primary-light, #ff8a8d) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    pointer-events: none;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin: 0 0 1rem;
    letter-spacing: -0.5px;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin: 0 0 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2.5rem;
    background: white;
    color: var(--primary-color, #FF5A5F);
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.cta-button i {
    transition: transform 0.3s;
}

.cta-button:hover i {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 36px;
    }

    .search-form {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .search-divider {
        display: none;
    }

    .search-button {
        width: 100%;
        margin: 8px 0 0 0;
        border-radius: 12px;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-header.text-center {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 100px;
        min-height: auto;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .vehicles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .step-card {
        max-width: 100%;
        width: 100%;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-card {
        padding: 1.5rem 1rem;
    }

    .testimonials-slider {
        min-height: 350px;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .testimonial-content {
        font-size: 1rem;
    }

    .cta-section {
        padding: 3.5rem 0;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* Search form mobile styles are in search-form.css */
}
