.my-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 7rem 0;
    flex-direction: column;
    align-items: center;
}

@media (max-witdh: 575px) {
    .my-modal {
        padding: 4rem 0;
    }
}

.my-modal[opened] {
    background-color: rgba(20, 13, 2, 0.8);
}

.my-modal__container {
    max-width: 491px;
    position: relative;
    margin: auto;
}

@media (max-width: 769px) {
    .my-modal__container {
        max-width: 90%;
        width: 100%;
    }
}

.close-modal-button {
    position: absolute;
    top: calc(-11px - 17px);
    right: calc(-5px - 17px);
    width: 17px;
    height: 17px;
    background: transparent;
    border: none;
    cursor: pointer;
}

@media (max-width: 992px) {
    .close-modal-button {
        top: calc(-15px - 17px);
        right: calc(15px - 17px);
    }
}

.close-modal-button::before,
.close-modal-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #FFF;
    border-radius: 5px;
}

.close-modal-button::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-modal-button::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.my-modal__content {
    padding: 5.3rem 4.3rem;
    background-color: #EDEDED;
    border-radius: 4px;
    width: 100%;
}

@media (max-width: 769px) {
    .my-modal__content {
        padding: 4rem 3rem;
    }
}

@media (max-width: 575px) {
    .my-modal__content {
        padding: 3rem 2rem;
    }
}

.my-modal__texts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.my-modal__form {}

.my-modal__form .my-form__title {
    font-size: 2.4rem;
    line-height: 30px;
}

@media (max-width: 992px) {
    .my-modal__form .my-form__title {
        font-size: 2.2rem;
        line-height: 28px;
    }
}

@media (max-width: 769px) {
    .my-modal__form .my-form__title {
        font-size: 2rem;
        line-height: 26px;
    }
}

@media (max-width: 575px) {
    .my-modal__form .my-form__title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 2rem;
    }
}

.my-modal__form textarea {
    height: 140px;
}