.recaptcha-container {
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.3s;
}

.recaptcha-container.shown {
    opacity: 1;
    pointer-events: all;
}

.recaptcha-container.shown .recaptcha-container__wrapper {
    transform: scale(0.8);
}

.recaptcha-container.shown .recaptcha-container__wrapper {
    transform: none;
}

.recaptcha-container .recaptcha-container__shade {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
    background-color: #00000036;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.callbackform__message .form-step {
    display: none;
}

.callbackform__message .form-step.shown {
    display: block;
}

.callbackform__message .form-step.phonecode-step .callbackform__title {
    margin-top: 32px;
}

.callbackform__message .register-btn {
    font-weight: 600;
    font-size: 18px;
    line-height: 133%;
    letter-spacing: 0%;
    text-align: center;
    color: #fff;
    background-color: #2589FF;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px 30px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    justify-content: space-between;
    text-decoration: none;
    width: 100%;
    margin-top: 20px;
}

.callbackform__message .register-btn.hidden {
    display: none;
}

.callbackform__message .register-btn.center {
    justify-content: center;
}

.callbackform__message .register-btn.transparent {
    border: 2px solid #FFFFFF;
    background-color: none;
}

.callbackform__message .register-btn::after {
    content: "";
    height: 22px;
    width: 12px;
    display: block;
    background-image: url('/img/register-arrow.svg');
    transition: transform 0.3s;
}

.callbackform__message .register-btn:active {
    background-color: #0879FE;
    transition: none;
}

.callbackform__message .callbackform__resend-btn {
    display: none;
}

.callbackform__message .callbackform__resend-btn.shown {
    display: flex;
}

.callbackform__message .register-btn:disabled {
    background-color: #e2e2e2;
    color: #878787;
    cursor: not-allowed;
}

@media screen and (hover:hover) {
    .callbackform__message .register-btn:hover::after {
        transform: translateX(5px);
    }

    .callbackform__message .register-btn:hover {
        background-color: #489CFF;
    }

    .callbackform__message .register-btn:disabled:hover {
        background-color: #e2e2e2;;
    }
}

.callbackform__tg-link {
    background: #FFF;
    color: #2589FF;
    border: 2px solid #2589FF;
    padding: 11px;
    border-radius: 12px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
}

.callbackform__tg-picture {
    max-height: 100px;
    width: auto;
}

.callbackform__tg-logo {
    height: 40px;
    width: auto;
}

@media screen and (max-width: 750px) {
    .callbackform__tg-logo {
        height: 30px;
    }
}

.callbackform__message {
    font-family: "Mulish", inherit;
    position: relative;
    padding: 40px;
    background: #fff;
    border-radius: 32px;
    background: #FFFFFF;
    box-shadow: -24px 175px 71px rgba(97, 97, 97, 0.01), -14px 98px 60px rgba(97, 97, 97, 0.05), -6px 44px 44px rgba(97, 97, 97, 0.09), -2px 11px 24px rgba(97, 97, 97, 0.1);
}

.callbackform__thnx-img {
    display: block;
    margin: 0 auto 8px auto;
    width: 56px;
}

.callbackform__title {
    font-weight: 800;
    font-size: 40px;
    line-height: 130%;
    letter-spacing: 0%;
    color: #2A2A37;
    margin-bottom: 20px;
}

.callbackform__description {
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0%;
    color: #717171;
    margin-bottom: 20px;
}

.callbackform__note {
    color: #A3A3B2;
    font-size: 14px;
    line-height: 18px;
    margin: 24px 0 0 0;
}

.callbackform__input-container {
    position: relative;
    margin-top: 16px;
    display: inline-block;
    width: 100%;
}
.callbackform__input-container .callbackform__input {
    margin: 0;
}

.callbackform__input {
    margin: 16px 0 0 0;
    background: #FCFCFC;
    border-radius: 10px;
    font-size: 20px;
    line-height: 32px;
    letter-spacing: -0.01em;
    color: #474766;
    padding: 11px 24px;
    border: 1px solid #F1F1F1;
    width: 100%;
    outline: none;
    transition: border-color 0.1s;
}

.callbackform__input::placeholder {
    color: #A3A3B2;
}

.callbackform__legal-notice {
    font-weight: 500;
    font-size: 13px;
    line-height: 150%;
    letter-spacing: 0%;
    color: #717171;
    transition: color 0.2s;
}

.callbackform__legal-notice a {
    color: #2589FF;
}

.callbackform__error-message {
    color: #FF5858;
    position: relative;
    line-height: 0px;
    opacity: 0;
    transition: all .2s;
    font-size: 13px;
    margin: 8px 0 -8px 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    padding: 0;
    width: max-content;
    max-width: 100%;
}

.callbackform__message input.error {
    border: 1px solid #FF5858;
}

.callbackform__message .form-block__label input.error {
    border: none;
}

.callbackform__add-to-calendar {
    border: 2px solid #2589FF;
    border-radius: 12px;
    display: block;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    line-height: 20px;
    color: #2589FF;
    padding: 18px;
    margin: 16px 0 0 0;
    position: relative;
}

.callbackform__add-to-calendar img {
    width: 20px;
    position: relative;
    top: 3px;
    margin: -5px 0 0 3px;
}

.callbackform__on-email-button {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 5px;
    font-size: 18px;
    background: #FFF;
    padding: 16px 0;
    border: 2px solid #2589FF;
    border-radius: 12px;
    margin-top: 15px;
}
.callbackform__on-email-button svg {
    margin-left: 8px;
}

.callbackform__on-email-button:hover svg path {
    fill: #489CFF;
}

/*new styles*/

.callbackform___step-phone-code {
    display: none;
    position: relative;
}

.callbackform___step-with-email {
    display: none;
    position: relative;
}

.callbackform__note-message {
    color: #A3A3B2;
    font-size: 12px;
    line-height: 16px;
    margin: 12px 0 0 0;
}

.allbackform__note-message_top {
    margin: 24px 0 0 0;
}

.callbackform__input-code-wrap {
    position: relative;
}

.callbackform__input-code-state {
    position: absolute;
    right: 16px;
    bottom: 12px;
    width: 24px;
    height: 24px;
    background-size: contain;
    display: none;
}

.callbackform__input-code-state_sending {
    background: url(/img/default/sending.svg) center center no-repeat;
    transform: rotate(0);
    animation: rotation 2s linear infinite;
    display: block;
}

.callbackform__input-code-state_success {
    background: url(/img/default/success.svg) center center no-repeat;
    display: block;
}

.callbackform__input-code-state_new-code {
    background: url(/img/default/new-code.svg) center center no-repeat;
    display: block;
    cursor: pointer;
}

.callbackform__input-clear {
    background: url(/img/default/input-clear.svg) center center no-repeat;
    display: block;
    cursor: pointer;
}

@keyframes rotation {
    from {
        transform: rotate(0)
    }

    to {
        transform: rotate(360deg)
    }
}

.callbackform__href-next-step {
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0%;
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-offset: 0%;
    text-decoration-thickness: 0%;
    color: #808899;
    margin: 12px 0 12px 0;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: none;
}

.callbackform__href-next-step.shown {
    display: block;
}

.callbackform__arrow-back {
    position: absolute;
    top: 40px;
    left: 40px;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
    display: flex;
}

.callbackform__arrow-back svg {
    height: 24px;
    width: auto;
}

.callbackform__arrow-back:hover {
    opacity: 1;
}

.callbackform__arrow-back img {
    width: 24px;
}

.callbackform___step-phone-code-hidden {
    display: none;
}

.callbackform__step-final {
    flex-direction: column;
    align-items: center;
}

.callbackform__step-final .callbackform__title,
.callbackform__step-final .callbackform__description {
    text-align: center;
}

.callbackform__step-final .callbackform__title {
    margin-bottom: 8px;
}

.callbackform__step-final .callbackform__description {
    margin: 0;
}

.callbackform__message_thnx.shown {
    display: flex;
}

.callbackform__title_ltl {
    font-size: 24px;
    line-height: 32px;
}

.callbackform__message .callbackform__msgbox {
    display: none;
    font-size: 12px;
    line-height: 16px;
    color: #717171;
    margin-top: 10px;
    font-weight: 500;
}

.callbackform__message .callbackform__msgbox {
    display: block;
}

@media screen and (max-width: 750px) {
    .callbackform__arrow-back img {
        width: 17px;
    }

    .callbackform__title_ltl {
        font-size: 18px;
        line-height: 24px;
    }
}

/*new styles*/
@media screen and (max-width: 1350px) {
    .callbackform__description {
        font-size: 16px;
        line-height: 22px;
    }

    .callbackform__note {
        margin: 16px 0 0 0;
    }

    .callbackform__btn {
        font-size: 16px;
        border-radius: 8px;
    }

    .callbackform__input {
        font-size: 16px;
        line-height: 22px;
        border-radius: 8px;
    }

    .callbackform__add-to-calendar {
        border-radius: 8px;
        padding: 12px;
    }
}

@media screen and (max-width: 750px) {
    .form-popup {
        max-width: 400px;
    }

    .callbackform__message {
        box-shadow: 0px 25px 50px rgba(0, 0, 0, 0.15);
        border-radius: 20px;
        padding: 32px 24px 32px 24px;
    }

    .close-icon {
        top: 17px;
        right: 16px;
        height: 16px;
        width: 16px;
    }

    .callbackform__title {
        font-size: 24px;
        line-height: 28px;
    }

    .callbackform__description {
        font-size: 16px;
        line-height: 20px;
        margin: 8px 0 8px 0;
    }

    .callbackform__input {
        margin: 8px 0 0 0;
        line-height: 20px;
        padding: 12px 16px;
    }

    .callbackform__btn {
        padding: 14px 24px;
    }

    .callbackform__arrow-back {
        top: 32px;
        left: 24px;
    }
}

@media screen and (max-width: 680px) {
    .callbackform__arrow-back {
        top: 16px;
        left: 16px;
    }
}

/*phone mask*/

.callbackform__input-phone-mask {
    padding: 12px 24px 12px 73px;
}
.callbackform__input.border-square {
    border-radius: 10px 10px 0 0;
}

.callbackform__flag-container {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    width: 57px;
    height: 40px;
    background: #fff;
    border-radius: 6px;
    padding: 12px 0 12px 12px;
    display: flex;
    align-items: center;
}

.callbackform__flag-container::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    background: url(/img/default/callbackform__flag-arrow.svg) center center no-repeat;
    background-size: contain;
    width: 8px;
    height: 6px;
}

.callbackform__flag {
    border-radius: 2.5px;
    width: 20px;
    margin: 0 16px 0 0;
    transform: scale(1.2);
    background-image: url("../img/flags.png");
    background-repeat: no-repeat;
    background-color: #DBDBDB;
    background-position: 20px 0;
    box-shadow: 0 0 4px rgba(0, 0, 0, .2);
    flex-shrink: 0;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .callbackform__flag {
        background-image: url("../img/flags@2x.png"); } }

.callbackform__dropdown {
    position: absolute;
    top: 56px;
    background: #F8F8F8;
    z-index: 5;
    width: 100%;
    border: 1px solid #EDEDED;
    border-radius: 0px 0px 12px 12px;
    overflow: hidden;
}

.callbackform__dropdown.hide {
    display: none;
}

.callbackform__dropdown.show {
    display: block;
}

.callbackform__country-list {
    padding: 0;
    margin: 0;
    height: 100%;
    max-height: 50vh;
    overflow: auto;
}

.callbackform__country-item {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 22px;
    cursor: pointer;
    color: #000;
}
.callbackform__country-item.hide {
    display: none;
}

.callbackform__country-item:hover {
    background: #fff;
}

.callbackform__country-name {
    display: inline-block;
    margin-right: 8px;
}


@media screen and (max-width: 750px) {
    .callbackform__dropdown {
        top: 44px;
    }
}

/* Style 25 */


.form-block .form-block__fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-block .form-block__label {
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0%;
    color: #9598A4;
    display: flex;
    flex-direction: column;
    padding: 12px 20px;
    border: 1px solid #F1F1F1;
    background-color: #FCFCFC;
    border-radius: 14px;
    transition: border-color 0.1s, margin 0.2s, color 0.3s;
    position: relative;
    z-index: 1;
}

@keyframes shake {
    0% { transform: translateX(0) }
    25% { transform: translateX(5px) }
    50% { transform: translateX(-5px) }
    75% { transform: translateX(5px) }
    100% { transform: translateX(0) }
}

.form-block .form-block__label.error {
    border-color: #FF5456;
    color: #FF5456;
    transition: border-color 0.3s, margin 0.2s, color 0.2s;
    animation: shake 0.3s 1;
}

.form-block .form-block__label.valid {
    border-color: #AECCFF;
}

.form-block .form-block__input {
    border: none;
    padding: 0;
    background: none;
    font-weight: 400;
    font-size: 12px;
    line-height: 134%;
    letter-spacing: 0%;
    color: #484D55;
}

.form-block .form-block__input::placeholder {
    opacity: 0.5;
}

.form-block .form-block__input:focus {
    outline: none;
}

.form-block .form-block__label:has(.form-block__input.error) {
    border-color: #FF5858;
}

.form-block .form-block__label:has(.form-block__input:focus),
.callbackform__input:focus {
    border-color: #489CFF;
}

.form-block .form-block__legal {
    font-weight: 500;
    font-size: 13px;
    line-height: 150%;
    letter-spacing: 0%;
    color: #717171;
}

.form-block .form-block__legal a {
    color: #717171;
    text-decoration: underline;
}

.form-block .form-block__phonemask {
    padding-left: 75px;
}

.form-block .form-block__error {
    position: absolute;
    bottom: 0;
    left: 10px;
    z-index: -1;
    color: #ff5858;
    font-size: 13px;
    transition: bottom 0.3s, opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}

.form-block .form-block__label.error-shown .form-block__error {
    bottom: -20px;
    opacity: 1;
    pointer-events: all;
}

.callbackform__message .callbackform__input-container {
    margin: 0;
    margin-top: 16px;
}

.callbackform__message .callbackform__formblock .callbackform__input-container:first-child {
    margin-top: 0;
}

.form-block .callbackform__flag-container {
    z-index: 2;
}

.callbackform__message .callbackform__title_ltl {
    font-size: 28px;
}

.inline-form .callbackform__input-container {
    margin: 0;
}

.form-block .callbackform__add-to-calendar {
    justify-content: center;
}

.callbackform__message .callbackform__checkbox-container {
    display: flex;
    gap: 4px;
    align-items: flex-start;
    margin-top: 12px;
}

.callbackform__message .callbackform__checkbox-container.error {
    color: #FF5456;
    animation: shake 0.3s 1;
}

.callbackform__message .callbackform__checkbox-container.error .callbackform__legal-notice {
    color: #FF5456;
}

.callbackform__message .callbackform__checkbox-box {
    margin-top: 4px;
    box-shadow: 0px 0px 2px 0px #0000001A inset,
        0px 1px 2px 0px #0000001A inset;
    border: 0.5px solid #00000026;
    height: 14px;
    aspect-ratio: 1/1;
    border-radius: 3.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.callbackform__message .callbackform__checkmark {
    padding: 2px;
    display: none;
}

.callbackform__message .callbackform__checkbox-input {
    display: none;
}

.callbackform__message .callbackform__checkbox-container .callbackform__checkbox-input:checked ~ .callbackform__checkbox-box {
    background-color: #2589FF;
}

.callbackform__message .callbackform__checkbox-container .callbackform__checkbox-input:checked ~ 
.callbackform__checkbox-box .callbackform__checkmark {
    display: block;
}

@media screen and (max-width: 680px) {
    .form-block {
        padding: 16px;
        border-radius: 20px;
    }

    .form-block .form-block__label {
        border-radius: 10px;
    }

    .callbackform__message .callbackform__title.big-title {
        font-size: 28px;
    }

    .callbackform__message {
        padding: 16px;
        border-radius: 20px;
    }
}

.hidden {
    display: none;
}
