/**
 * Sparks Fly - Car Rental Page Styles
 * Custom CSS for the car rental page with improved alignments
 */

/* General Section Styles */
.section {
    padding: 60px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 35px;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #040b11;
}

.section-subtitle {
    font-size: 18px;
    line-height: 1.5;
}

.section.accent {
    background-color: #1B1F3B;
    color: #fff;
}

.section.section--blockbg {
    position: relative;
}

.section.section--blockbg .block {
    background: #ffcd29;
    height: 100%;
    width: 70%;
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
}

.text-white {
    color: #fff;
}

.car-hero {
    padding: 0;
    background-color: #ffcd29;
    overflow: hidden; 
}

.car-hero_title {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #040b11;
}

.car-hero_text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.car-hero_image {
    /* border-radius: 8px; */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.car-hero_image img {
    width: 100%;
    height: auto;
    display: block;
}

.car-search-box {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-family: Mulish, sans-serif;
    font-weight: 600;
    font-size: 16px;
}

.form-control {
    width: 100%;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 16px;
    color: #2c3c4a;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #1B1F3B;
    outline: none;
}

/* Car Fleet Section */
.car-fleet {
    padding: 60px 0;
}

.car-filter {
    display: inline-block;
}

.car-grid {
    margin: 0 -15px;
}

.car-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.car-card_image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.car-card_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-card_tag {
    position: absolute;
    top: 15px;
    right: 0;
    background-color: #1B1F3B;
    color: #fff;
    padding: 8px 15px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 4px 0 0 4px;
}

.car-card_content {
    padding: 20px;
}

.car-card_title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #040b11;
}

.car-card_specs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.car-card_spec {
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 10px;
    font-size: 14px;
}

.car-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    color: #1B1F3B;
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
}

.car-icon-users {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231B1F3B"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
}

.car-icon-gear {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231B1F3B"><path d="M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"/></svg>');
}

.car-icon-fuel {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231B1F3B"><path d="M19.77 7.23l.01-.01-3.72-3.72L15 4.56l2.11 2.11c-.94.36-1.61 1.26-1.61 2.33 0 1.38 1.12 2.5 2.5 2.5.36 0 .69-.08 1-.21v7.21c0 .55-.45 1-1 1s-1-.45-1-1V14c0-1.1-.9-2-2-2h-1V5c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v16h10v-7.5h1.5v5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V9c0-.69-.28-1.32-.73-1.77zM12 10H6V5h6v5zm6 0c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"/></svg>');
}

.car-icon-ac {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231B1F3B"><path d="M22 11h-4.17l3.24-3.24-1.41-1.42L15 11h-2V9l4.66-4.66-1.42-1.41L13 6.17V2h-2v4.17L7.76 2.93 6.34 4.34 11 9v2H9L4.34 6.34 2.93 7.76 6.17 11H2v2h4.17l-3.24 3.24 1.41 1.42L9 13h2v2l-4.66 4.66 1.42 1.41L11 17.83V22h2v-4.17l3.24 3.24 1.42-1.41L13 15v-2h2l4.66 4.66 1.41-1.42L17.83 13H22z"/></svg>');
}

.btn {
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 8px;
    font-family: Mulish, sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: none;
}

.theme-element {
    background: #b6b8c7;
    color: #1B1F3B;
}

.theme-element--accent {
    background: #1B1F3B;
    color: #fff;
}

.theme-element--light {
    background: #fff;
    color: #1B1F3B;
}

.btn:hover {
    transform: scale(1.05);
}

/* Car Features Section */
.car-features {
    padding: 60px 0;
    background-color: #1B1F3B;
    color: #fff;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    height: 100%;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card_icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #ffcd29;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    font-size: 30px;
    color: #1B1F3B;
}

.feature-card_title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card_text {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* Feature Icons */
.feature-icon-insurance {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231B1F3B"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/></svg>');
    width: 40px;
    height: 40px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
}

.feature-icon-support {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231B1F3B"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8 0-4.41 3.59-8 8-8s8 3.59 8 8c0 4.41-3.59 8-8 8zm-1-14h2v6h-2zm0 8h2v2h-2z"/></svg>');
    width: 40px;
    height: 40px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
}

.feature-icon-pricing {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231B1F3B"><path d="M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4z"/></svg>');
    width: 40px;
    height: 40px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Rental Process Section */
.rental-process {
    padding: 60px 0;
}

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

.process-card:hover {
    transform: translateY(-5px);
}

.process-card_number {
    width: 50px;
    height: 50px;
    background-color: #1B1F3B;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto 20px;
    font-family: Mulish, sans-serif;
}

.process-card_title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #040b11;
}

.process-card_text {
    font-size: 16px;
    line-height: 1.6;
    color: #2c3c4a;
}

/* Testimonials Section */
.testimonials {
    padding: 60px 0;
    position: relative;
}

.testimonial-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card_rating {
    margin-bottom: 15px;
    color: #f7aa00;
}

.testimonial-card_rating .icon {
    font-size: 18px;
    margin-right: 3px;
}

.testimonial-card_text {
    font-size: 16px;
    line-height: 1.6;
    color: #2c3c4a;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-card_author {
    display: flex;
    align-items: center;
}

.testimonial-card_author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.testimonial-card_author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card_author-name {
    font-size: 16px;
    margin-bottom: 5px;
    color: #040b11;
}

.testimonial-card_author-car {
    font-size: 14px;
    color: #808385;
}

/* FAQ Section */
.faq {
    padding: 60px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-item_question {
    padding: 20px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item_question h3 {
    margin: 0;
    font-size: 18px;
    color: #040b11;
    font-weight: 600;
    font-family: Mulish, sans-serif;
}

.faq-item_toggle {
    width: 24px;
    height: 24px;
    position: relative;
}

.faq-item_toggle:before,
.faq-item_toggle:after {
    content: "";
    position: absolute;
    background-color: #1B1F3B;
    transition: transform 0.3s ease;
}

.faq-item_toggle:before {
    top: 11px;
    left: 0;
    width: 24px;
    height: 2px;
}

.faq-item_toggle:after {
    top: 0;
    left: 11px;
    width: 2px;
    height: 24px;
}

.faq-item.active .faq-item_toggle:after {
    transform: rotate(90deg);
}

.faq-item_answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.faq-item.active .faq-item_answer {
    max-height: 500px;
    padding-bottom: 20px;
}

.faq-item_answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #2c3c4a;
}

/* CTA Section */
.cta {
    padding: 60px 0;
    background-color: #1B1F3B;
    color: #fff;
}

/* Booking Popup */
.car-booking-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 31, 59, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.car-booking-popup.visible {
    display: flex;
}

.car-booking-popup_content {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.car-booking-popup_close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 22px;
    color: #1B1F3B;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.car-booking-popup_close:hover {
    transform: rotate(90deg);
}

.car-booking-popup_title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #040b11;
    font-family: Mulish, sans-serif;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: Mulish, sans-serif;
    font-weight: 600;
    font-size: 16px;
}

.form-group input {
    width: 100%;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #1B1F3B;
    outline: none;
}

.checkbox-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.car-booking-submit-btn {
    width: 100%;
    height: 50px;
    background-color: #1B1F3B;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-family: Mulish, sans-serif;
}

.car-booking-submit-btn:hover {
    background-color: #2a2f54;
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .car-hero {
        padding: 60px 0;
    }
    
    .car-hero_title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .car-hero_image {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 40px 0;
    }
    
    .car-hero {
        padding: 40px 0;
    }
    
    .car-hero_title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .feature-card, 
    .process-card, 
    .testimonial-card {
        margin-bottom: 20px;
    }
    
    .car-booking-popup_content {
        padding: 20px;
    }
}

@media (max-width: 575px) {
    .car-hero_title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .car-search-box {
        padding: 15px;
    }
    
    .faq-item_question h3 {
        font-size: 16px;
    }
}

/* Animation Styles */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* Additional utility classes */
.w-100 {
    width: 100%;
}

.mt-3 {
    margin-top: 15px;
}

.mt-4 {
    margin-top: 20px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-3 {
    margin-bottom: 15px;
}

.mb-4 {
    margin-bottom: 20px;
}

.mb-5 {
    margin-bottom: 30px;
}

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

.text-lg-end {
    text-align: right;
}

.d-inline-block {
    display: inline-block;
}

.w-auto {
    width: auto;
}