.dialog {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.dialog * {
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
    
    font-family: initial;
    font-size: initial;
    font-weight: initial;
    text-align: start;
    line-height: initial !important;
    white-space: initial;
    
    list-style-type: none;
    border: initial;
    border-radius: initial;
    outline: initial;
    color: initial;
    background-color: initial;
    box-shadow: initial;
    
    cursor: initial;
    appearance: auto;

    & input:focus, textarea:focus {
        outline: 0;
    }

    & input[type="checkbox"] {
        position: unset !important;
    }
}



/* -----====== ОПИСАНИЕ =====----- */
/* req-res - для модалок результата запроса */
/* success, fail - конкретный экземпляр модалки */

/* START DIALOG */
.dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
}

.dialog {
    position: fixed;
    top: 0;
    left: 0;
    
    height: 100vh;
    max-height: unset;
    width: 100%;
    min-width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;

    background: transparent;
    border: 0;
    outline: 0;

    overflow: auto;
}

.dialog:open {
    display: flex;
}

.dialog__window {
    width: 350px;
    min-height: 351px;
    margin: auto;

    border: none;
    border-radius: 10px;
    background: #FFF;
}

.dialog__wr-close {
    display: flex;
    justify-content: flex-end;
}

.dialog__wr-close {
    padding-top: 30px;
    padding-right: 30px;
}

.dialog__close {
    height: 30px;
    width: 30px;

    background: no-repeat url('../i/icon-close.svg');
    background-size: contain;
    background-position: center;

    cursor: pointer;
}

.dialog__close_orange {
    background: none;

    background-color: #FF732D;
    -webkit-mask-image: url('../i/icon-close.svg');
    mask-image: url('../i/icon-close.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.dialog__content {
    display: none;
    flex-direction: column;
    align-items: center;
}

dialog[data-type="success"] .dialog__content-success {
    display: flex;
}

dialog[data-type="fail"] .dialog__content-fail {
    display: flex;
}

dialog[data-type="conf-email"] .dialog__content-conf-email {
    display: flex;
}

dialog[data-type="sended-data-order"] .dialog__content-sended-data-order {
    display: flex;
}

dialog[data-type="order-certif"] .dialog__content-order-certif {
    display: flex;
}

dialog[data-type="req-corp-group"] .dialog__content-req-corp-group {
    display: flex;
}

.dialog__icon-bear {
    width: 150px;
    height: 150px;
    margin-bottom: 29px;

    background: no-repeat url('../i/bear-new.webp');
    background-size: contain;
    background-position: center;
}

.dialog__text {
    width: 100%;

    font-family: 'Roboto';
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    text-align: center;
    color: #5A5D62;
}

.dialog__text > p {
    font-family: 'Roboto';
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    text-align: center;
    color: #5A5D62;
}

.dialog__text_bold {
    font-weight: 600; /*когда будут модалки значение подправить, если будет отличаться*/
}

.dialog__form-input-title {
    font-family: 'Roboto';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    color: #828282;
}

.dialog__input-title_required::after {
    content: "*";

    display: inline-block;

    font-family: 'Roboto';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    color: #F00;

    transform: translateY(-21%);
}

.dialog__form-checkbox {
    height: fit-content;
    width: fit-content;
    padding: 4px;
    
    outline: 1px solid #F60 !important;
    border: 3px solid transparent;
    border-radius: 50%;
    
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.dialog__form-checkbox:checked {
    outline: 1px solid #F60 !important;
    border: 3px solid #F2F2F2;
    background: linear-gradient(90deg, #F60 0%, #FF1572 100%);
}

.dialog__form-area {
    resize: none;
}

.dialog__form-area-counter {
    font-family: 'Roboto';
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    color: #7B7B7B;

    & > span {
        font-family: 'Roboto';
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        color: #7B7B7B;
    }
}

.dialog__form-button {
    display: grid;
    place-items: center;

    font-family: 'Roboto';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    color: #FFF;

    border-radius: 25px;
    background: #FF732D;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25), 0 0 7.3px 2px rgba(0, 0, 0, 0.25);

    cursor: pointer;

    /* &:hover {
        box-shadow: 0 0 8px 3px rgba(0, 0, 0, 0.25);
        background: #ff712a !important;
    }

    &:active {
        background: #FF732D !important;
        box-shadow: none;
    } */
}


/* END DIALOG */


/* START REQUEST RESULT (req-res) */
.dialog__content-req-res {
    margin-top: 21px;
}

.dialog__icon-req-res {
    width: 111px;
    height: 111px;
    margin: 0 auto;
}

.dialog__icon-success {
    background: no-repeat url('../i/icon-success.svg');
    background-size: contain;
    background-position: center;
}
.dialog__icon-fail {
    background: no-repeat url('../i/icon-attention.svg');
    background-size: contain;
    background-position: center;
}


.dialog__text-req-res {
    margin-top: 36px;
}
/* END REQUEST RESULT (req-res) */

/* START На почту отправлено подтверждение почты */
.dialog__text-conf-email {
    padding-bottom: 56px;
}
/* END На почту отправлено подтверждение почты */

/* START данные заказа (туристов) успешно отправлены */
.dialog__content-sended-data-order {
    margin-top: 29px;
    padding-bottom: 56px;
}
/* END данные  заказа (туристов) успешно отправлены */

/* START форма заказа сертификата */
dialog[data-type="order-certif"] > .dialog__window {
    width: 467px;
    padding-bottom: 17px;
}

.dialog__form-cert {
    width: 437px;
    margin-top: 24px;
}

.dialog__form-cert-wr-input {
    padding: 20px 15px 14px;

    border-bottom: 1px solid #5A5D62;
}

.dialog__form-cert-wr-input[data-valid="false"] {
    border-bottom: 1px solid #F00;
}

.dialog__form-cert-input {
    font-family: 'Roboto';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    color: #303030;
}

[data-valid="false"] .dialog__form-cert-input {
    color: #F00;
}

.dialog__form-cert-input::placeholder {
    font-family: 'Roboto';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    color: #303030;
}

[data-valid="false"] .dialog__form-cert-input::placeholder {
    color: #F00;
}

.dialog__form-cert-input:focus::placeholder {
    visibility: hidden;
    opacity: 0;
}

.dialog__form-cert-wr-comment {
    margin-top: 37px;
}

.dialog__form-cert-area-label {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.dialog__form-cert-wr-area {
    position: relative;
}

.dialog__form-cert-area {
    width: 100%;
    height: 186px;
    min-height: 186px;
    max-height: 186px;
    padding: 15px;

    font-family: 'Roboto';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    color: #303030;

    border-radius: 20px;
    border: 1px solid #828282;
    background: rgba(255, 255, 255, 0.30);
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.25);
}

.dialog__form-cert-area-counter {
    position: absolute;
    right: 13px;
    bottom: 13px;
}

.dialog__form-cert-wr-button {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.dialog__form-cert-button {
    width: 174px;
    height: 40px;
}

/* END форма заказа сертификата */

/* START Заявка на расчет группы */
.dialog[data-type="req-corp-group"] > .dialog__window {
    width: 33.32%;
}

.dialog__content-req-corp-group {
    padding-left: 57px;
    padding-right: 57px;
    padding-bottom: 42px;
}

.dialog .dialog__req-corp-group-title {
    font-family: 'Roboto';
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    text-align: center;
    color: #FF732D;
}

.dialog__req-corp-group-wr-route {
    margin-top: 9px;
    align-self: flex-start;
}

.dialog__req-corp-group-route {
    font-family: 'Roboto';
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    color: #5A5D62;
}

.dialog__req-corp-group-wr-duration {
    margin-top: 16px;
    align-self: flex-start;
}

.dialog__req-corp-group-duration {
    display: flex;
    align-items: center;
    gap: 12px;

    font-family: 'Roboto';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    color: #000;
    text-align: center;
}

.dialog__req-corp-group-duration::before {
    content: "";

    height: 23px;
    width: 23px;

    background: no-repeat url('../i/clock-duration.svg');
    background-size: contain;
    background-position: center;
}

.dialog__req-corp-group-wr-form {
    width: 100%;
    margin-top: 41px;
}

.dialog__req-corp-group-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dialog__req-corp-group-label {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.dialog__req-corp-group-label[data-invalid="true"] > .dialog__form-input-title {
    color: #F00;
}

.dialog__req-corp-group-input {
    height: 50px;
    padding-left: 2.9%;
    padding-right: 2.9%;

    font-family: 'Roboto';
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    color: #828282;

    border-radius: 50px;
    border: 1px solid #828282;
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.25);
}

.dialog__req-corp-group-label[data-invalid="true"] > .dialog__req-corp-group-input {
    border: 1px solid #F00;
    box-shadow: 0 0 5px 1px rgba(255, 0, 0, 0.25);
}

.dialog__req-corp-group-area {
    width: 100%;
    height: 106px;
    padding: 10px 2.9%;
    

    font-family: 'Roboto';
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    color: #828282;

    border-radius: 20px;
    border: 1px solid #828282;
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.25);
}

.dialog__req-corp-group-wr-agree {
    margin-top: 26px;
}

.dialog__req-corp-group-agree-label {
    display: flex;
    align-items: center;
    gap: 8px;

    cursor: pointer;
}

.dialog__req-corp-group-box-title {
    font-family: 'Roboto';
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: 1 !important;
    color: #5A5D62;

    cursor: inherit;
}

.dialog__req-corp-group-agree-label[data-invalid="true"] > .dialog__req-corp-group-box-title {
    color: #F00;
    text-shadow: 0 0 5px 1px rgba(255, 0, 0, 0.25);
}

.dialog__req-corp-group-wr-button {
    display: flex;
    justify-content: center;
    margin-top: 39px;
}

.dialog__req-corp-group-button {
    width: 64%;
    height: 50px;
}
/* END Заявка на расчет группы */


/* START Общие */
@media(max-width: 1024px) {
    .dialog__window {
        border-radius: 2.67vw;
    }
}

@media(max-width: 1024px) {
    .dialog__wr-close {
        padding-top: 6.67vw;
        padding-right: 6.67vw;
    }
    
    .dialog__close {
        height: 8vw;
        width: 8vw;
    }
}

@media(max-width: 1024px) {
    .dialog__form-checkbox {
        padding: 1.07vw;
        outline: 0.27vw solid #F60 !important;
        border: 0.80vw solid transparent;
    }

    .dialog__form-checkbox:checked {
        outline: 0.27vw solid #F60 !important;
        border: 0.80vw solid #F2F2F2;
    }
}

@media(max-width: 1024px) {
    .dialog__form-button {
        font-size: 4.27vw;

        border-radius: 6.67vw;
    }   
}
/* END Общие */

/* START форма заказа сертификата */
@media(max-width: 1024px) {
    dialog[data-type="order-certif"] > .dialog__window {
        width: 89.33vw;
        padding-bottom: 6.40vw;
    }
}

@media(max-width: 1024px) {
    .dialog__form-cert {
        width: 81.87vw;
        margin-top: 4.53vw;
    }
}

@media(max-width: 1024px) {
    .dialog__form-cert-wr-input {
        padding: 5.33vw 4vw 3.73vw;
    }
}

@media(max-width: 1024px) {
    .dialog__form-cert-input {
        font-size: 3.73vw;
    }
    .dialog__form-cert-input::placeholder {
        font-size: 3.73vw;
    }
}

@media(max-width: 1024px) {
    .dialog__form-cert-wr-comment {
        margin-top: 9.33vw;
    }
}

@media(max-width: 1024px) {
    .dialog__form-cert-area-label {
        gap: 2.93vw;
    }
}

@media(max-width: 1024px) {
    .dialog__form-cert-area {
        height: 49.60vw;
        min-height: 49.60vw;
        max-height: 49.60vw;
        padding: 4vw;
    
        font-size: 3.73vw;
    
        border-radius: 5.33vw;
        box-shadow: 0 0 1.33vw 0.27vw rgba(0, 0, 0, 0.25);
    }
}

@media(max-width: 1024px) {
    .dialog__form-cert-area-counter {
        right: 3.47vw;
        bottom: 3.47vw;
    }
}

@media(max-width: 1024px) {
    .dialog__form-cert-wr-button {
        margin-top: 9.33vw;
    }
}

@media(max-width: 1024px) {
    .dialog__form-cert-button {
        width: 46.40vw;
        height: 10.67vw;
    }
}
/* END форма заказа сертификата */


/* START Заявка на расчет группы */
@media(max-width: 1024px) {
    .dialog[data-type="req-corp-group"] > .dialog__window {
        width: 90%;
    }   
}

@media(max-width: 1024px) {
    .dialog__content-req-corp-group {
        padding-left: 3vw;
        padding-right: 3vw;
        padding-bottom: 7.40vw;
    }   
}

@media(max-width: 1024px) {
    .dialog__req-corp-group-wr-title {
        margin-top: 2vw;
    }

    .dialog .dialog__req-corp-group-title {
        font-size: 5.87vw;
    }
}

@media(max-width: 1024px) {
    .dialog__req-corp-group-wr-route {
        margin-top: 2.40vw;
    }   

    .dialog__req-corp-group-route {
        font-size: 4vw;
    }
}

@media(max-width: 1024px) {
    .dialog__req-corp-group-wr-duration {
        margin-top: 4.27vw;
    }  
    
    .dialog__req-corp-group-duration {
        gap: 3.20vw;

        font-size: 3.73vw;
    }
}

@media(max-width: 1024px) {
    .dialog__req-corp-group-wr-form {
        margin-top: 6.93vw;
    }   
}

@media(max-width: 1024px) {
    .dialog__req-corp-group-list {
        gap: 4.37vw;
    }   
}

@media(max-width: 1024px) {
    .dialog__req-corp-group-label {
        gap: 1.7vw;
    }   
}

@media(max-width: 1024px) {
    .dialog__form-input-title {
        font-size: 3.47vw;
    }
    
    .dialog__input-title_required::after {
        font-size: 3.47vw;
    }
}

@media(max-width: 1024px) {
    .dialog__req-corp-group-input {
        height: 10.67vw;

        font-size: 3.47vw;

        border-radius: 13.33vw;
    }   
}

@media(max-width: 1024px) {
    .dialog__req-corp-group-area {
        height: 38.93vw;
        padding: 2.67vw 2.9%;

        font-size: 3.47vw;
    }   
}

@media(max-width: 1024px) {
    .dialog__req-corp-group-wr-agree {
        margin-top: 6.93vw;
    }   
}

@media(max-width: 1024px) {
    .dialog__req-corp-group-agree-label {
        gap: 3.47vw;
    }   
}

@media(max-width: 1024px) {
    .dialog__req-corp-group-box-title {
        font-size: 3.47vw;
    }   
}

@media(max-width: 1024px) {
    .dialog__req-corp-group-wr-button {
        margin-top: 10.40vw;
    }   

    .dialog__req-corp-group-button {
        height: 10.67vw;
    }
}
/* END Заявка на расчет группы */


