/* BitGenzaAI landing — форма 1:1 с index.php (#form_block / .QooFD) */

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

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

.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 {
    position: relative;
    display: grid;
    width: 100%;
    max-width: 500px;
    gap: 15px;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "first last"
        "email email"
        "phone phone"
        "consent consent"
        "submit submit";
}

form.apx-lead-form.lead-form input[type="hidden"] {
    display: none !important;
}

form.apx-lead-form.lead-form .form__input.form-group {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
}

form.apx-lead-form.lead-form .form__input.form-group:nth-child(2) {
    grid-area: first;
}

form.apx-lead-form.lead-form .form__input.form-group:nth-child(3) {
    grid-area: last;
}

form.apx-lead-form.lead-form .form__input.form-group:nth-child(4) {
    grid-area: email;
}

form.apx-lead-form.lead-form .form__input.form-group:nth-child(5) {
    grid-area: phone;
}

form.apx-lead-form.lead-form .form__input input.form__input,
form.apx-lead-form.lead-form input.form__input {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 10px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #fff;
    color: #1e1e21;
    font-size: 14px;
    line-height: 1.2;
    outline: none;
    box-shadow: none;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    transition: none;
}

form.apx-lead-form.lead-form .form__input input.form__input::placeholder,
form.apx-lead-form.lead-form input.form__input::placeholder {
    font-size: 11px;
    color: #767680;
    opacity: 1;
}

form.apx-lead-form.lead-form .form__input input.form__input:focus,
form.apx-lead-form.lead-form input.form__input:focus {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: none;
}

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

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

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

form.apx-lead-form.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.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.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.lead-form .form-consent input:checked + .form-consent__box::after {
    display: block;
}

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

form.apx-lead-form.lead-form .form-submit.form__btn.btn.submit,
form.apx-lead-form.lead-form .form-submit {
    grid-area: submit;
    display: block;
    width: 100%;
    height: 40px;
    margin: 0;
    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: 14px;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    box-shadow: none;
    transition: none;
}

form.apx-lead-form.lead-form .form-submit.form__btn.btn.submit:hover,
form.apx-lead-form.lead-form .form-submit:hover {
    cursor: pointer;
    background-color: #f43333;
    letter-spacing: normal;
    box-shadow: none;
    transform: none;
}

form.apx-lead-form.lead-form .form-submit.form__btn.btn.submit:active,
form.apx-lead-form.lead-form .form-submit:active {
    transform: none;
    box-shadow: none;
}

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

form.apx-lead-form.lead-form .form-error:not(:empty),
form.apx-lead-form.lead-form .error-msg:not(.hide):not(:empty) {
    display: block;
    font-size: 11px;
    position: absolute;
    z-index: 10;
    margin-top: 2px;
    top: 100%;
    left: 0;
    color: #ffffff;
    background: rgb(200, 53, 53);
    box-shadow: 0 6px 2px -2px rgba(211, 77, 77, 0.47);
    padding: 4px 10px;
    border-radius: 1px;
    pointer-events: none;
}

form.apx-lead-form.lead-form .form-error:not(:empty)::before,
form.apx-lead-form.lead-form .error-msg:not(.hide):not(:empty)::before {
    content: "";
    width: 0;
    height: 0;
    top: -5px;
    position: absolute;
    left: 6px;
    border-left: 5px solid rgba(0, 0, 0, 0);
    border-right: 5px solid rgba(0, 0, 0, 0);
    border-bottom: 5px solid #c83535;
}

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

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

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

form.apx-lead-form.lead-form .iti input[type="tel"] {
    width: 100%;
    height: 40px;
}

form.apx-lead-form,
form.apx-lead-form.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;
}
