@tailwind base;
@tailwind components;
@tailwind utilities;

/* Enhanced slider styles */
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: theme('colors.primary-gold');
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: theme('colors.primary-gold');
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider::-webkit-slider-track {
    background: #374151;
    height: 8px;
    border-radius: 4px;
    cursor: pointer;
}

.slider::-moz-range-track {
    background: #374151;
    height: 8px;
    border-radius: 4px;
    cursor: pointer;
}

/* Mobile menu animations */
#mobile-menu-btn .close {
    display: none;
}
#mobile-menu-btn.active .close {
    display: flex;
}
#mobile-menu-btn .open {
    display: flex;
}
#mobile-menu-btn.active .open {
    display: none;
}

/* Enhanced FAQ styles */
.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    padding-bottom: 0;
}

.faq-item.active .faq-toggle {
    color: theme('colors.primary-blue');
}

.faq-toggle {
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Swiper custom styles */
.swiper {
    overflow: unset !important;
}

.testimonial-nav-btn {
    @apply w-12 h-12 rounded-full bg-gray-200 flex items-center justify-center text-gray-600 hover:text-primary-blue transition-colors;
}

/* Legacy FAQ styles for backward compatibility */
.faq-content {
    display: none;
    transition: all 0.3s ease-out;
}

.faq-content.expanded {
    display: block;
}

.faq-icon {
    transition: transform 0.3s ease-out;
}

.faq-icon.rotated {
    transform: rotate(180deg);
}

#home {
    background: url("/assets/green-bg-6347ee6a.png") no-repeat center center; 
    background-size: cover;
}

#trust {
    background: url("/assets/green-bg-6347ee6a.png") no-repeat center center;
    background-size: cover;
}

.abslt {
    position: absolute;
    height: 36px;
    width: 2px;
    background: #C4A75D;
    top: -30px;
    left: 47px;
    margin-left: 0 !important;
}

/* Vehicle select loading state */
[data-vehicle-select-target="modelWrapper"].loading::after {
    content: 'Loading...';
    display: block;
    font-size: 0.875rem;
    color: #4b5563;
    margin-top: 0.25rem;
    font-style: italic;
}

[data-vehicle-select-target="modelWrapper"].loading select {
    opacity: 0.7;
    pointer-events: none;
}

.radio-group {
    display: flex;
    gap: 2rem;
}

.radio-option {
    display: flex;
    align-items: center;
}

.radio-option label {
    margin: 0 !important;
    padding: 0 !important;
}

.field_with_errors input {
    @apply border-red-500 focus:ring-red-500 focus:border-red-500;
}
.field_with_errors select {
    @apply border-red-500 focus:ring-red-500 focus:border-red-500;
}
.field_with_errors label {
    @apply text-red-700;
}
