/* ReizentraKI — leadform (1:1 с лендингом) */

.leadform {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
}

.leadform__fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.leadform__input {
    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;
    transition:
        border-color 150ms,
        box-shadow 150ms,
        background 150ms;
}

.leadform__input::placeholder {
    color: #706b64;
    opacity: 1;
}

.leadform__input:hover {
    border-color: #c4bdb2;
}

.leadform__input:focus {
    outline: none;
    border-color: #2a9d7c;
    box-shadow: 0 0 0 3px rgba(42, 157, 124, 0.2);
    background: #fff;
}

.leadform__input--tel {
    letter-spacing: 0.02em;
}

.leadform .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;
}

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

.leadform .submit:active {
    transform: translateY(0);
}

.leadform .submit:disabled {
    opacity: 0.65;
    cursor: default;
    transform: none;
}

.leadform .error-msg {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #c0392b;
    min-height: 1.25em;
    line-height: 1.35;
}

.leadform .error-msg.hide {
    display: none;
}

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

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

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

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

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

.form-consent__text {
    font-size: 14px;
    line-height: 1.25;
    color: #000000;
}

.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.hidden {
    display: none !important;
}

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

.leadform .spinner .path {
    stroke: #2a9d7c;
}

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

.hide {
    display: none !important;
}

/* intl-tel-input внутри leadform */
form.apx-lead-form.leadform .iti,
.leadform .iti {
    position: relative;
    display: block;
    width: 100%;
    z-index: 5;
}

form.apx-lead-form.leadform .iti input.leadform__input,
.leadform .iti input.leadform__input,
.leadform .iti .iti__tel-input {
    width: 100%;
    padding-left: 16px;
}

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

.reg-card,
.hero__right,
.leadform {
    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;
}

/* Legacy skins (vip, com, net, org, it) */
.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;
    }
}

.form-card .apx-lead {
    --apx-accent: linear-gradient(135deg, #0f766e, #14b8a6);
    --apx-bg: #f8fafc;
    --apx-text: #0f172a;
    --apx-muted: #94a3b8;
    --apx-border: #e2e8f0;
    --apx-radius: 10px;
    --apx-max: 100%;
    padding: 0;
    margin: 0;
}

.form-card .apx-lead input:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.form-card .apx-lead button.submit {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    border-radius: 10px;
    box-shadow: 0 4px 14px -2px rgba(15, 118, 110, 0.45);
}

.form-card .apx-lead button.submit:hover {
    background: linear-gradient(135deg, #115e59, #0f766e);
    filter: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -4px rgba(15, 118, 110, 0.5);
}

.hero__form,
.hero__form .form__wrapper,
.hero__form .form__body,
.form-card,
.form-wrapper,
.form-wrapper__top,
.form-wrapper__top-content,
.apx-lead {
    overflow: visible !important;
}

.apx-lead .iti,
.form-card .iti,
.form-wrapper .iti,
.hero__form .iti {
    position: relative;
    z-index: 5;
    width: 100%;
}
