:root {
    /* Premium Color Palette */
    --primary-color: #3b82f6;
    /* Electric Blue */
    --primary-hover: #2563eb;
    --secondary-color: #0f172a;
    /* Deep Midnight Blue */
    --accent-color: #f59e0b;
    /* Gold/Amber */
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-color: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;

    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.5);

    /* Radius */
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background: #f8fafc;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

/* Removed the pattern overlay that looked like missing image */

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

/* Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 3.5rem;
    text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #3b82f6 50%, #0f172a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* Layout */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

main {
    flex: 1;
}

main>section {
    margin-bottom: 6rem;
}

/* Remove margin from the last section to avoid extra space before footer */
main>section:last-child {
    margin-bottom: 0;
}

/* Components placeholders */
#header {
    background: var(--surface-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}

#header nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

/* Mobile header adjustments: Stack elements vertically */
@media (max-width: 768px) {

    #header nav,
    #header .btn-primary {
        display: none;
    }

    #header .container {
        justify-content: center;
        padding: 1rem !important;
    }
}

#hero {
    color: white;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('imagesauto/background-hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 8rem 0;
    position: relative;
    text-align: center;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(29, 78, 216, 0.05) 100%);
    pointer-events: none;
}

#hero .container {
    position: relative;
    z-index: 1;
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

#hero p {
    font-size: 1.25rem;
    color: #e2e8f0;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

/* Grid for cars */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

@media (min-width: 1024px) {
    .car-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.car-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
}

.car-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(147, 197, 253, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.car-card:hover::before {
    opacity: 1;
}

.car-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.car-card-image {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.car-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.car-card:hover .car-card-image::after {
    opacity: 1;
}

.car-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.car-card:hover .car-card-image img {
    transform: scale(1.1);
}

.car-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.car-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.car-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.car-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.car-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.car-description {
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    flex-grow: 1;
}

/* Responsive Design - Mobile First */

/* Tablet styles (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* Hero section */
    #hero {
        padding: 4rem 0;
    }

    #hero h1 {
        font-size: 2.5rem !important;
    }

    #hero p {
        font-size: 1rem;
    }

    /* Car grid - 2 columns on tablet */
    .car-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Reduce section spacing */
    main>section {
        margin-bottom: 4rem;
    }

    /* Buttons */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Mobile styles (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Hero section */
    #hero {
        padding: 3rem 0;
    }

    #hero h1 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }

    #hero p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* Car grid - 1 column on mobile */
    .car-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .car-card {
        margin-bottom: 0;
    }

    .car-card-content {
        padding: 1.25rem;
    }

    .car-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .car-title {
        font-size: 1.1rem;
    }

    .car-price {
        font-size: 1.1rem;
    }

    .car-meta {
        font-size: 0.85rem;
    }

    .car-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    /* Reduce section spacing on mobile */
    main>section {
        margin-bottom: 3rem;
    }

    /* Buttons full width on mobile */
    .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    /* Header adjustments */
    #header .container {
        flex-wrap: wrap;
    }
}

/* Extra small devices (360px and below) */
@media (max-width: 360px) {
    #hero h1 {
        font-size: 1.5rem !important;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .car-title {
        font-size: 1rem;
    }

    .car-price {
        font-size: 1rem;
    }
}

.car-card-content .btn {
    width: 100%;
    margin-top: auto;
}

/* Footer mobile fixes */
@media (max-width: 480px) {
    #footer ul {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    #footer ul li {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    #footer ul li a {
        word-break: break-all;
        overflow-wrap: break-word;
        display: inline-block;
        max-width: 100%;
    }
}

/* Carousel Styles */
.carousel-wrapper {
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease-in-out;
    /* Ensure items don't shrink */
}

.carousel-card {
    flex: 0 0 calc(100% / 3 - 2rem * 2 / 3);
    /* 3 items minus gap adjustment */
    min-width: 0;
    /* Fix flexbox overflow issue */
}

@media (max-width: 1024px) {
    .carousel-card {
        flex: 0 0 calc(50% - 1rem);
        /* 2 items */
    }
}

@media (max-width: 768px) {
    .carousel-card {
        flex: 0 0 100%;
        /* 1 item */
    }
}

/* Delivery Map Styles */
#delivery-map-section {
    background: white;
    padding: 4rem 0;
    overflow: hidden;
}

.delivery-map-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    margin: 2rem 0;
    background: linear-gradient(to bottom, #f8fafc, #eff6ff);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    cursor: crosshair;
}

.delivery-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.map-labels {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 5%;
    pointer-events: none;
    z-index: 10;
}

.map-label {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(4px);
}

.delivery-car {
    position: absolute;
    font-size: 2.5rem;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 20;
    transition: transform 0.1s;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.delivery-instruction {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    pointer-events: none;
}

.funnel-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.funnel-step {
    text-align: center;
    position: relative;
}

.funnel-step::after {
    content: '→';
    position: absolute;
    right: -1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-light);
    opacity: 0.5;
}

.funnel-step:last-child::after {
    display: none;
}

.step-number {
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.funnel-step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.funnel-step p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .funnel-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .funnel-step::after {
        content: '↓';
        right: 50%;
        top: auto;
        bottom: -1.5rem;
        transform: translateX(50%);
    }

    .delivery-map-wrapper {
        height: 200px;
    }
}

.delivery-vehicle {
    position: absolute;
    font-size: 2.5rem;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 20;
    transition: transform 0.1s;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

/* Guarantees Styles */
.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.guarantee-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.guarantee-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.guarantee-card:hover::before {
    opacity: 1;
}

.guarantee-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(59, 130, 246, 0.3);
}

.guarantee-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.guarantee-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.guarantee-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.25rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
}

.carousel-arrow:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.carousel-prev {
    left: -20px;
}

.carousel-next {
    right: -20px;
}

/* Mobile Sticky Button */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .mobile-sticky-bar {
        display: flex;
    }

    /* Add padding to body to prevent content from being hidden behind sticky bar */
    body {
        padding-bottom: 80px;
    }
}

@media (max-width: 768px) {
    .carousel-prev {
        left: 0;
    }

    .carousel-next {
        right: 0;
    }
}

/* Attention Markers */
.car-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Pulse Animation for Hero Button */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 99, 235, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

#hero .btn-primary {
    animation: pulse-glow 2s infinite;
}

/* Fix for consistent card heights */
.carousel-track {
    align-items: stretch;
    /* Ensure all cards are same height */
}

.carousel-card {
    display: flex !important;
    flex-direction: column !important;
}

.carousel-card .car-card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.carousel-card .car-card-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.car-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    min-height: 3rem;
}

.car-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
    flex: 1 !important;
}

/* Story card hover effects */
.story-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(59, 130, 246, 0.1) !important;
}

/* Fix mask compatibility warning */
.car-card::before {
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Mobile Enhancements */
@media (max-width: 768px) {

    /* Quiz mobile improvements */
    #quiz-section .quiz-wrapper {
        padding: 2rem 1.5rem !important;
    }

    #quiz-section h2 {
        font-size: 1.5rem !important;
    }

    #quiz-section p {
        font-size: 0.95rem !important;
    }

    #quiz-section .quiz-options {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    #quiz-section .quiz-option {
        padding: 1rem !important;
        font-size: 0.95rem !important;
    }

    /* Success Stories mobile */
    .stories-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Guarantee cards mobile */
    .guarantees-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .guarantee-card {
        padding: 2rem !important;
    }

    /* Section titles mobile */
    .section-title {
        font-size: 1.75rem !important;
        margin-bottom: 2rem !important;
    }

    /* Car cards - ensure proper spacing */
    .carousel-card {
        margin-bottom: 1rem;
    }

    /* Delivery map mobile */
    .delivery-map-wrapper {
        height: 250px !important;
    }

    .map-label {
        font-size: 1rem !important;
        padding: 0.35rem 0.75rem !important;
    }
}

@media (max-width: 480px) {

    /* Extra small devices */
    #quiz-section .quiz-wrapper {
        padding: 1.5rem 1rem !important;
        border-radius: var(--radius-lg) !important;
    }

    #quiz-section h2 {
        font-size: 1.25rem !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    .guarantee-icon {
        font-size: 2.5rem !important;
    }

    /* Form inputs on small screens */
    input[type="text"],
    input[type="tel"] {
        font-size: 16px !important;
        /* Prevents zoom on iOS */
    }
}

/* Input styling improvements */
input[type="text"],
input[type="tel"] {
    -webkit-appearance: none;
    appearance: none;
}

input[type="text"]::placeholder,
input[type="tel"]::placeholder {
    opacity: 0.6;
}

/* Ensure buttons are touch-friendly */
.btn {
    min-height: 44px;
    touch-action: manipulation;
}

/* Improve tap targets on mobile */
@media (max-width: 768px) {
    .carousel-arrow {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.1rem !important;
    }
}

/* ========================================
   POPUP FORM STYLES
   ======================================== */

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.popup-visible {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.popup-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 100%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-visible .popup-container {
    transform: scale(1) translateY(0);
}

/* Close Button */
.popup-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
    color: var(--text-color);
}

.popup-close-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: rotate(90deg);
}

.popup-close-btn svg {
    width: 20px;
    height: 20px;
}

/* Popup Content */
.popup-content {
    padding: 2.5rem 2rem 2rem;
}

.popup-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    text-align: center;
    line-height: 1.3;
}

.popup-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.5;
}

/* Popup Form */
.popup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.popup-submit-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem;
    font-size: 1.05rem;
}

/* Popup Message */
.popup-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Popup Footer Text */
.popup-footer-text {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .popup-container {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .popup-content {
        padding: 2rem 1.5rem 1.5rem;
    }

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

    .popup-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .form-input {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .popup-submit-btn {
        padding: 0.875rem;
        font-size: 1rem;
    }

    .popup-close-btn {
        width: 32px;
        height: 32px;
        top: 0.75rem;
        right: 0.75rem;
    }

    .popup-close-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Animation for popup appearance */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Prevent body scroll when popup is open */
body.popup-open {
    overflow: hidden;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

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

.nav-list {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-phone-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.header-phone {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.header-phone:hover {
    color: var(--primary-color);
}

.header-subtitle {
    font-size: 0.75rem;
    color: #16a34a;
    font-weight: 600;
}

/* Hero Styles */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.8)), url('imagesauto/background-hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(15, 23, 42, 0.8) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 2rem;
    color: #fbbf24;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* Footer Styles */
.footer {
    background: var(--secondary-color);
    color: #94a3b8;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.footer-list {
    list-style: none;
}

.footer-item {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

/* Form Styles */
.lead-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.lead-form-card {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.lead-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #60a5fa);
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.form-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
}

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

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s;
    background: #f8fafc;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

.form-submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.form-disclaimer {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.trust-triggers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    text-align: left;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trust-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.trust-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-visible {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: white;
    padding: 0;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 450px;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.popup-visible .popup-container {
    transform: scale(1) translateY(0);
}

.popup-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(241, 245, 249, 0.8);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
    z-index: 10;
}

.popup-close-btn:hover {
    background: #e2e8f0;
    color: var(--text-color);
}

.popup-content {
    padding: 2.5rem 2rem;
    text-align: center;
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.popup-subtitle {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.popup-footer-text {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #16a34a;
    font-weight: 500;
}

/* Carousel & Section Styles */
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.carousel-container {
    position: relative;
}

.car-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.car-meta-badge {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #16a34a;
    font-weight: 500;
}

.car-stock-info {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #fbbf24;
    font-weight: 500;
    text-align: center;
}

.general-cta-container {
    text-align: center;
    margin-top: 3rem;
}

.btn-large {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
}

.cta-subtext {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.75rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-delay-1 {
    transition-delay: 0.1s;
}

.stagger-delay-2 {
    transition-delay: 0.2s;
}

.stagger-delay-3 {
    transition-delay: 0.3s;
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}