.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    transition: background 0.3s ease-in-out;
}

.modal.show {
    background: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    max-width: min(65vw, 900px);
    width: 800px;

    aspect-ratio: 1 / 1;
    max-height: 85vh;

    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.modal.show .modal-content {
    opacity: 1;
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: clamp(50px, 3vw, 64px);
    cursor: pointer;
    color: #333;
    line-height: 50px;
}

.modal-image {
    height: 50%;
    width: 100%;
    overflow: hidden;
    background: #e9f3fd;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.modal-text {
    height: 50%;
    padding: clamp(25px, 4vw, 35px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.modal-text h2 {
    margin: 0 0 20px;
    font-size: clamp(20px, 3.5vw, 30px);
    color: #333;
    line-height: 1.3;
}

.modal-text p {
    margin: 0 0 25px;
    font-size: clamp(14px, 2vw, 18px);
    color: #666;
    line-height: 1.4;
}

.modal-checkmarks {
    list-style: none;
    padding: 0 clamp(20px, 3vw, 25px);
    margin: 0 0 25px;
    display: flex;
    justify-content: space-between;
}

.modal-checkmarks li {
    display: flex;
    align-items: center;
    font-size: clamp(12px, 1.8vw, 15px);
    color: #333;
    line-height: 1.4;
}

.modal-checkmarks .checkmark {
    font-size: clamp(14px, 2vw, 16px);
    margin-right: clamp(8px, 1.5vw, 12px);
}

.modal-button {
    display: inline-block;
    cursor: pointer;
    border-radius: 5rem;
    padding: clamp(10px, 2vw, 12px) clamp(36px, 3vw, 52px);
    background: #fa1475;
    color: #fff!important;
    text-decoration: none!important;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 800;
    width: fit-content;
    align-self: center;
    text-transform: uppercase;
}

.modal-button:hover {
    background: #c7105d;
}

@media (max-height: 650px) {
    .modal-image {
        display: none;
    }

    .modal-text {
        height: 100%;
    }
}

@media (max-width: 1024px) {
    .modal-content {
        max-width: min(80vw, 700px);
        width: 650px;
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 768px) {
    .modal {
        align-items: flex-start;
        padding-top: 8vh;
        padding-bottom: 5vh;
    }

    .modal-content {
        max-width: min(85vw, 600px);
        width: 90%;
    }
}

@media (max-width: 600px) {
    .modal-content {
        max-width: 90vw;
        width: 90%;
        aspect-ratio: auto;
    }
    .modal-text {
        text-align: center;
    }
    .modal-checkmarks {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
    .modal-checkmarks li {
        margin-bottom: clamp(10px, 2vw, 14px);
    }
}
