/* Maxima Ultra — lead form (core/form.php, prefix .apx-lead) */

.apx-lead {
    --apx-accent: #10b981;
    --apx-accent-2: #4f46e5;
    --apx-bg: rgba(255, 255, 255, 0.045);
    --apx-text: #ffffff;
    --apx-muted: #718096;
    --apx-border: rgba(255, 255, 255, 0.1);
    --apx-radius: 16px;
    --apx-max: 100%;

    box-sizing: border-box;
    width: 100%;
    max-width: var(--apx-max);
    margin: 0;
    padding: 0;
    font-family: inherit;
    color: var(--apx-text);
}

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

.apx-lead .apx-lead-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 18px;
    width: 100%;
}

.apx-lead .apx-lead-row {
    display: contents;
}

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

.apx-lead input[type="email"],
.apx-lead input[type="tel"],
.apx-lead .iti {
    grid-column: 1 / -1;
}

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

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

.apx-lead input:focus {
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.apx-lead .iti {
    width: 100%;
    margin: 0 0 18px;
}

.apx-lead .iti__flag-container {
    padding-left: 8px;
}

.apx-lead .iti input {
    width: 100%;
    margin-bottom: 0;
    padding-left: 54px;
}

.apx-lead .iti__selected-flag {
    border-radius: var(--apx-radius) 0 0 var(--apx-radius);
}

.apx-lead .iti__country-list {
    background: #0b1526;
    border: 1px solid var(--apx-border);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    color: var(--apx-text);
}

.apx-lead .iti__country.iti__highlight,
.apx-lead .iti__country:hover {
    background: rgba(255, 255, 255, 0.06);
}

.apx-lead .iti__divider {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.apx-lead button[type="submit"] {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 54px;
    height: 54px;
    margin: 0;
    padding: 0 26px;
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, var(--apx-accent), var(--apx-accent-2));
    border: none;
    border-radius: var(--apx-radius);
    box-shadow: 0 14px 36px rgba(16, 185, 129, 0.18);
    cursor: pointer;
    transition: transform .25s ease, filter .25s ease, opacity .25s ease;
}

.apx-lead button[type="submit"]:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.apx-lead button[type="submit"]:disabled {
    opacity: .6;
    cursor: default;
    transform: none;
}

.apx-lead .apx-lead-error {
    grid-column: 1 / -1;
    display: block;
    margin: -8px 0 10px;
    color: #f87171;
    font-size: 13px;
    line-height: 1.3;
}

.apx-lead .apx-lead-error:empty {
    display: none;
    margin: 0;
}

@media (max-width: 768px) {
    .apx-lead .apx-lead-form {
        grid-template-columns: 1fr;
    }

    .apx-lead input[type="email"],
    .apx-lead input[type="tel"],
    .apx-lead .iti,
    .apx-lead button[type="submit"] {
        grid-column: auto;
    }
}
