/* Hero Section with Car Selector */
.hero-section {
    background: #f5f7fa;
    padding: 30px 0;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 20px;
    align-items: start;
}

/* Car Selector */
.car-selector-wrapper {
    position: sticky;
    top: 100px;
}

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

.selector-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
}

.selector-header i {
    font-size: 24px;
    color: #0066ff;
    flex-shrink: 0;
    margin-top: 2px;
}

.selector-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

.selector-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.selector-step {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    height: 54px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: #e8f0fe;
    color: #0066ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.selector-dropdown {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}

.selector-dropdown:hover {
    border-color: #0066ff;
}

.selector-dropdown:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.selector-dropdown:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.selector-search-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.selector-search-btn {
    background: #0066ff;
    color: #fff;
    border: none;
    padding: 16px 48px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.2);
}

.selector-search-btn:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 255, 0.4);
}

.selector-search-btn:active {
    transform: translateY(0);
}

/* Catalog page adjustments */
.catalog-car-filter-section .selector-step {
    margin-bottom: 0;
}

.catalog-car-filter-section .selector-form {
    gap: 12px;
}

.catalog-car-filter-section .selector-search-btn {
    width: 100%;
    margin-top: 0;
}

.selector-help-link {
    text-align: center;
    color: #0066ff;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    display: block;
}

.selector-help-link:hover {
    text-decoration: underline;
}

/* Hero Slider */
.hero-slider-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-slider {
    height: 500px;
}

.swiper-slide {
    height: 500px;
}

.slide-content {
    height: 100%;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.slide-text {
    max-width: 500px;
    z-index: 2;
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.slide-badge i {
    font-size: 20px;
}

.slide-badge span {
    font-size: 18px;
}

.slide-text h2 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.slide-text p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 30px 0;
}

.slide-cta-btn {
    background: #fff;
    color: #ff6b00;
    border: none;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.slide-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.slide-image {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
}

.brand-wheel {
    width: 300px;
    height: 300px;
    position: relative;
    animation: rotate 20s linear infinite;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.brand-icons {
    position: relative;
    width: 100%;
    height: 100%;
}

.brand-icon {
    position: absolute;
    font-size: 40px;
    background: rgba(255, 255, 255, 0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.brand-icon:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.brand-icon:nth-child(2) {
    top: 25%;
    right: 10%;
}

.brand-icon:nth-child(3) {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.brand-icon:nth-child(4) {
    bottom: 25%;
    right: 10%;
}

.brand-icon:nth-child(5) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.brand-icon:nth-child(6) {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

@keyframes rotate {
    from {
        transform: translateY(-50%) rotate(0deg);
    }

    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
    }

    .car-selector-wrapper {
        position: static;
    }

    .hero-slider {
        height: 400px;
    }

    .swiper-slide {
        height: 400px;
    }

    .slide-content {
        padding: 40px;
    }

    .slide-text h2 {
        font-size: 32px;
    }

    .brand-wheel {
        width: 200px;
        height: 200px;
    }

    .brand-icon {
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 20px 0;
    }

    .car-selector-card {
        padding: 20px;
    }

    .selector-header h3 {
        font-size: 14px;
    }

    .hero-slider {
        height: 350px;
    }

    .swiper-slide {
        height: 350px;
    }

    .slide-content {
        padding: 30px;
        justify-content: center;
    }

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

    .slide-text h2 {
        font-size: 28px;
    }

    .slide-text p {
        font-size: 16px;
    }

    .slide-image {
        display: none;
    }
}

@media (max-width: 480px) {
    .selector-step {
        flex-direction: column;
        align-items: stretch;
    }

    .step-number {
        align-self: flex-start;
    }

    .hero-slider {
        height: 300px;
    }

    .swiper-slide {
        height: 300px;
    }

    .slide-content {
        padding: 20px;
    }

    .slide-text h2 {
        font-size: 22px;
    }

    .slide-cta-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Override Livewire car search form styles when inside hero section */
.selector-form .find-form-section {
    padding: 0 !important;
    margin: 0;
}

.selector-form .find-form-section .container {
    padding: 0;
    max-width: 100%;
}

.selector-form .find-card {
    padding: 0 !important;
    margin: 0;
    box-shadow: none;
    border: none;
    background: transparent;
}

.selector-form .find-card h5 {
    display: none; /* Hide the title in hero section */
}

.selector-form .find-card .custom-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.selector-form .find-card .btn {
    width: 100%;
    margin-top: 10px;
    padding: 14px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
}

.selector-form .find-card .btn-danger {
    background: #0066ff;
    border-color: #0066ff;
}

.selector-form .find-card .btn-danger:hover {
    background: #0052cc;
    border-color: #0052cc;
}