/* Custom Popup Styles - TikTak Design */
.custom-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-in-out;
}

.custom-popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-popup-container {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    width: 728.26px;
    height: 348.46px;
    max-width: 90%;
    max-height: 90vh;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
    border: 4px solid #e3849b;
    background-image: url('/assets/img/Frame 1.png');
    background-position: right top;
    background-repeat: no-repeat;
    background-size: auto;
}

.custom-popup-content {
    padding: 40px 50px;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    z-index: 2;
}

.custom-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    opacity: 1;
    transform: rotate(0deg);
}

.custom-popup-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.custom-popup-close::before,
.custom-popup-close::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background: #333;
    border-radius: 2px;
}

.custom-popup-close::before {
    transform: rotate(45deg);
}

.custom-popup-close::after {
    transform: rotate(-45deg);
}

/* Logo Styling */
.custom-popup-logo {
    position: absolute;
    top: 48.57px;
    left: 50px;
    text-align: left;
}

.custom-popup-logo-img {
    width: 135.98px;
    height: 35.67px;
}

.custom-popup-title {
    font-family: 'Galano Grotesque', Arial, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 24px;
    line-height: 115%;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #000000;
    margin-bottom: 20px;
    text-align: left;
    margin-top: 75px;
}

.custom-popup-description {
    font-family: 'Galano Grotesque', Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    line-height: 130%;
    letter-spacing: 0%;
    color: #333333;
    margin-bottom: 40px;
    text-align: left;
    max-width: 400px;
}

.custom-popup-button {
    display: inline-block;
    width: 240px;
    height: 46px;
    background: #E62154;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin: 0;
    opacity: 1;
    transform: rotate(0deg);
    line-height: 46px;
}

.custom-popup-button:hover {
    background: #c41e4a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 33, 84, 0.4);
}

.custom-popup-button:active {
    transform: translateY(0);
}

/* Car Image Container */
.custom-popup-car-container {
    position: absolute;
    right: -45px;
    bottom: -83px;
    width: 389.64px;
    height: 246.09px;
    z-index: 10;
    pointer-events: none;
}

.custom-popup-car {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: rotate(0deg);
}

/* Background Decorative Elements - Removed */

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .custom-popup-container {
        width: 343px;
        height: 359px;
        border-radius: 16px;
        border: 3px solid #F41C50;
    }

    .custom-popup-content {
        padding: 30px 25px;
        height: 100%;
    }

    .custom-popup-logo {
        top: 30px;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }

    .custom-popup-logo-img {
        width: 100px;
        height: 26px;
    }

    .custom-popup-title {
        font-family: 'Galano Grotesque', Arial, sans-serif;
        font-weight: 600;
        font-size: 20px;
        line-height: 115%;
        letter-spacing: 0%;
        margin-bottom: 0px;
        text-align: center;
        margin-top: 40px;
    }

    .custom-popup-description {
        font-family: 'Galano Grotesque', Arial, sans-serif;
        font-weight: 400;
        font-size: 17px;
        line-height: 130%;
        letter-spacing: 0%;
        margin-bottom: 0px;
        text-align: center;
        margin-left: -10px;
        margin-right: 10px;
        margin-top: 76px;
        position: absolute;
    }

    .custom-popup-button {
        width: 200px;
        height: 40px;
        font-size: 16px;
        position: absolute;
        bottom: 140px;
        left: 50%;
        transform: translateX(-50%) !important;
        line-height: 40px;
        border-radius: 8px;
        z-index: 10;
    }

    .custom-popup-button:hover {
        transform: translateX(-50%) !important;
        box-shadow: none;
    }

    .custom-popup-button:active {
        transform: translateX(-50%) !important;
    }

    .custom-popup-close {
        top: 15px;
        right: 15px;
        width: 28px;
        height: 28px;
    }

    .custom-popup-car-container {
        position: absolute;
        left: 50%;
        bottom: -65px;
        transform: translateX(-50%);
        width: 280px;
        height: 200px;
    }

    .custom-popup-container {
        background-image: url('/assets/img/Vector.png');
        background-position: bottom;
        background-repeat: no-repeat;
        background-size: auto;
    }

    /* Background decorative elements removed */
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .custom-popup-container {
        width: 90%;
        height: auto;
        min-height: 320px;
        border: 3px solid #F41C50;
    }
}

/* Prevent body scroll when popup is open */
body.custom-popup-open {
    overflow: hidden;
}

