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

.novateplica-lead-form .iti__tel-input {
    width: 100%;
    min-height: 58px;
    padding-right: 20px;
}

.novateplica-lead-form .iti__country-container {
    top: 0;
    bottom: 0;
    padding: 0;
}

/* The form has generic button styles. Reset them for intl-tel-input's
   internal country selector so it remains a compact part of the field. */
.novateplica-lead-form .iti__selected-country {
    min-height: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px 0 0 12px !important;
    background: transparent !important;
    background-image: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    color: #111827 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    white-space: nowrap;
}

.novateplica-lead-form .iti__selected-country:hover,
.novateplica-lead-form .iti__selected-country:focus,
.novateplica-lead-form .iti__selected-country[aria-expanded="true"] {
    min-height: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-image: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    color: #111827 !important;
    box-shadow: none !important;
    transform: none !important;
}

.novateplica-lead-form .iti__selected-country-primary {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 8px !important;
    gap: 8px;
}

.novateplica-lead-form .iti__selected-dial-code {
    margin-left: 0;
    color: #31c36a;
    font-weight: 500;
}

/* Keep exactly one consistent chevron; the open state is handled by the
   library and changes it to an upward chevron only while the list is open. */
.novateplica-lead-form .iti__arrow {
    width: 7px !important;
    height: 7px !important;
    margin: -2px 0 0 2px !important;
    border: 0 !important;
    border-right: 2px solid #64748b !important;
    border-bottom: 2px solid #64748b !important;
    background: transparent !important;
    transform: rotate(45deg) !important;
    opacity: 1 !important;
}

.novateplica-lead-form .iti__arrow--up {
    margin-top: 4px !important;
    border-right: 2px solid #64748b !important;
    border-bottom: 2px solid #64748b !important;
    transform: rotate(-135deg) !important;
}

/* The country search has its own clear button; do not let the submit-button
   rules turn it into a second green control inside the dropdown. */
.novateplica-lead-form .iti__search-clear {
    min-height: 0 !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    transform: none !important;
}

.novateplica-lead-form .iti__search-clear:hover,
.novateplica-lead-form .iti__search-clear:focus {
    min-height: 0 !important;
    margin: 0 !important;
    background: rgba(0, 0, 0, 0.05) !important;
    box-shadow: none !important;
    transform: none !important;
}

/* The search field is also an input inside the form, so reset the form's
   large rounded input and green focus-ring rules here. */
.novateplica-lead-form .iti__search-input {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 40px !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #111827 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    box-shadow: none !important;
    outline: none !important;
}

.novateplica-lead-form .iti__search-input:focus {
    min-height: 0 !important;
    border: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    outline: none !important;
}

.novateplica-lead-form .iti__country-list {
    z-index: 10001;
}

.novateplica-lead-form .iti--inline-dropdown .iti__dropdown-content {
    max-width: 100%;
}

html[data-theme="dark"] .novateplica-lead-form .iti__country-list,
body[data-theme="dark"] .novateplica-lead-form .iti__country-list,
body.dark-theme .novateplica-lead-form .iti__country-list,
body.dark .novateplica-lead-form .iti__country-list {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.34);
    color: #f8fafc;
}

html[data-theme="dark"] .novateplica-lead-form .iti__country:hover,
body[data-theme="dark"] .novateplica-lead-form .iti__country:hover,
body.dark-theme .novateplica-lead-form .iti__country:hover,
body.dark .novateplica-lead-form .iti__country:hover {
    background: #1e293b;
}

/* Dark theme for the complete country picker, including mobile popup. */
html[data-theme="dark"] .iti__country-selector,
body[data-theme="dark"] .iti__country-selector,
body.dark-theme .iti__country-selector,
body.dark .iti__country-selector {
    background: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.34) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .iti__country-list,
body[data-theme="dark"] .iti__country-list,
body.dark-theme .iti__country-list,
body.dark .iti__country-list,
html[data-theme="dark"] .iti__country,
body[data-theme="dark"] .iti__country,
body.dark-theme .iti__country,
body.dark .iti__country {
    background: #0f172a !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .iti__country:hover,
body[data-theme="dark"] .iti__country:hover,
body.dark-theme .iti__country:hover,
body.dark .iti__country:hover,
html[data-theme="dark"] .iti__country[aria-selected="true"],
body[data-theme="dark"] .iti__country[aria-selected="true"],
body.dark-theme .iti__country[aria-selected="true"],
body.dark .iti__country[aria-selected="true"] {
    background: #1e293b !important;
    color: #fff !important;
}

html[data-theme="dark"] .iti__country-name,
body[data-theme="dark"] .iti__country-name,
body.dark-theme .iti__country-name,
body.dark .iti__country-name,
html[data-theme="dark"] .iti__dial-code,
body[data-theme="dark"] .iti__dial-code,
body.dark-theme .iti__dial-code,
body.dark .iti__dial-code {
    color: #f8fafc !important;
}

html[data-theme="dark"] .iti__search-input-wrapper,
body[data-theme="dark"] .iti__search-input-wrapper,
body.dark-theme .iti__search-input-wrapper,
body.dark .iti__search-input-wrapper {
    background: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.34) !important;
}

html[data-theme="dark"] .iti__search-input,
body[data-theme="dark"] .iti__search-input,
body.dark-theme .iti__search-input,
body.dark .iti__search-input {
    background: #0f172a !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .iti__search-input::placeholder,
body[data-theme="dark"] .iti__search-input::placeholder,
body.dark-theme .iti__search-input::placeholder,
body.dark .iti__search-input::placeholder {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .iti__search-icon-svg,
body[data-theme="dark"] .iti__search-icon-svg,
body.dark-theme .iti__search-icon-svg,
body.dark .iti__search-icon-svg {
    stroke: #cbd5e1 !important;
}

@media (max-width: 480px) {
    .novateplica-lead-form .iti__tel-input {
        min-height: 54px;
        font-size: 15px;
    }

    .novateplica-lead-form .iti--fullscreen-popup.iti--detached-country-selector {
        z-index: 100000 !important;
    }

    .novateplica-lead-form .iti--fullscreen-popup .iti__country-selector {
        width: min(calc(100vw - 32px), 420px) !important;
        max-width: none !important;
        max-height: min(72vh, 520px) !important;
        margin: 42px auto 0;
        border-radius: 10px;
        overflow: hidden;
    }
}

/* On small screens intl-tel-input detaches the country picker from the
   modal. Keep it above the modal backdrop and give the detached panel the
   same readable width as the rest of the form. */
.iti--fullscreen-popup.iti--detached-country-selector {
    z-index: 100000 !important;
    inset: 0 !important;
    padding: 16px !important;
    align-items: center;
}

.iti--fullscreen-popup .iti__country-selector {
    width: min(calc(100vw - 32px), 420px) !important;
    max-width: none !important;
    max-height: min(72vh, 520px) !important;
    margin: 42px auto 0;
    border-radius: 10px;
    overflow: hidden;
}

/* intl-tel-input places its close button above the fullscreen panel by
   default. Keep it inside the compact panel so it remains visible in the
   dark callback modal as well. */
.iti--fullscreen-popup .iti__close-button {
    top: 8px !important;
    right: 8px !important;
    bottom: auto !important;
    z-index: 2;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(148, 163, 184, 0.24) !important;
    color: #e2e8f0 !important;
}

.iti--fullscreen-popup .iti__close-button:hover,
.iti--fullscreen-popup .iti__close-button:focus-visible {
    background: rgba(148, 163, 184, 0.42) !important;
    color: #fff !important;
}
