.apx-lead {
    --apx-accent: #00DCFF;
    --apx-bg: rgba(5, 5, 5, 0.65);
    --apx-card: rgba(15, 15, 20, 0.92);
    --apx-text: #f9fafb;
    --apx-label: #d1d5db;
    --apx-muted: #9ca3af;
    --apx-border: rgba(255, 255, 255, 0.12);
    --apx-radius: 10px;
    --apx-max: 460px;
    --lead-accent: var(--apx-accent);
    --lead-bg: var(--apx-bg);
    --lead-text: var(--apx-text);
    --lead-muted: var(--apx-muted);
    --lead-border: var(--apx-border);
    --lead-radius: var(--apx-radius);
    --lead-max: var(--apx-max);
}

.lead-form-wrap {
    --lead-accent: #00DCFF;
    --lead-bg: rgba(5, 5, 5, 0.65);
    --lead-text: #f9fafb;
    --lead-muted: #9ca3af;
    --lead-border: rgba(255, 255, 255, 0.12);
    --lead-radius: 10px;
    --lead-max: 460px;
    box-sizing: border-box;
    width: 100%;
    max-width: var(--lead-max);
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.lead-form-wrap * {
    box-sizing: border-box;
}

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

.apx-lead-row,
.lead-form-wrap .lead-form-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 520px) {
    .apx-lead-row,
    .lead-form-wrap .lead-form-row {
        flex-direction: row;
    }
}

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

.apx-lead-field {
    display: grid;
    gap: 7px;
    width: 100%;
}

.apx-lead-field > span {
    color: var(--apx-label);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

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

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

.lead-form-wrap input:focus {
    border-color: var(--lead-accent);
    box-shadow: 0 0 0 3px rgba(56, 198, 203, 0.24);
}

.apx-lead .iti,
.lead-form-wrap .iti,
form.lead-form .iti {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    clear: both;
    overflow: visible;
}

.apx-lead-field--phone,
.lead-form-wrap .lead-form-field--phone {
    display: block;
    width: 100%;
    margin: 0;
    flex-shrink: 0;
}

.apx-lead .iti input[type="tel"],
.lead-form-wrap .iti input[type="tel"],
form.lead-form .iti input[type="tel"] {
    width: 100% !important;
    min-height: 54px;
}

.apx-lead button.submit,
.lead-form-wrap button.submit,
form.lead-form button.submit {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 100%;
    height: 56px;
    margin: 10px 0 0;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 800;
    color: #050505;
    background: linear-gradient(135deg, #00DCFF, #06b6d4);
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.lead-form-wrap button.submit:hover,
form.lead-form button.submit:hover {
    filter: brightness(1.05);
    box-shadow: 0 0 20px rgba(0, 220, 255, 0.3);
}

.lead-form-wrap button.submit:disabled {
    opacity: .6;
    cursor: default;
}

.form-error {
    color: #f87171;
    font-size: 0.78rem;
    line-height: 1.3;
}

.input-error {
    border-color: #f87171 !important;
}

.apx-lead-consent {
    margin: 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}
