/* Universal full-width wrapper inside Elementor field group */
.elementor-form .iti,
.elementor-field-group .iti {
	width: 100% !important;
	display: block !important;
	position: relative !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: normal !important;
}

/* Always vertically center the flag & dial code regardless of input height or popup styling */
.elementor-form .iti__country-container,
.elementor-field-group .iti__country-container {
	position: absolute !important;
	top: 50% !important;
	bottom: auto !important;
	left: 0 !important;
	right: auto !important;
	transform: translateY(-50%) !important;
	height: auto !important;
	max-height: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	z-index: 6 !important;
	display: flex !important;
	align-items: center !important;
	pointer-events: auto !important;
}

/* Reset aggressive theme or Elementor Popup <button> styles */
.elementor-form button.iti__selected-country,
.elementor-field-group button.iti__selected-country {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	border-radius: 4px !important;
	margin: 0 !important;
	padding: 6px 8px 6px 12px !important;
	height: auto !important;
	min-height: 0 !important;
	min-width: 0 !important;
	width: auto !important;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	cursor: pointer !important;
	pointer-events: auto !important;
	color: inherit !important;
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: 400 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	text-decoration: none !important;
	vertical-align: middle !important;
	transition: background-color 0.15s ease !important;
}

.elementor-form button.iti__selected-country:hover,
.elementor-form button.iti__selected-country:focus,
.elementor-field-group button.iti__selected-country:hover,
.elementor-field-group button.iti__selected-country:focus {
	background-color: rgba(0, 0, 0, 0.05) !important;
	box-shadow: none !important;
	outline: none !important;
}

.elementor-form .iti__selected-country-primary,
.elementor-field-group .iti__selected-country-primary {
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;
	height: auto !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 1 !important;
}

.elementor-form .iti__selected-dial-code,
.elementor-field-group .iti__selected-dial-code {
	color: inherit !important;
	font-size: 0.95em !important;
	line-height: 1 !important;
	margin-left: 2px !important;
	white-space: nowrap !important;
}

.elementor-form .iti__arrow,
.elementor-field-group .iti__arrow {
	border-top-color: currentColor !important;
	margin-left: 2px !important;
}

/* Country dropdown menu (appended to popup modal or body so overflow:hidden never clips it) */
.iti__dropdown-content {
	z-index: 2147483647 !important;
	background-color: #ffffff !important;
	color: #1f2937 !important;
	border: 1px solid #d1d5db !important;
	border-radius: 6px !important;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18) !important;
	max-width: 320px !important;
	min-width: 260px !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif !important;
	font-size: 14px !important;
	pointer-events: auto !important;
	visibility: visible !important;
	opacity: 1 !important;
	text-align: left !important;
}

.iti__dropdown-content .iti__search-input {
	width: 100% !important;
	height: auto !important;
	min-height: 38px !important;
	box-sizing: border-box !important;
	padding: 8px 12px !important;
	margin: 0 !important;
	border: none !important;
	border-bottom: 1px solid #e5e7eb !important;
	border-radius: 6px 6px 0 0 !important;
	background-color: #ffffff !important;
	color: #1f2937 !important;
	font-size: 14px !important;
	box-shadow: none !important;
	outline: none !important;
}

.iti__dropdown-content .iti__country-list {
	max-height: 230px !important;
	overflow-y: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	background-color: #ffffff !important;
}

.iti__dropdown-content .iti__country {
	padding: 8px 12px !important;
	margin: 0 !important;
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	cursor: pointer !important;
	color: #1f2937 !important;
	background-color: transparent !important;
	line-height: 1.35 !important;
}

.iti__dropdown-content .iti__country.iti__highlight,
.iti__dropdown-content .iti__country:hover {
	background-color: #f3f4f6 !important;
}

.iti__dropdown-content .iti__dial-code {
	color: #6b7280 !important;
}

/* Validation error styling */
.elementor-form input.eipv-invalid {
	border-color: #d9534f !important;
}

.elementor-form .eipv-error-message {
	display: block !important;
	width: 100% !important;
	color: #d9534f !important;
	font-size: 13px !important;
	margin-top: 5px !important;
	line-height: 1.4 !important;
}
