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

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

.form-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
}

.form-preloader .spinner {
    animation: apx-rotate 2s linear infinite;
}

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

@keyframes apx-rotate {
    100% {
        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 {
    width: 100%;
    position: relative;
    z-index: 2;
}

form.apx-lead-form .QooFD {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-areas:
        'DRozFQlYCk1 DRozFQlYCk2'
        'DRozFQlYCk3 DRozFQlYCk3'
        'DRozFQlYCk4 DRozFQlYCk4'
        'DRozFQlYCk5 DRozFQlYCk5'
        'DRozFQlYCk6 DRozFQlYCk6';
    max-width: 500px;
    gap: 15px;
}

form.apx-lead-form .QooFD .aOehHYOZK:nth-child(1) {
    grid-area: DRozFQlYCk1;
}

form.apx-lead-form .QooFD .aOehHYOZK:nth-child(2) {
    grid-area: DRozFQlYCk2;
}

form.apx-lead-form .QooFD .lnVsWWG {
    grid-area: DRozFQlYCk3;
}

form.apx-lead-form .QooFD .UIQAjg {
    grid-area: DRozFQlYCk5;
}

form.apx-lead-form .QooFD .UtbslTJZo {
    grid-area: DRozFQlYCk6;
}

form.apx-lead-form .jUoFO {
    position: relative;
    display: block;
    width: 100%;
}

form.apx-lead-form .jUoFO input,
form.apx-lead-form .jUoFO input.form-input {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 0 12px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
    color: #333333;
    outline: none;
}

form.apx-lead-form .jUoFO input::placeholder {
    font-size: 11px;
}

form.apx-lead-form .QooFD .UtbslTJZo .form-submit {
    display: block;
    width: 100%;
    height: 40px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background-color: #f43333;
    font-weight: bold;
    color: #fff;
    line-height: 1;
    padding: 0;
    font-size: 16px;
    cursor: pointer;
    font-family: inherit;
}

form.apx-lead-form .QooFD .UtbslTJZo .form-submit:hover {
    cursor: pointer;
    opacity: 0.92;
}

form.apx-lead-form .QooFD .UtbslTJZo .form-submit:disabled {
    opacity: 0.65;
    cursor: default;
}

form.apx-lead-form .jUoFO .iti {
    width: 100%;
}

form.apx-lead-form .form-error,
form.apx-lead-form .error-msg {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.3;
    color: #c83535;
}

form.apx-lead-form .jUoFO input.error {
    border-color: #c83535 !important;
}

form.apx-lead-form .jUoFO input:not(.error).valid {
    outline: 3px solid #41ad48 !important;
    outline-offset: -1px;
}

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

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

form.apx-lead-form .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 .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 .form-consent input:checked + .form-consent__box {
    background: #2f8fea;
    border-color: #1f7bd1;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

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

form.apx-lead-form .form-consent__text {
    font-size: 14px;
    line-height: 1.25;
    color: #9aa6b2;
}

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

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

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

#form_block,
#form_block 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;
}
