/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #4a5568;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.625rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    outline: none;
}

.btn-outline {
    background-color: white;
    color: #4a5568;
    border: 1px solid white;
}

.btn-outline:hover {
    background-color: #f7fafc;
}

.btn-danger-outline {
    background-color: white;
    color: #e53e3e;
    border: 1px solid #e53e3e;
}

.btn-danger-outline:hover {
    background-color: #fff5f5;
    color: #c53030;
    border-color: #c53030;
}

.btn-primary {
    background-color: #c53030;
    color: white;
}

.btn-primary:hover {
    background-color: #9b2c2c;
}

.btn-search {
    background-color: #4a5568;
    color: white;
    padding: 0.75rem 2rem;
}

.btn-search:hover {
    background-color: #2d3748;
}

.btn-details {
    background-color: #c53030;
    color: white;
    width: 100%;
    padding: 0.625rem;
}

.btn-details:hover {
    background-color: #9b2c2c;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0 3rem;
    color: white;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tab-btn.active {
    background-color: white;
    color: #667eea;
    border-color: white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.tab-icon {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

.tab-btn.submenu-open .dropdown-icon {
    transform: rotate(180deg);
}

/* Submenu Styles */
/* Submenu styles removed - using simple buttons now */

/* Advanced Search Filters */
.advanced-search {
    margin-top: -2rem;
    padding: 0 0 3rem;
}

/* Progressive Filter Steps */
.filter-step-hidden {
    display: none;
}

.filter-step-visible {
    display: block;
    animation: slideInFade 0.5s ease-out;
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateY(-15px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 2000px;
    }
}

/* Ensure filter sections have proper spacing during animation */
.filter-section {
    overflow: visible;
}

.filter-section.filter-step-visible {
    margin-bottom: 2rem;
}

.filters-container {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.filter-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.filter-section:last-of-type {
    border-bottom: none;
}

.filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Highlight for newly revealed sections */
.filter-step-visible.filter-section {
    position: relative;
    padding-left: 1rem;
}

.filter-step-visible.filter-section::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 0;
    color: #667eea;
    font-size: 1rem;
    animation: pulse 1.5s ease-in-out 3;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Filter Buttons (Body Type) */
.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1.25rem;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #4a5568;
    font-size: 0.8125rem;
}

.filter-btn:hover {
    border-color: #cbd5e0;
    background: #edf2f7;
}

.filter-btn.active {
    border-color: #667eea;
    background: #f0f4ff;
    color: #667eea;
}

.filter-btn svg {
    opacity: 0.7;
    width: 32px;
    height: 24px;
}

.filter-btn.active svg {
    opacity: 1;
}

/* Filter Chips (Location, Make) */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 2rem;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #4a5568;
}

.chip-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.chip-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.chip-btn.more-btn {
    background: #f7fafc;
    border-color: #e2e8f0;
    font-weight: 500;
}

.chip-btn.more-btn:hover {
    background: #edf2f7;
}

/* Filter Tabs (Condition) */
.filter-tabs {
    display: flex;
    gap: 0.375rem;
    background: #f7fafc;
    padding: 0.25rem;
    border-radius: 0.625rem;
}

.tab-filter {
    flex: 1;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #4a5568;
}

.tab-filter:hover {
    background: #edf2f7;
}

.tab-filter.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Filter Checkboxes */
.filter-checkboxes {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.checkbox-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.8125rem;
    color: #4a5568;
}

.checkbox-filter input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 0.25rem;
    border: 2px solid #e2e8f0;
    cursor: pointer;
}

.checkbox-filter input[type="checkbox"]:checked {
    accent-color: #667eea;
}

/* Advanced Toggle Button */
.advanced-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #f0f4ff;
    border: 1px solid #c7d2fe;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #667eea;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.advanced-toggle:hover {
    background: #e0e7ff;
    border-color: #a5b4fc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.advanced-toggle svg {
    flex-shrink: 0;
}

/* Advanced Panel */
.advanced-panel {
    display: none;
    padding: 1.25rem;
    background: #f8f9fc;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    margin-bottom: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.advanced-panel.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.advanced-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem 0.75rem;
    margin-bottom: 1.25rem;
    width: 100%;
}

.advanced-item {
    width: 100%;
    min-width: 0;
}

.advanced-item label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.range-inputs input {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.625rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    background: white;
    transition: all 0.2s;
    box-sizing: border-box;
}

.range-inputs input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.range-inputs input::placeholder {
    color: #9ca3af;
}

.range-inputs span {
    color: #9ca3af;
    font-weight: 500;
}

.filter-select {
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    color: #374151;
    box-sizing: border-box;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-select option {
    padding: 0.5rem;
}

.filter-input {
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    background: white;
    transition: all 0.2s;
    box-sizing: border-box;
}

.filter-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-input::placeholder {
    color: #9ca3af;
}

/* Financing Filters */
.financing-filters {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 0.25rem;
    width: 100%;
}

.finance-checkbox {
    font-weight: 600;
    color: #374151;
    font-size: 0.8125rem;
}

.finance-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 0.25rem;
    border: 2px solid #d1d5db;
    cursor: pointer;
}

.finance-checkbox input[type="checkbox"]:checked {
    accent-color: #667eea;
}

.financing-options {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    width: 100%;
    box-sizing: border-box;
}

.financing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    width: 100%;
}

.financing-item {
    width: 100%;
    min-width: 0;
}

.financing-item label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search Actions */
.search-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
}

.btn-search-large {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-search-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-reset {
    padding: 0.75rem 1.5rem;
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

/* Ad Banner Styles */
.ad-banner-container {
    padding: 1rem 0;
    background-color: #f8f9fa;
}

.ad-banner-container.mid-ad {
    background-color: transparent;
    padding: 0.75rem 0;
}

.ad-banner-container.bottom-ad {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    margin-top: 2rem;
}

.ad-banner {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.ad-banner:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.ad-banner.ad-leaderboard {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-banner.ad-small-banner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    border: 1px solid #e2e8f0;
}

.ad-banner.ad-rectangle {
    min-height: 270px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-banner.ad-skyscraper {
    width: 260px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
}

.ad-banner.ad-skyscraper:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.ad-banner.ad-skyscraper .ad-icon {
    width: 50px;
    height: 50px;
}

.ad-banner.ad-skyscraper .ad-placeholder p {
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

.ad-banner.ad-inline {
    min-height: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.ad-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ad-label {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    text-align: center;
}

.ad-icon {
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.ad-placeholder p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Featured Cars */
.featured-cars {
    padding: 3rem 0;
}

.featured-cars .container {
    max-width: 1200px;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #2d3748;
}

/* Featured Cars Wrapper with Sidebar */
.featured-cars-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
    align-items: start;
}

/* Right Sticky Sidebar Ad */
.ad-sidebar-sticky {
    position: sticky;
    top: 20px;
    align-self: start;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    grid-auto-rows: 1fr;
}

/* Inline Ad Card */
.car-card.ad-card {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.car-card.ad-card:hover {
    transform: none;
}

.car-card.ad-card .ad-banner {
    height: 100%;
}

/* Car Card */
.car-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.car-favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    z-index: 10;
}

.car-favorite-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.car-favorite-btn svg {
    color: #667eea;
    transition: all 0.2s ease;
}

.car-favorite-btn.active svg {
    fill: #667eea;
}

.car-favorite-btn:active {
    transform: scale(0.95);
}

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

.car-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 1.5rem;
    font-weight: 300;
}

.car-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.car-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    min-height: 2.25rem;
    display: flex;
    align-items: center;
}

.car-price {
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 1rem;
    flex: 1;
}

/* Footer */
.footer {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #cbd5e0;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
}

.social-link:hover {
    background-color: #667eea;
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-link {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #cbd5e0;
}

.contact-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    font-size: 0.875rem;
    color: #a0aec0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-link {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-bottom-link:hover {
    color: white;
}

.separator {
    color: #4a5568;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    border-radius: 1rem;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    font-weight: 300;
}

.close-modal:hover {
    color: #2d3748;
}

/* Auth Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    color: #718096;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
    color: #cbd5e0;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4a5568;
    cursor: pointer;
}

.form-checkbox {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.forgot-password {
    font-size: 0.875rem;
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #764ba2;
    text-decoration: underline;
}

.terms-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
}

.terms-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.btn-auth {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.auth-switch p {
    color: #718096;
    font-size: 0.9rem;
}

.auth-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Advanced Search Responsive */
@media (max-width: 1024px) {
    .advanced-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .financing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .advanced-grid {
        grid-template-columns: 1fr;
    }
    
    .advanced-panel {
        padding: 1rem;
    }
    
    .financing-grid {
        grid-template-columns: 1fr;
    }
    
    .financing-options {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .filters-container {
        padding: 1rem;
    }

    .filter-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.75rem;
    }

    .filter-chips {
        gap: 0.375rem;
    }

    .chip-btn {
        padding: 0.375rem 0.875rem;
        font-size: 0.75rem;
    }

    .filter-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }

    .advanced-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .search-actions {
        flex-direction: column;
    }

    .btn-search-large,
    .btn-reset {
        width: 100%;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .category-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-item {
        width: 100%;
    }

    .tab-btn {
        justify-content: center;
        width: 100%;
    }

    .submenu {
        left: 0;
        right: 0;
        transform: none;
        min-width: 100%;
    }

    .submenu::before {
        left: 50%;
    }

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

    .featured-cars-layout {
        grid-template-columns: 1fr;
    }

    .featured-cars-wrapper {
        grid-template-columns: 1fr;
    }

    .ad-sidebar-sticky {
        position: static;
        order: -1;
        margin-bottom: 1.5rem;
    }

    .ad-banner.ad-skyscraper {
        width: 100%;
        max-width: 300px;
        height: 250px;
        margin: 0 auto;
    }

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

    .nav-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .ad-banner.ad-leaderboard {
        min-height: 80px;
    }

    .ad-banner.ad-small-banner {
        min-height: 60px;
    }

    .ad-placeholder p {
        font-size: 0.75rem;
    }

    .car-card.ad-card {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-buttons {
        flex-direction: row;
        width: 100%;
    }

    .btn {
        flex: 1;
    }

    .cars-grid {
        grid-template-columns: 1fr;
    }

    .featured-cars-wrapper {
        grid-template-columns: 1fr;
    }

    .ad-sidebar-sticky {
        position: static;
        order: -1;
        margin-bottom: 1rem;
    }

    .ad-banner-container {
        padding: 0.75rem 0;
    }

    .ad-banner.ad-leaderboard {
        min-height: 60px;
    }

    .ad-banner.ad-small-banner {
        min-height: 50px;
    }

    .ad-banner.ad-rectangle {
        min-height: 200px;
    }

    .ad-banner.ad-skyscraper {
        width: 100%;
        max-width: 300px;
        height: 250px;
        margin: 0 auto;
    }

    .ad-icon {
        width: 30px;
        height: 30px;
    }

    .ad-placeholder p {
        font-size: 0.7rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .social-links {
        justify-content: center;
    }

    .tab-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .submenu-item {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }

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

    .close-modal {
        right: 1rem;
        top: 1rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* Car Details Modal */
.car-details-modal {
    max-width: 1200px;
    max-height: 95vh;
    overflow-y: auto;
    padding: 0;
}

.car-details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem;
}

/* Car Gallery */
.car-details-gallery {
    position: sticky;
    top: 0;
    align-self: start;
}

.main-car-image {
    width: 100%;
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #f7fafc;
}

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

.car-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.car-thumbnail {
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.car-thumbnail:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

.car-thumbnail.active {
    border-color: #667eea;
}

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

/* Car Details Content */
.car-details-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.car-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.car-details-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
}

.car-details-subtitle {
    font-size: 1rem;
    color: #718096;
    margin: 0;
}

.car-details-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
}

/* Specs Grid */
.car-details-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 0.75rem;
}

.spec-item svg {
    color: #667eea;
    flex-shrink: 0;
}

.spec-item div {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 1rem;
    color: #2d3748;
    font-weight: 600;
    text-transform: capitalize;
}

/* Sections */
.car-details-section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.car-details-section:last-of-type {
    border-bottom: none;
}

.car-details-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.car-details-section p {
    color: #4a5568;
    line-height: 1.6;
}

/* Car Info Grid */
.car-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f7fafc;
    border-radius: 0.5rem;
}

.info-label {
    color: #718096;
    font-weight: 500;
}

.info-value {
    color: #2d3748;
    font-weight: 600;
    text-transform: capitalize;
}

/* Features */
.car-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.feature-tag {
    padding: 0.5rem 1rem;
    background: #f0f4ff;
    color: #667eea;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Seller Info */
.seller-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.seller-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f7fafc;
    border-radius: 0.5rem;
}

.seller-info-item svg {
    color: #667eea;
    flex-shrink: 0;
}

/* Actions */
.car-details-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
}

.btn-large {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 968px) {
    .car-details-container {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }

    .car-details-gallery {
        position: static;
    }

    .main-car-image {
        height: 300px;
    }

    .car-details-price {
        font-size: 2rem;
    }

    .car-details-specs {
        grid-template-columns: 1fr;
    }

    .car-info-grid {
        grid-template-columns: 1fr;
    }

    .car-details-actions {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .car-details-container {
        padding: 1.5rem;
    }

    .car-details-title {
        font-size: 1.5rem;
    }

    .car-details-price {
        font-size: 1.75rem;
    }

    .car-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Contact Seller Modal */
.contact-modal {
    max-width: 600px;
    padding: 2.5rem;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-option-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.contact-option-btn:hover {
    border-color: #667eea;
    background: #f7fafc;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.15);
}

.contact-option-btn svg {
    color: #667eea;
}

.contact-option-btn h3 {
    font-size: 1.25rem;
    color: #2d3748;
    margin: 0;
    font-weight: 600;
}

.contact-option-btn p {
    color: #718096;
    margin: 0;
    font-size: 0.875rem;
}

.phone-number {
    font-size: 1.125rem;
    font-weight: 600;
    color: #667eea;
    padding: 0.5rem 1rem;
    background: #f0f4ff;
    border-radius: 0.5rem;
}

/* Message Form Modal */
.message-form-modal {
    max-width: 600px;
    padding: 2.5rem;
}

.message-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

@media (max-width: 640px) {
    .contact-options {
        grid-template-columns: 1fr;
    }

    .contact-modal,
    .message-form-modal {
        padding: 2rem 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }
}

/* Financing Section Styles */

/* Financing Modal */
.financing-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.financing-modal.active {
    display: block;
}

.financing-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.financing-modal-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 1400px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.4s ease;
    display: flex;
    flex-direction: column;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.financing-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.financing-modal-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.close-financing-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-financing-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.financing-modal-body {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 2rem;
}

/* Financing Hero Section */
.financing-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 0;
    color: white;
    text-align: center;
}

.financing-hero-content {
    padding: 1rem 0;
}

.financing-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.financing-main-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Loan Calculator Section */
.loan-calculator-section {
    padding: 3rem 0;
    background-color: #f5f5f5;
}

.calculator-card {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a5568;
}

.input-with-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 1rem;
    color: #718096;
    font-weight: 600;
}

.input-suffix {
    position: absolute;
    right: 1rem;
    color: #718096;
    font-weight: 600;
}

.calc-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    outline: none;
}

.input-with-prefix .calc-input {
    padding-left: 2rem;
}

.calc-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.range-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    transition: all 0.2s;
}

.range-slider::-webkit-slider-thumb:hover {
    background: #764ba2;
    transform: scale(1.1);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.range-slider::-moz-range-thumb:hover {
    background: #764ba2;
    transform: scale(1.1);
}

.calculator-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    color: white;
}

.result-card h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.result-amount {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
}

.result-details {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-label {
    color: #4a5568;
    font-size: 0.95rem;
}

.result-value {
    color: #2d3748;
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-apply {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Financing Options */
.financing-options {
    padding: 4rem 0;
}

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

.financing-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.financing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.financing-card.featured {
    border: 3px solid #667eea;
    transform: scale(1.05);
}

.financing-card.featured:hover {
    transform: scale(1.08) translateY(-8px);
}

.card-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #48bb78;
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card-badge.special {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.card-icon {
    color: #667eea;
    margin-bottom: 1rem;
}

.card-header h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin: 0;
}

.card-rate {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 0.75rem;
}

.rate-from,
.rate-apr {
    display: block;
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.25rem;
}

.rate-value {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex-grow: 1;
}

.card-features li {
    padding: 0.75rem 0;
    color: #4a5568;
    border-bottom: 1px solid #e2e8f0;
}

.card-features li:last-child {
    border-bottom: none;
}

.btn-card {
    width: 100%;
    padding: 0.875rem;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-card:hover {
    background: #667eea;
    color: white;
}

.btn-card.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.btn-card.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Benefits Section */
.benefits-section {
    padding: 4rem 0;
    background: #f7fafc;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.benefit-card h3 {
    font-size: 1.25rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: #718096;
    line-height: 1.6;
}

/* Application Section */
.application-section {
    padding: 4rem 0;
}

.application-card {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.application-form {
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: #f7fafc;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    border-left: 4px solid #667eea;
}

.faq-item h3 {
    color: #2d3748;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.faq-item p {
    color: #718096;
    line-height: 1.6;
}

/* Financing Responsive Styles */
@media (max-width: 768px) {
    .financing-modal-content {
        max-width: 100%;
    }

    .financing-modal-header {
        padding: 1.5rem 1.5rem;
    }

    .financing-modal-header h2 {
        font-size: 1.5rem;
    }

    .close-financing-modal {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .financing-main-title {
        font-size: 2rem;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .result-amount {
        font-size: 2.5rem;
    }

    .financing-grid {
        grid-template-columns: 1fr;
    }

    .financing-card.featured {
        transform: scale(1);
    }

    .financing-card.featured:hover {
        transform: translateY(-8px);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .financing-section {
        padding: 2rem 0;
    }

    .financing-main-title {
        font-size: 1.75rem;
    }

    .financing-main-subtitle {
        font-size: 1rem;
    }

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

    .result-card {
        padding: 1.5rem;
    }

    .result-amount {
        font-size: 2rem;
    }
}
