.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 {
    position: relative;
    padding: 40px 48px;
    background: #fff;
    border: 1px solid rgb(149, 149, 149, 0.5);
    border-radius: 32px;
}

.callbackform__message .callbackform__agreecheck {
    display: flex;
    gap: 10px;
}

.callbackform__message .callbackform__agreecheck a {
    display: inline;
    color: inherit;
    text-decoration: underline;
}

.callbackform__message .callbackform__agreecheck .custom-checkbox {
    height: fit-content;
}

.callbackform__agreecheck .custom-checkbox__checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    height: fit-content;
    height: 18px;
    width: 18px;
    border-radius: 2px;
    border: 1px solid #b2b3bf;
    background-color: #FCFCFC;
    flex-shrink: 0;
    margin-top: 2px;
}

.callbackform__agreecheck .custom-checkbox__checkbox .custom-checkbox__checkbox-img {
    height: 14px;
    width: 14px;
    object-fit: contain;
    display: none;
}

.callbackform__agreecheck .custom-checkbox {
    display: none;
}

.callbackform__agreecheck .custom-checkbox:checked + .custom-checkbox__checkbox .custom-checkbox__checkbox-img {
    display: block;
}

.callbackform__message_thnx-with-email {
    text-align: center;
}
.callbackform__message_thnx-with-email .callbackform__description {
    margin: 8px auto 0;
    width: 90%;
}

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

.callbackform__title {
    font-weight: 600;
    font-size: 40px;
    line-height: 44px;
    color: #474766;
}

.callbackform__description {
    font-size: 18px;
    line-height: 22px;
    color: #474766;
    margin: 16px 0 8px 0;
}

.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__btn {
    width: 100%;
    text-align: center;
    font-size: 18px;
    line-height: 20px;
    color: #FFFFFF;
    padding: 16px 24px;
    margin: 24px 0 0 0;
    background: #2589FF;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: .2s all;
}

.callbackform__btn_disabled {
    background: #E7E7E7;
    color: #A3A3B2;
}

.callbackform__btn:hover {
    background: #489CFF;
}

.callbackform__btn_disabled:hover {
    background: #E2E2E2;
}

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

.callbackform__legal-notice a {
    color: inherit;
}

.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 rgb(240, 240, 240, 0.9);
    border-radius: 12px;
    display: block;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    line-height: 20px;
    color: #F0F0F0;
    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;
}

@keyframes input-error {
0% {
    transform: translate(0);
}

33% {
    transform: translate(5px);
}

66% {
    transform: translate(-5px);
}

100% {
    transform: translate(0);
}
}

/*new styles*/
.hidden {
    display: none;
}

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

.callbackform___stap-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 {
    text-decoration: underline;
    cursor: pointer;
    width: max-content;
    font-size: 18px;
    line-height: 28px;
    color: #A3A3B2;
    margin: 32px 0 0 0;
}

.callbackform__arrow-back {
    position: absolute;
    top: -20px;
    left: -30px;
    cursor: pointer;
    opacity: 0.5;
}
.callbackform__arrow-back:hover {
    opacity: 1;
}

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

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

.callbackform__message_thnx {
    display: none;
}

.callbackform__title_ltl {
    font-size: 24px;
    line-height: 32px;
}
@media screen and (max-width: 750px) {
    .callbackform__arrow-back {
        top: -19px;
        left: -12px;
    }

    .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;
    }
}

/*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: 1;
    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-family: Mulish;
    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;
    position: relative;
    z-index: 1;
}

.form-block .form-block__label.error-shown {
    margin-bottom: 10px;
}

.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__title {
    margin-bottom: 20px;
    font-weight: 800;
    font-size: 24px;
    line-height: 130%;
    letter-spacing: 0%;
}

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

.callbackform__message {
    padding: 40px;
    border-radius: 32px;
}

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

.callbackform__message .callbackform__input-container:last-child {
    margin-bottom: 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,
.callbackform__message .callbackform__btn {
    font-weight: 600;
    font-size: 18px;
    line-height: 133%;
    letter-spacing: 0%;
    text-align: center;
    color: #fff;
    background-color: #2589FF;
    display: flex;
    padding: 16px 30px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    justify-content: space-between;
    text-decoration: none;
}

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

@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;
    }
}

