/* ZemantraKI — стили формы 1:1 с оригиналом (style.css) */

.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;
    -webkit-appearance: none;
    appearance: none;
}

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

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