﻿.car-search-form {
    background: transparent;
    padding: 0;
    box-shadow: none;
    color: var(--gray-800, #1e293b);
    margin-top: 2rem;
}

.car-selects-row {
    display: flex;
    background: white;
    border-radius: var(--radius-lg, 0.5rem);
    overflow: hidden;
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1));
    position: relative;
}

.car-selects-row:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1), var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1));
}

.select-group {
    flex: 1;
    position: relative;
    border-right: 1px solid var(--gray-200, #e2e8f0);
}

.select-group:last-child {
    border-right: none;
}

.select-group:has(select:disabled)::before {
  background: var(--gray-300, #cbd5e1);
}

.select-group:hover:not(:has(select:disabled)) {
    background: var(--gray-25, #fafbfc);
}

.select-group::before {
    content: attr(data-step);
    position: absolute;
    top: 1.25rem;
    left: 0.75rem;
    width: 20px;
    height: 20px;
    background: var(--primary-green, #00A651);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.select-group[data-step="1"]::before { content: "1"; }
.select-group[data-step="2"]::before { content: "2"; }
.select-group[data-step="3"]::before { content: "3"; }

.select-group label {
    display: none;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select select {
    width: 100%;
    padding: 1rem 2.5rem 1rem 3rem;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-800, #1e293b);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-height: 60px;
}

.custom-select select:focus {
    background: var(--gray-50, #f8fafc);
}

.custom-select select:disabled {
    background: var(--gray-50, #f8fafc);
    color: var(--gray-400, #94a3b8);
    cursor: not-allowed;
}

.custom-select select option {
    padding: 0.5rem;
    font-weight: normal;
}

.custom-select::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500, #64748b);
    pointer-events: none;
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.custom-select.open::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select select:disabled + .custom-select::after {
    color: var(--gray-300, #cbd5e1);
}

.car-search-btn {
    background: var(--link-blue, #00A651);
    color: white;
    border: none;
    padding: 0 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    min-height: 60px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.car-search-btn:hover:not(:disabled) {
    background: var(--primary-green-dark, #008A43);
}

.car-search-btn:disabled {
    background: var(--gray-400, #94a3b8);
    cursor: not-allowed;
}

.loading-spinner {
    display: none;
    margin: 1rem 0;
    text-align: center;
    color: var(--gray-500, #64748b);
    font-size: 0.875rem;
}

.loading-spinner i {
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}s

.hidden-inputs {
    display: none;
}

.hero {
    background: linear-gradient(135deg, var(--primary-green-darker) 0%, var(--primary-green) 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero h1 {
    color: #fff !important;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: .9;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    background: #fff;
    border-radius: var(--radius-xl);
    padding: .5rem;
    box-shadow: var(--shadow-xl);
    transition: transform .2s ease;
    z-index: 11;
}

.hero-search form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-search input {
    flex: 1;
    padding: 1rem 1.5rem;
    padding-right: 140px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    color: var(--bde-body-text-color);
    width: 100%;
}

.hero-search input:focus {
    outline: none;
}

.hero-search button {
    position: absolute;
    right: .5rem;
    top: 0;
    height: 100%;
    bottom: .5rem;
    background: var(--link-blue);
    color: #fff;
    border: none;
    padding: 0 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.hero-search button:hover {
    background: var(--sky-500);
}

.features {
    padding: 4rem 0;
    background: var(--grey-50);
}

.features-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all .3s;
    border: 1px solid var(--grey-200);
    opacity: 0;
    transform: translateY(20px);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--link-blue), var(--sky-500));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: #fff;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: .5rem;
    color: var(--bde-headings-color);
}

.feature-card p {
    color: var(--grey-600);
}

.partners {
    background: var(--grey-50);
    padding: 2.5rem 1rem;
    margin-top: 2rem;
}

.partners-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.partners-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--grey-700);
}

.partners-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    flex-wrap: wrap;
}

.partner-logo {
    height: 36px;
    width: auto;
    transition: transform 0.2s ease;
}

.partner-logo:hover {
    transform: translateY(-2px);
}

.alert {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: .75rem;
    font-weight: 500;
}

.alert-success {
    background: var(--emerald-100);
    color: var(--emerald-700);
    border: 1px solid var(--primary-green-light);
}

.alert i {
    font-size: 1.25rem;
}

@media (max-width: 1024px) {
    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .car-selects-row {
        flex-direction: column;
    }
    
    .select-group {
        border-right: none;
        border-bottom: 1px solid var(--gray-200, #e2e8f0);
    }
    
    .select-group:last-child {
        border-bottom: none;
    }
    
    .select-group::before {
        top: 0.5rem;
        left: 0.5rem;
    }
    
    .custom-select select {
        padding: 0.875rem 2.25rem 0.875rem 2.5rem;
    }
    
    .car-search-btn {
        border-radius: 0 0 var(--radius-lg, 0.5rem) var(--radius-lg, 0.5rem);
    }
}

@media (max-width: 768px) {
    .car-search-form {
        margin-top: 1rem;
    }
    
    .custom-select select {
        padding: 0.75rem 2rem 0.75rem 2.25rem;
        font-size: 0.9rem;
        min-height: 55px;
    }
    
    .select-group::before {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
        top: 0.5rem;
        left: 0.5rem;
    }
    
    .car-search-btn {
        padding: 0 1.5rem;
        font-size: 0.9rem;
        min-height: 55px;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: .75rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-search {
        max-width: none;
        margin: 0 1rem;
    }

    .hero-search input {
        padding: .875rem 1rem;
        padding-right: 120px;
        font-size: 1rem;
    }

    .hero-search button {
        padding: 0 1.5rem;
        min-width: 100px;
        font-size: .875rem;
    }

    .features {
        padding: 3rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .partners-logos {
        gap: 1.5rem;
    }

    .partner-logo {
        height: 32px;
    }

    .alert {
        margin: 1rem;
        padding: .875rem 1rem;
        font-size: .875rem;
    }
}

@media (max-width: 480px) {
    .custom-select select {
        padding: 0.625rem 1.75rem 0.625rem 2rem;
        font-size: 0.875rem;
        min-height: 50px;
    }
    
    .select-group::before {
        width: 16px;
        height: 16px;
        font-size: 0.65rem;
        top: 1.05rem;
        left: 0.375rem;
    }
    
    .custom-select::after {
        right: 0.5rem;
        font-size: 0.75rem;
    }
    
    .car-search-btn {
        padding: 0 1.25rem;
        font-size: 0.875rem;
        min-height: 50px;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.1;
    }

    .hero p {
        font-size: .95rem;
        margin-bottom: 1.25rem;
    }

    .hero-search {
        margin: 0 .5rem;
        padding: .375rem;
    }

    .hero-search input {
        padding: .75rem 100px .75rem .875rem;
        font-size: .95rem;
    }

    .hero-search button {
        padding: 0 1rem;
        min-width: 85px;
        font-size: .8rem;
        right: .375rem;
        bottom: .375rem;
    }

    .features {
        padding: 2rem 0;
    }

    .features-content {
        padding: 0 .5rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-card h3 {
        font-size: 1.125rem;
    }

    .feature-card p {
        font-size: .875rem;
    }

    .partners-logos {
        gap: 1rem;
    }

    .partner-logo {
        height: 28px;
    }
}

@media (max-width: 360px) {
    .hero-search input {
        padding-right: 90px;
    }

    .hero-search button {
        min-width: 75px;
        padding: 0 .75rem;
        font-size: .75rem;
    }
}