html {
    scroll-behavior: auto;
    scroll-padding-top: 0;
}

.wpcf7 form .wpcf7-response-output {
    display: none !important;
}

.wpcf7-not-valid-tip {
    display: none !important;
}

.wpcf7 form .wpcf7-form-control-wrap {
    display: flex;
}

.wpcf7 form .wpcf7-not-valid {
    border: 1px solid #dc3232 !important;
    box-shadow: 0 0 0 1px #dc3232 inset !important;
}

.wpcf7 form input,
.wpcf7 form textarea,
.wpcf7 form select {
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.cf7-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.cf7-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cf7-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 30, 0.55);
    backdrop-filter: blur(3px);
}

.cf7-modal__dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 18px;
    padding: 34px 28px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.cf7-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    padding: 0;
    border-radius: 50%;
    background: #f3f5f8;
    color: #1f2937;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.cf7-modal__close:hover {
    background: #e9edf3;
    transform: rotate(90deg);
}

.cf7-modal__icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
}

.cf7-modal__title {
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.cf7-modal__text {
    font-size: 16px;
    line-height: 1.55;
    color: #4b5563;
}

.cf7-modal.is-success .cf7-modal__icon {
    background: rgba(34, 197, 94, 0.14);
    color: #16a34a;
}

.cf7-modal.is-success .cf7-modal__icon::before {
    content: "✓";
}

.cf7-modal.is-error .cf7-modal__icon {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
}

.cf7-modal.is-error .cf7-modal__icon::before {
    content: "!";
}

body.cf7-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .cf7-modal__dialog {
        max-width: 100%;
        padding: 30px 20px 24px;
        border-radius: 16px;
    }

    .cf7-modal__title {
        font-size: 22px;
    }

    .cf7-modal__text {
        font-size: 15px;
    }
}


.floating-callback-btn {
    position: fixed;
    right: 45px;
    bottom: 55px;
    z-index: 9998;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #00816f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(0, 129, 111, 0.32);
    transition: transform .2s ease, box-shadow .2s ease;
    animation: callbackPulse 2s infinite;
}

.floating-callback-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 129, 111, 0.42);
}

.floating-callback-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-callback-btn__icon svg {
    width: 28px;
    height: 28px;
}

@keyframes callbackPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 129, 111, 0.45), 0 16px 34px rgba(0, 129, 111, 0.32);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(0, 129, 111, 0), 0 16px 34px rgba(0, 129, 111, 0.32);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 129, 111, 0), 0 16px 34px rgba(0, 129, 111, 0.32);
    }
}

.site-modal,
.site-modal-result {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.site-modal.is-open,
.site-modal-result.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-modal__overlay,
.site-modal-result__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 22, 0.6);
    backdrop-filter: blur(4px);
}

.site-modal__dialog,
.site-modal-result__dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 24px;
    padding: 34px 28px 28px;
    box-shadow: 0 24px 70px rgba(16, 24, 40, 0.22);
}

.site-modal__close,
.site-modal-result__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    padding: 0;
    border-radius: 50%;
    background: #f2f5f7;
    color: #14232b;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.site-modal__close:hover,
.site-modal-result__close:hover {
    background: #e8eef1;
    transform: rotate(90deg);
}

.cf7-modal-form__title {
    margin: 0 0 20px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    color: #102128;
}

.cf7-modal-form__field {
    display: block;
    margin-bottom: 14px;
}

.cf7-modal-form__field .wpcf7-form-control {
    width: 100%;
    min-height: 58px;
    border: 1px solid #d9e2e6;
    border-radius: 16px;
    background: #fff;
    padding: 0 18px;
    font-size: 16px;
    color: #102128;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    box-sizing: border-box;
}

.cf7-modal-form__field textarea.wpcf7-form-control {
    height: 120px;
    padding: 16px 18px;
    resize: vertical;
}

.cf7-modal-form__field .wpcf7-form-control:focus {
    outline: none;
    border-color: #00816f;
    box-shadow: 0 0 0 4px rgba(0, 129, 111, 0.12);
}
.cf7-modal-form br{
    display: none;
}
.cf7-modal-form .wpcf7-not-valid-tip,
.cf7-modal-form .wpcf7-response-output {
    display: none !important;
}

.cf7-modal-form .wpcf7-not-valid {
    border-color: #d93025 !important;
    box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.12) !important;
}

.cf7-modal-form__bottom {
    margin-top: 18px;
}

.cf7-modal-form__submit {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 16px;
    background: #00816f;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.cf7-modal-form__submit:hover {
    background: #006f60;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(0, 129, 111, 0.22);
}

.cf7-modal-form__submit:active {
    transform: translateY(0);
}

.cf7-modal-form__policy {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    color: #6b7280;
}

.cf7-modal-form__policy a {
    color: #00816f;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 129, 111, 0.28);
}

.cf7-modal-form__policy a:hover {
    border-color: #00816f;
}

.site-modal-result__dialog {
    max-width: 440px;
    text-align: center;
    padding-top: 36px;
}

.site-modal-result__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-modal-result__title {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #102128;
    margin-bottom: 10px;
}

.site-modal-result__text {
    font-size: 16px;
    line-height: 1.55;
    color: #5b6670;
}

.site-modal-result.is-success .site-modal-result__icon {
    background: rgba(0, 129, 111, 0.12);
    color: #00816f;
}

.site-modal-result.is-success .site-modal-result__icon::before {
    content: "✓";
    font-size: 34px;
    font-weight: 700;
}

.site-modal-result.is-error .site-modal-result__icon {
    background: rgba(217, 48, 37, 0.12);
    color: #d93025;
}

.site-modal-result.is-error .site-modal-result__icon::before {
    content: "!";
    font-size: 34px;
    font-weight: 700;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .floating-callback-btn {
        left: 16px;
        bottom: 16px;
        width: 62px;
        height: 62px;
    }

    .site-modal__dialog,
    .site-modal-result__dialog {
        max-width: 100%;
        padding: 28px 18px 20px;
        border-radius: 18px;
    }

    .cf7-modal-form__title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .cf7-modal-form__field .wpcf7-form-control,
    .cf7-modal-form__submit {
        min-height: 54px;
        font-size: 15px;
        border-radius: 14px;
    }

    .cf7-modal-form__field textarea.wpcf7-form-control {
        min-height: 110px;
    }

    .site-modal-result__title {
        font-size: 24px;
    }

    .site-modal-result__text {
        font-size: 15px;
    }
}

.wpcf7-form-control.wpcf7-text{
    width: 100%;
}

.header-mobile-phone {
    display: none;
}

@media (max-width: 991px) {
    .header-logo-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .header-mobile-phone {
        display: block;
        line-height: 1;
    }

    .header-mobile-phone a {
        margin-left: -20px;
        display: inline-block;
        font-size: 15px;
        font-weight: 700;
        color: #fff;
        text-decoration: none;
        transition: opacity .2s ease;
    }

    .header-mobile-phone a:hover {
        opacity: .75;
    }
    body.wp-custom-logo .headroom--not-top .custom-logo-link img{
        max-height: 55px;
    }
}