.apx-lead {
    --apx-accent: hsl(25 95% 55%);
    --apx-accent-to: hsl(25 95% 65%);
    --apx-bg: hsl(220 25% 18% / 0.5);
    --apx-text: hsl(210 40% 98%);
    --apx-muted: hsl(215 20% 65%);
    --apx-border: hsl(220 20% 20% / 0.5);
    --apx-ring: hsl(25 95% 55%);
    --apx-radius: 0.75rem;
    --apx-max: 460px;
    --apx-shadow-button: 0 4px 20px -2px hsla(25, 95%, 55%, 0.4);
    --apx-shadow-glow: 0 0 40px hsla(25, 95%, 55%, 0.3);

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

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

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

.apx-lead .apx-lead-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.apx-lead input {
    width: 100%;
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0.625rem 0.75rem;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.25;
    color: var(--apx-text);
    background: var(--apx-bg);
    border: 1px solid var(--apx-border);
    border-radius: var(--apx-radius);
    outline: none;
    transition: box-shadow 0.15s ease, border-color 0.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-ring);
    box-shadow: 0 0 0 2px var(--apx-ring);
}

.apx-lead input:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

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

.apx-lead .iti__selected-country {
    width: auto !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--apx-text) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    transform: none !important;
    cursor: pointer;
}

.apx-lead .iti__selected-country:hover,
.apx-lead .iti__selected-country:active,
.apx-lead .iti__selected-country:focus {
    transform: none !important;
    box-shadow: none !important;
    background: none !important;
    filter: none !important;
}

.apx-lead .iti__selected-dial-code {
    color: var(--apx-text);
}

.apx-lead .iti__arrow {
    border-top-color: var(--apx-muted);
}

.apx-lead button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 3rem;
    margin: 1rem 0 0;
    padding: 0 2rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: hsl(210 40% 98%);
    background: linear-gradient(to right, var(--apx-accent), var(--apx-accent-to));
    border: none;
    border-radius: var(--apx-radius);
    box-shadow: var(--apx-shadow-button);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.15s ease;
}

.apx-lead button[type="submit"]:hover {
    transform: scale(1.05);
    box-shadow: var(--apx-shadow-glow);
}

.apx-lead button[type="submit"]:active {
    transform: scale(1);
}

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

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