root {
    --Linear: linear-gradient(136deg, #D98427 26.62%, #CF5427 80.05%);
    --neutrals-white: #FFF;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 150;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.modal * {
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
    box-sizing: border-box;
    background: transparent;
}

.modal-container {
    width: calc(100% - 32px);
    max-width: 529px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.modal-content {
    margin: auto;
    border-radius: 20px;
    background: #FDFDFD;
    width: 100%;
    padding: 53px 75px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    position: relative;
    gap: 31px;
}

body.modal-open {
    overflow: hidden;
}

.modal-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
}

.modal-title {
    color: #0D191E;
    text-align: center;
    font-size: 40px;
    font-style: normal;
    font-weight: 800;
    line-height: 38px; /* 95% */
    text-transform: uppercase;
}

.modal-title-text {
    color: #767676;
    text-align: center;
    font-size: 16.1px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    width: 388px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 31px;
    align-self: stretch;
}

.modal-input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
}

.modal-input {
    display: flex;
    padding: 12px 14px;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    border-radius: 6px;
    border: 1px solid #CDCDCD;
    background: #F5F5F5;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px; /* 144.444% */
}

.modal-input::placeholder {
    color: rgba(39, 39, 39, 0.50);
}

.modal-btn-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    align-self: stretch;
}

.modal-btn {
    display: flex;
    height: 60px;
    padding: 20px 30px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    border-radius: 10px;
    background: var(--Linear, linear-gradient(136deg, #D98427 26.62%, #CF5427 80.05%));
    color: var(--neutrals-white, #FFF);
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 110%; /* 22px */
    cursor: pointer;
}

.modal-btn-text {
    color: #2F2F2F;
    text-align: center;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px; /* 133.333% */
    opacity: 0.5;
}

.modal-btn-text a {
    color: #2F2F2F;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

.modal-content.img-modal-content {
    padding-bottom: 325px;
}

.modal-img {
    width: 559px;
    height: 316px;
    position: absolute;
    left: 0;
    bottom: 0;
    background-image: url("image/modal/modal-img.webp");
    background-position: center;
    background-size: cover;
}

.modal-close {
    width: 32px;
    height: 32px;
    position: absolute;
    top: 20px;
    right: 20px;
    background-image: url("icon/modal/modal-close-icon.svg");
    cursor: pointer;
}

#successModal .modal-container {
    max-width: 490px;
}

#successModal .modal-content {
    border-radius: 10px;
    padding: 64px 35px 53px;
    gap: 30px;
}

.success-modal-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    align-self: stretch;
}

.success-modal-title {
    color: #0D191E;
    text-align: center;
    font-size: 30px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    text-transform: uppercase;
}

.success-modal-title-text {
    width: 327px;
    color: #525252;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 22.4px */
}

.success-modal-btn {
    display: flex;
    height: 60px;
    padding: 18px 22px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    background: var(--Linear, linear-gradient(136deg, #D98427 26.62%, #CF5427 80.05%));
    color: #FFF;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    cursor: pointer;
    align-self: center;
    width: 180px;
}

@media (max-width: 768px) {
    .modal-container {
        max-width: 340px;
    }

    .modal-content {
        padding: 40px 14px;
    }

    .modal-content.img-modal-content {
        padding-bottom: 200px;
    }

    .modal-title {
        font-size: 28px;
        line-height: 38px;
    }

    .modal-title-text {
        font-size: 14px;
        width: 222px;
    }

    .modal-form {
        gap: 21px;
    }

    .modal-input-group {
        gap: 9px;
    }

    .modal-img {
        width: 353px;
        height: 200px;
    }

    .modal-close {
        top: 14px;
        right: 14px;
    }

    #successModal .modal-container {
        width: 415px;
    }

    #successModal .modal-content {
        padding: 53px 41px 41px;
    }

    .success-modal-title-container {
        gap: 13px;
    }

    .success-modal-title {
        font-size: 28px;
    }
}
