.modal {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.8);
    color: var(--gray);
    transition: opacity 1s var(--curve);
}
.modal .modal-card{
    position: relative;
    background-color: var(--black);
    border-radius: 8px;
    width: 90%;
    max-width: 834rem;
    max-height: 90%;
    display: flex;
    transition: opacity 1s var(--curve), transform 1s var(--curve);
}

.modal .modal-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 55rem;
    padding-top: 65rem;
}


.modal .modal-left .modal-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: none;
    padding: 0;
    margin-bottom: 30rem;
}

.modal .modal-left .modal-header .broweye {
    text-transform: uppercase;
    color: var(--green);
    font-size: 16rem;
}

.modal .modal-left .modal-header strong {
    font-size: 32rem;
    color: var(--white);
}
.modal .modal-left .modal-header p {
    margin: 0;
    font-size: 18rem;
}
.modal .modal-left .continue-btn {
    color: var(--white);
}

.modal .close-btn {
    position: absolute;
    right: 0px;
    height: 55px;
    width: 55px;
    border: none;
    align-items: center;
    justify-content: center;
    display: flex;
    background-color: transparent;
    top: 0px;
    cursor: pointer;
    span {
        transition: transform 1s var(--curve);
    }
    &:hover {
        span {
            transform: scale(0.9);
        }
    }
}


.modal .modal-image {
    width: 356rem;
    min-width: 356rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0 8px 8px 0;
    transition: background-size 2.5s ease;
}
.modal .modal-footer {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 90rem;
    border-top: 1px solid #303030;
    padding-top: 17rem;
    font-size: 16rem;
    .underline {
        display: inline;
    }
}
.modal .modal-footer .small {
    font-size: 14rem;
}

.modal .modal-footer a.highlight {
    color: var(--green);
}
.modal:not(.show) {
    opacity: 0;
    pointer-events: none;
}
.modal:not(.show) .modal-card {
    opacity: 0;
    transform: scale(0.9) translateY(100%);
}
@media (max-width: 1024px) {
    .modal {
        .modal-card {
            width: calc(100% - 16px * 2);
            height: auto;
            max-height: calc(100% - 16px * 2);
            display: inline-flex;
            flex-direction: column;
            overflow-y: auto;
            justify-content: flex-start;
            &::webkit-scrollbar, &::scrollbar {
                display: none;
                width: 0;
            }
        }
        .modal-image {
            width: 100%;
            min-width: auto;
            height: min(40vh, 180px);
            background-size: cover;
            flex-shrink: 0;
            border-radius: 0;
            order: 2;
        }
        .modal-left {
            padding: 32px 24px;
            order: 3;
            .modal-header {
                .broweye {
                    line-height: 1;
                }
                strong {
                    font-size: 28px;
                }
            }
        }
        .modal-form .modal-form-group {
            gap: 24px !important;
            min-height: auto !important;
        }
        
    }
}
@media (max-width: 740px) {
    .modal .modal-image {
        height: 160px;
    }
    .modal .modal-left {
        padding-bottom: 24px;
    }
    .modal .modal-left .modal-header p {
        font-size: 16px;
        line-height: 1.17;
    }
    .modal .modal-form .modal-form-group {
        gap: 16px !important;
    }
    .modal .modal-footer {
        width: calc(100% + 24px * 2);
        margin-left: -24px;
        padding-left: 24px;
        padding-right: 24px;
        flex-direction: column;
        align-items: flex-start;
        margin-top: 24px;
        font-size: 14px;
    }
}