/* BitGenzaAI — форма 1:1 с лендингом (index.php + 92955a7c615495b0.css) */

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

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

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

.form-preloader .path {
    stroke: #ffcf23;
    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.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

form.apx-lead-form.lead-form .form-group,
form.apx-lead-form.lead-form .form__input.form-group {
    margin-bottom: 0;
    width: 100%;
}

form.apx-lead-form.lead-form .form__input.form-group {
    display: block;
}

form.apx-lead-form.lead-form input.form__input,
form.apx-lead-form.lead-form .form__input input.form__input,
form.apx-lead-form.lead-form .form__input input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(33, 53, 73, 0.51);
    border: 1px solid rgba(255, 255, 255, 0.27);
    border-radius: 0.5rem;
    color: #fff;
    font-family: var(--font-sf, "Helvetica Neue", Arial, sans-serif);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.3s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    box-shadow: none;
}

form.apx-lead-form.lead-form input.form__input::placeholder,
form.apx-lead-form.lead-form .form__input input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

form.apx-lead-form.lead-form input.form__input:focus,
form.apx-lead-form.lead-form .form__input input:focus {
    border-color: #ffcf23;
    box-shadow: 0 0 0 2px #ffcf23, 0 0 0 4px rgba(255, 207, 35, 0.5);
}

form.apx-lead-form.lead-form input.form__input.error,
form.apx-lead-form.lead-form .form__input input.error,
form.apx-lead-form.lead-form .iti input.error {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.45) !important;
}

form.apx-lead-form.lead-form .form-error,
form.apx-lead-form.lead-form .error-msg {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.3;
    color: #ff8d8d;
    font-family: var(--font-sf, "Helvetica Neue", Arial, sans-serif);
}

form.apx-lead-form.lead-form .form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 2px 0 0;
    cursor: pointer;
    user-select: none;
    font-family: var(--font-sf, "Helvetica Neue", 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;
    margin-top: 1px;
    border-radius: 4px;
    background: rgba(33, 53, 73, 0.51);
    border: 1px solid rgba(255, 255, 255, 0.27);
    position: relative;
    transition: all 0.3s ease;
}

form.apx-lead-form.lead-form .form-consent__box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #1a2a3a;
    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: #ffcf23;
    border-color: #ffcf23;
    box-shadow: 0 0 0 2px rgba(255, 207, 35, 0.3);
}

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: 0.75rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.7);
}

form.apx-lead-form.lead-form .form-submit.form__btn.btn.submit {
    display: block;
    width: 100%;
    margin-top: 1rem;
    border: 4px solid;
    border-image-slice: 4;
    border-image-source: linear-gradient(92.15deg, #ffcf23 2.09%, #ff8d3a 86.55%);
    background: linear-gradient(100.33deg, rgba(255, 207, 35, 0.2) 5.1%, rgba(255, 141, 58, 0.2) 83.56%);
    box-shadow: 0 4px 50px 0 rgba(254, 180, 75, 0.24);
    color: #fff;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    font-family: var(--font-neuepower, "Helvetica Neue", Arial, sans-serif);
    font-size: 22px;
    font-weight: 600;
    line-height: 22px;
    text-align: center;
    text-transform: uppercase;
    padding: 16px 26px;
    cursor: pointer;
    transition: all 0.5s ease;
    box-sizing: border-box;
}

form.apx-lead-form.lead-form .form-submit.form__btn.btn.submit:hover {
    width: 105%;
    margin-left: -2.5%;
    box-shadow: 0 4px 75px 0 rgba(254, 180, 75, 0.24);
}

form.apx-lead-form.lead-form .form-submit.form__btn.btn.submit:disabled {
    opacity: 0.65;
    cursor: default;
    transform: none;
    width: 100%;
    margin-left: 0;
}

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;
    padding-left: 5px !important;
}

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__selected-dial-code {
    color: #fff;
}

form.apx-lead-form.lead-form .iti input,
form.apx-lead-form.lead-form .iti input[type="tel"],
form.apx-lead-form.lead-form .iti .iti__tel-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(33, 53, 73, 0.51) !important;
    border: 1px solid rgba(255, 255, 255, 0.27) !important;
    border-radius: 0.5rem !important;
    color: #fff !important;
    font-family: var(--font-sf, "Helvetica Neue", Arial, sans-serif);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.3s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    box-shadow: none;
}

form.apx-lead-form.lead-form .iti input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

form.apx-lead-form.lead-form .iti input:focus,
form.apx-lead-form.lead-form .iti .iti__tel-input:focus {
    border-color: #ffcf23 !important;
    box-shadow: 0 0 0 2px #ffcf23, 0 0 0 4px rgba(255, 207, 35, 0.5) !important;
}

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

@media (min-width: 1024px) {
    form.apx-lead-form.lead-form .form-submit.form__btn.btn.submit {
        font-size: 28px;
        line-height: 28px;
        padding: 16px 26px;
    }
}

@media (max-width: 480px) {
    form.apx-lead-form.lead-form .form-submit.form__btn.btn.submit {
        font-size: 18px;
        line-height: 20px;
        padding: 14px 20px;
    }
}

/* Legacy generic skin (apx-lead) */
.apx-lead {
    --apx-accent: #2563eb;
    --apx-bg: #ffffff;
    --apx-text: #0f172a;
    --apx-muted: #94a3b8;
    --apx-border: #e2e8f0;
    --apx-radius: 12px;
    --apx-max: 460px;

    box-sizing: border-box;
    width: 100%;
    max-width: var(--apx-max);
    margin: 0 auto;
    padding: 5px 24px 20px 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.apx-lead * {
    box-sizing: border-box;
}

.apx-lead .apx-lead-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.apx-lead .apx-lead-row {
    display: flex;
    gap: 12px;
}

.apx-lead .apx-lead-row>* {
    flex: 1 1 0;
    min-width: 0;
}

.apx-lead input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    margin: 0;
    font-size: 15px;
    line-height: 1.2;
    color: var(--apx-text);
    background: var(--apx-bg);
    border: 1px solid var(--apx-border);
    border-radius: var(--apx-radius);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.apx-lead input::placeholder {
    color: var(--apx-muted);
    opacity: 1;
}

.apx-lead input:focus {
    border-color: var(--apx-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--apx-accent) 18%, transparent);
}

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

.apx-lead .iti input {
    padding-left: 12px;
}

.apx-lead .iti .iti__tel-input,
.apx-lead .iti input[type="tel"] {
    color: var(--apx-text) !important;
}

.apx-lead .iti__selected-dial-code,
.apx-lead .iti__selected-country {
    color: var(--apx-muted) !important;
}

.apx-lead button.submit {
    display: block;
    width: 100%;
    min-height: 54px;
    margin: 4px 0 0;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: #fff;
    background: var(--apx-accent);
    border: none;
    border-radius: var(--apx-radius);
    cursor: pointer;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease, opacity .15s ease;
}

.apx-lead button.submit:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.apx-lead button.submit:disabled {
    opacity: .6;
    cursor: default;
    transform: none;
}

@media (max-width: 480px) {
    .apx-lead {
        padding: 20px 16px;
    }

    .apx-lead .apx-lead-row {
        flex-direction: column;
    }
}
