.apx-lead {
    --apx-accent: #f5b342;
    --apx-radius: 10px;
    --apx-bg: #f8fafc;
    --apx-text: #1e293b;
    --apx-border: #e2e8f0;
    --apx-muted: #64748b;
    --apx-max: 100%;

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

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

.apx-lead .apx-lead-form,
.apx-lead .apx-lead-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.apx-lead .apx-lead-form {
    margin: 0;
    padding: 0;
}

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

.apx-lead input {
    width: 100%;
    min-width: 0;
    min-height: 47px;
    padding: 12px 16px;
    margin: 0;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.2;
    color: var(--apx-text);
    background: var(--apx-bg);
    border: 1.5px solid var(--apx-border);
    border-radius: var(--apx-radius);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
}

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

.apx-lead input:focus {
    border-color: #2a5a9c;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(26, 58, 107, 0.08);
}

.apx-lead .iti {
    width: 100%;
    min-width: 0;
}

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

.apx-lead .iti__selected-country {
    background: transparent;
    box-shadow: none;
    color: var(--apx-text);
    height: auto;
    min-height: 0;
    padding: 0;
    font: inherit;
}

.apx-lead .iti__country-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.apx-lead .iti__country-name,
.apx-lead .iti__no-results {
    color: var(--apx-text);
}

.apx-lead .apx-lead-form > button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin: 8px 0 0;
    padding: 16px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.2;
    color: #0a192f;
    background: linear-gradient(135deg, var(--apx-accent) 0%, #e0a020 100%);
    border: none;
    border-radius: var(--apx-radius);
    box-shadow: 0 4px 16px rgba(245, 179, 66, 0.3);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.apx-lead .apx-lead-form > button[type="submit"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.apx-lead .apx-lead-form > button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 179, 66, 0.5);
}

.apx-lead .apx-lead-form > button[type="submit"]:hover::after {
    left: 100%;
}

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