@import url("main.css");

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    /* Your homepage background */
    /* Add your existing homepage styles here */
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    /* increased so the modal is above header and loader */
    z-index: 20000;
    animation: fadeIn 0.4s ease-out;
}

.modal-overlay.show {
    display: flex;
    /* Shown when class added */
}

/* Discount Card (same as before) */
.discount-card {
    position: relative;
    /* make sure the card itself stacks above other elements inside the overlay */
    z-index: 20001;
    width: 500px;
    max-width: 90%;
    background-image: url("../images/Nav-Car/Car4.jpg");
    background-size: cover;        /* fit container */
    background-position: center;   /* center image */
    background-repeat: no-repeat;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    padding: 40px 20px;
    animation: zoomIn 0.5s ease-out;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    /* ensure the button overlays everything inside the modal */
    z-index: 20002;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.alert-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #fff;
    color:var(--color-500);
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.discount-percent {
    font-size: 72px;
    font-weight: 900;
    margin: 30px 0 10px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.offer-text {
    font-size: 24px;
    padding-top: 20px;
}

.timer {
    font-size: 18px;
    margin: 10px 0;
    opacity: 0.9;
}

.cta-btn {
    background-color: white;
    color:var(--color-500);
    font-weight: bold;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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