.modal-overlay {
    position: fixed;
    height: 100vh;
    width: 100%;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    opacity: 0;
    transition: all 400ms ease;
    z-index: 3123;
}

.modal-overlay.active {
    opacity: 1;
}

.modal {
    width: 35%;
    position: fixed;
    top: 50%;
    left: 50%;
    bottom: 25px;
    transform: translate(-50%, calc(-50% - 10px));
    z-index: 999999;
    background: #fff;
    min-width: 709px;
    font-family: sans-serif;
    box-shadow: 0 5px 26px -8px rgba(0, 0, 0, 0.3);
    border-radius: 0px;
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: all 400ms ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.modal-title {
    font-size: 45px;
    margin-bottom: 15px;
    font-family: sans-serif;
}

.modal-text {
    font-size: 22px;
    font-family: sans-serif;
    max-height: 300px; /* Set a maximum height for the text */
    overflow-y: auto; /* Add a vertical scrollbar if content exceeds max-height */
}

.modal .close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}

.modal .left {
    width: 40%;
    background: #fff;
    color: #fff;
    border-radius: 0px;
    padding: 24px 16px;
    text-align: center;
}

.modal .left h3 {
    font-size: 22px;
    text-transform: uppercase;
    margin: 0;
}

.modal .left h3.sale-text {
    font-size: 36px;
}

.modal .left .discount p {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ebff00;
    margin: 0;
    margin-top: 32px;
}

.modal .left .discount .discount-percent {
    font-size: 60px;
    font-weight: 300;
}

.modal .right {
    width: 61%;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal .right h2 {
    margin: 0;
    text-transform: uppercase;
    font-size: 24px;
}

.modal .right p {
    color: #5C5C5C;
}

.modal .right .discount-btn {
    text-decoration: none;
    background: #ff5555;
    align-self: flex-start;
    padding: 8px 32px;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 20px;
}

.modal .bg-shape {
    position: absolute;
    height: 12px;
    width: 89%;
    background: linear-gradient(180deg, #59a41e 0%, #59a41e 100%);
    top: -2px;
    left: 12%;
}

.submit-button {
    width: 60%;
}

@media (max-width: 600px) {
    .submit-button {
        width: 100%;
    }

    .modal .left {
        width: 100%;
        padding: 71px;
    }

    .modal {
        min-height: 500px;
        display: flex;
        flex-direction: column;
        min-width: 350px;
        z-index: 99999;
    }

    .modal-title {
        font-size: 25px;
        margin-bottom: 15px;
    }

    .modal-text {
        font-size: 18px;
        max-height: 200px; /* Adjust max-height for mobile */
        overflow-y: auto; /* Add a vertical scrollbar if content exceeds max-height */
    }

    .modal .bg-shape {}

    .modal .close-btn {
        color: #595656;
        right: 8px;
        top: 8px;
    }

    .modal .left .discount-text {
        display: flex;
        gap: 8px;
        justify-content: center;
    }

    .left {
        order: 0;
    }

    .right {
        order: 1;
    }

    .modal .left h3,
    .modal .left h3.sale-text {
        font-size: 24px;
    }

    .modal .left .discount p {
        margin-top: 20px;
    }

    .modal .right {
        width: 100%;
        padding: 40px;
        margin-top: -40px;
    }

    .modal .right h2 {
        text-transform: none;
    }

    .modal .right h2 br {
        display: none;
    }

    .modal .right .discount-btn {
        align-self: auto;
    }
}
