/* LeperixFin — форма 1:1 с лендингом (style.css .leadform) */

.hidden,
.hide {
    display: none !important;
}

.form-preloader {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 240, 236, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: inherit;
    pointer-events: all;
}

.form-preloader .spinner {
    display: block;
    animation: apx-leadform-spin 0.85s linear infinite;
    transform-origin: 25px 25px;
}

.form-preloader .path {
    stroke: #2a9d7c;
    stroke-linecap: round;
    animation: apx-dash 1.5s ease-in-out infinite;
}

@keyframes apx-leadform-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes apx-dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

form.apx-lead-form.lead-form,
form.apx-lead-form.leadform {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
    width: 100%;
    z-index: 2;
}

form.apx-lead-form.lead-form > .form__input.form-group,
form.apx-lead-form.leadform > .form__input.form-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
}

form.apx-lead-form.lead-form .form__input.form-group > input.form__input,
form.apx-lead-form.lead-form input.form__input,
form.apx-lead-form.leadform .form__input.form-group > input.form__input,
form.apx-lead-form.leadform input.form__input {
    box-sizing: border-box;
    width: 100%;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #ddd8ce;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    outline: none;
    font-family: inherit;
    transition:
        border-color 150ms,
        box-shadow 150ms,
        background 150ms;
}

form.apx-lead-form.lead-form .form__input.form-group > input.form__input::placeholder,
form.apx-lead-form.lead-form input.form__input::placeholder,
form.apx-lead-form.leadform .form__input.form-group > input.form__input::placeholder,
form.apx-lead-form.leadform input.form__input::placeholder {
    color: #706b64;
    opacity: 1;
}

form.apx-lead-form.lead-form .form__input.form-group > input.form__input:hover,
form.apx-lead-form.lead-form input.form__input:hover,
form.apx-lead-form.leadform .form__input.form-group > input.form__input:hover,
form.apx-lead-form.leadform input.form__input:hover {
    border-color: #c4bdb2;
}

form.apx-lead-form.lead-form .form__input.form-group > input.form__input:focus,
form.apx-lead-form.lead-form input.form__input:focus,
form.apx-lead-form.leadform .form__input.form-group > input.form__input:focus,
form.apx-lead-form.leadform input.form__input:focus {
    border-color: #2a9d7c;
    box-shadow: 0 0 0 3px rgba(42, 157, 124, 0.2);
    background: #fff;
}

form.apx-lead-form.lead-form .form-submit.form__btn.btn.submit,
form.apx-lead-form.leadform .form-submit.form__btn.btn.submit,
form.apx-lead-form.lead-form button.submit,
form.apx-lead-form.leadform button.submit {
    width: 100%;
    margin-top: 0.25rem;
    padding: 16px 24px;
    border: none;
    border-radius: 100px;
    background: #2a9d7c;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(42, 157, 124, 0.35);
    transition:
        background 150ms,
        transform 150ms,
        box-shadow 150ms;
    font-family: inherit;
    text-transform: none;
}

form.apx-lead-form.lead-form .form-submit.form__btn.btn.submit:hover,
form.apx-lead-form.leadform .form-submit.form__btn.btn.submit:hover,
form.apx-lead-form.lead-form button.submit:hover,
form.apx-lead-form.leadform button.submit:hover {
    background: #1a7d5e;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(42, 157, 124, 0.45);
}

form.apx-lead-form.lead-form .form-submit.form__btn.btn.submit:active,
form.apx-lead-form.leadform .form-submit.form__btn.btn.submit:active,
form.apx-lead-form.lead-form button.submit:active,
form.apx-lead-form.leadform button.submit:active {
    transform: translateY(0);
}

form.apx-lead-form.lead-form .form-submit.form__btn.btn.submit:disabled,
form.apx-lead-form.leadform .form-submit.form__btn.btn.submit:disabled,
form.apx-lead-form.lead-form button.submit:disabled,
form.apx-lead-form.leadform button.submit:disabled {
    opacity: 0.65;
    cursor: default;
    transform: none;
}

form.apx-lead-form.lead-form .form-error,
form.apx-lead-form.lead-form .error-msg,
form.apx-lead-form.leadform .form-error,
form.apx-lead-form.leadform .error-msg {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #c0392b;
    min-height: 1.25em;
}

form.apx-lead-form.lead-form input.form__input.error,
form.apx-lead-form.leadform input.form__input.error {
    border-color: #c0392b !important;
}

form.apx-lead-form.lead-form .form-consent,
form.apx-lead-form.leadform .form-consent {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 10px 0 16px;
    cursor: pointer;
    user-select: none;
    font-family: inherit;
}

form.apx-lead-form.lead-form .form-consent input,
form.apx-lead-form.leadform .form-consent input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

form.apx-lead-form.lead-form .form-consent__box,
form.apx-lead-form.leadform .form-consent__box {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 3px;
    background: #ffffff;
    border: 1px solid #b8c2cc;
    position: relative;
}

form.apx-lead-form.lead-form .form-consent__box::after,
form.apx-lead-form.leadform .form-consent__box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: none;
}

form.apx-lead-form.lead-form .form-consent input:checked + .form-consent__box,
form.apx-lead-form.leadform .form-consent input:checked + .form-consent__box {
    background: #2a9d7c;
    border-color: #1a7d5e;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

form.apx-lead-form.lead-form .form-consent input:checked + .form-consent__box::after,
form.apx-lead-form.leadform .form-consent input:checked + .form-consent__box::after {
    display: block;
}

form.apx-lead-form.lead-form .form-consent__text,
form.apx-lead-form.leadform .form-consent__text {
    font-size: 14px;
    line-height: 1.25;
    color: #1a1a1a;
}

form.apx-lead-form .iti,
.reg-card .iti {
    position: relative;
    display: block;
    width: 100%;
}

form.apx-lead-form .iti input.form__input,
form.apx-lead-form .iti input[type="tel"] {
    padding-left: 93px;
}

form.apx-lead-form .iti .iti__country-container,
.reg-card .iti .iti__country-container {
    pointer-events: auto;
}

form.apx-lead-form .iti .iti__dropdown-content,
.reg-card .iti .iti__dropdown-content {
    box-sizing: border-box;
}

form.apx-lead-form .iti--show-selected-dial-code.iti--show-flags .iti__selected-dial-code,
.reg-card .iti--show-selected-dial-code.iti--show-flags .iti__selected-dial-code {
    font-size: 15px !important;
}

form.apx-lead-form .iti__search-input,
form.apx-lead-form .iti__flag-box,
form.apx-lead-form .iti__country-name,
.reg-card .iti__search-input,
.reg-card .iti__flag-box,
.reg-card .iti__country-name {
    color: #000000 !important;
}

.reg-card,
.reg-card form.apx-lead-form {
    overflow: visible !important;
}

.iti--container.apx-iti-dropdown {
    position: fixed !important;
    z-index: 2147483000 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.iti--container.apx-iti-dropdown .iti__dropdown-content {
    max-height: min(240px, 50vh);
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.iti__country-list {
    max-height: min(240px, 50vh) !important;
}
