.apx-lead-shell {
    box-sizing: border-box;
    max-width: 485px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(143deg, #b6ff6f 0%, #beed8f 100%);
    border-radius: 10px;
}

.apx-lead-shell .form__header {
    text-align: center;
    margin-bottom: 20px;
}

.apx-lead-shell .form__header h3 {
    font-size: 21px;
    margin: 0 0 20px;
    font-weight: 900;
    color: #000;
    font-family: Montserrat, Nunito, sans-serif;
}

.apx-lead-shell .form__header p {
    font-size: 21px;
    line-height: 150%;
    margin: 0;
    color: #000;
    font-family: Montserrat, Nunito, sans-serif;
}

.apx-lead {
    --apx-accent: #beed8f;
    --apx-bg: transparent;
    --apx-text: #faf8ff;
    --apx-muted: #faf8ff;
    --apx-border: #000000;
    --apx-radius: 20px;
    --apx-max: 100%;

    box-sizing: border-box;
    width: 100%;
    max-width: var(--apx-max);
    margin: 0;
    padding: 0;
    font-family: Montserrat, Nunito, sans-serif;
    background: none;
}

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

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

.apx-lead .apx-lead-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.apx-lead .apx-lead-row > * {
    flex: none;
    width: 100%;
    min-width: 0;
}

.apx-lead input[type="text"]:not(.iti__search-input),
.apx-lead input[type="email"] {
    width: 100%;
    min-height: auto;
    padding: 30px 15px;
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    color: var(--apx-text);
    background: linear-gradient(176deg, rgba(51, 51, 51, 0.4) 0%, rgba(80, 79, 79, 0.4) 100%);
    border: 1px solid var(--apx-border);
    border-radius: var(--apx-radius);
    outline: none;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
}

.apx-lead input:not(.iti__search-input)::placeholder {
    color: var(--apx-muted);
    opacity: 1;
    font-family: Montserrat, Nunito, sans-serif;
    font-size: 22px;
    font-weight: 400;
}

.apx-lead input[type="text"]:not(.iti__search-input):focus,
.apx-lead input[type="email"]:focus {
    border-color: #beed8f;
    box-shadow: #fff 0 0 0 0, #beed8f 0 0 0 2px, rgba(0, 0, 0, 0.05) 0 1px 2px 0;
}

.apx-lead .iti {
    position: relative;
    width: 100%;
    display: flex;
    align-items: stretch;
    font-size: 22px;
    line-height: 1.2;
    border: 1px solid var(--apx-border);
    border-radius: var(--apx-radius);
    overflow: visible;
    background: linear-gradient(176deg, rgba(51, 51, 51, 0.4) 0%, rgba(80, 79, 79, 0.4) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.apx-lead .iti__country-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    font-size: inherit;
    line-height: inherit;
    z-index: 2;
}

.apx-lead .iti__selected-country {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    margin: 0;
    padding: 0 10px;
    background: transparent;
    border: none;
    border-radius: var(--apx-radius) 0 0 var(--apx-radius);
    cursor: pointer;
}

.apx-lead .iti__selected-country-primary {
    display: flex;
    align-items: center;
}

.apx-lead .iti__selected-dial-code {
    color: var(--apx-text);
    font-size: inherit;
    line-height: inherit;
    font-family: Montserrat, Nunito, sans-serif;
}

.apx-lead .iti input[type="tel"] {
    flex: 1 1 auto;
    width: 100%;
    min-height: auto;
    padding: 30px 15px;
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    color: var(--apx-text);
    background: transparent !important;
    border: none !important;
    border-radius: var(--apx-radius) !important;
    outline: none;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.apx-lead .iti input[type="tel"]::placeholder {
    color: var(--apx-muted);
    font-size: inherit;
}

.apx-lead .iti:focus-within {
    border-color: #beed8f;
    box-shadow: #fff 0 0 0 0, #beed8f 0 0 0 2px, rgba(0, 0, 0, 0.05) 0 1px 2px 0;
}

.apx-lead button.submit {
    width: 100%;
    min-height: 84px;
    margin: 0;
    padding: 12px 20px;
    font-size: 22px;
    font-weight: 600;
    font-family: Montserrat, Nunito, sans-serif;
    color: #1e1e1e;
    background: linear-gradient(143deg, #b6ff6f 0%, #beed8f 100%);
    border: 1px solid #000;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.apx-lead button.submit:hover,
.apx-lead button.submit:active {
    color: #beed8f;
    background: #333;
}

.apx-lead button.submit:disabled {
    opacity: 0.6;
    cursor: default;
}

/* Phone dropdown overlay safety */
.iti--container {
    z-index: 99999;
}

.iti--container.iti--fullscreen-popup {
    pointer-events: none;
}

.iti--container.iti--fullscreen-popup .iti__dropdown-content {
    pointer-events: auto;
}

.apx-lead .iti__dropdown-content {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.apx-lead .iti__search-input {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    margin: 0;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    line-height: 1.3;
    color: #000;
    background: #fff;
    border-radius: 0;
}

.apx-lead .iti__country-list {
    position: static !important;
    z-index: auto;
    width: 100% !important;
    max-height: 200px;
    margin: 0;
    padding: 0;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow-y: auto;
}

.apx-lead .iti__country {
    padding: 10px 12px;
    color: #000;
    border-radius: 0;
}

.apx-lead .iti__country.iti__highlight,
.apx-lead .iti__country:hover {
    background: #f5f5f5;
}

.apx-lead .iti__country-name,
.apx-lead .iti__dial-code {
    color: #333;
}

@media (max-width: 1280px) {
    .apx-lead .iti {
        font-size: 16px;
    }

    .apx-lead input[type="text"]:not(.iti__search-input),
    .apx-lead input[type="email"],
    .apx-lead .iti input[type="tel"],
    .apx-lead input:not(.iti__search-input)::placeholder,
    .apx-lead .iti input[type="tel"]::placeholder,
    .apx-lead .iti__selected-dial-code {
        font-size: 16px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .apx-lead button.submit {
        font-size: 16px;
        min-height: 54px;
    }
}

@media (max-width: 992px) {
    .apx-lead input[type="text"]:not(.iti__search-input),
    .apx-lead input[type="email"],
    .apx-lead .iti input[type="tel"] {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .apx-lead button.submit {
        min-height: 74px;
    }
}

@media (max-width: 576px) {
    .apx-lead-shell {
        padding: 16px;
    }

    .apx-lead input[type="text"]:not(.iti__search-input),
    .apx-lead input[type="email"],
    .apx-lead .iti input[type="tel"],
    .apx-lead input:not(.iti__search-input)::placeholder,
    .apx-lead .iti input[type="tel"]::placeholder,
    .apx-lead .iti__selected-dial-code {
        font-size: 16px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .apx-lead button.submit {
        font-size: 16px;
        min-height: 54px;
    }
}
