/* SnapRecruit Unified International Country + Phone + WhatsApp Input */
.snap-phone-root {
	position: relative;
	width: 100%;
	font-family: inherit;
}

.snap-phone-wrap {
	display: flex;
	align-items: stretch;
	width: 100%;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	position: relative;
}

.snap-phone-wrap:focus-within {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.snap-phone-wrap.is-valid {
	border-color: #16a34a;
}

.snap-phone-wrap.is-invalid {
	border-color: #dc2626;
	background-color: #fef2f2;
}

.snap-phone-wrap.is-readonly {
	background-color: #f8fafc;
}

.snap-phone-country-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 10px 0 11px;
	min-height: 40px;
	background: #f8fafc;
	border: none;
	border-right: 1px solid #cbd5e1;
	border-radius: 7px 0 0 7px;
	cursor: pointer;
	font-size: 13.5px;
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
	flex-shrink: 0;
	line-height: 1;
	transition: background-color 0.15s ease;
}

.snap-phone-country-btn:hover:not(:disabled) {
	background: #f1f5f9;
}

.snap-phone-country-btn:disabled {
	cursor: not-allowed;
	opacity: 0.72;
}

.snap-phone-flag {
	font-size: 16px;
	line-height: 1;
}

.snap-phone-dial {
	font-variant-numeric: tabular-nums;
	color: #1e293b;
}

.snap-phone-caret {
	font-size: 10px;
	color: #64748b;
	margin-left: 1px;
}

.snap-phone-input {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	width: 100% !important;
	border: none !important;
	box-shadow: none !important;
	background: transparent !important;
	padding: 9px 32px 9px 11px !important;
	margin: 0 !important;
	height: auto !important;
	min-height: 40px !important;
	font-size: 14.5px !important;
	color: #0f172a !important;
	outline: none !important;
	background-image: none !important;
}

.snap-phone-status-ok {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: #16a34a;
	font-weight: 800;
	font-size: 14px;
	pointer-events: none;
	display: none;
}

.snap-phone-wrap.is-valid .snap-phone-status-ok {
	display: inline;
}

.snap-phone-hint {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: #64748b;
	line-height: 1.4;
}

.snap-phone-err {
	display: none;
	margin-top: 4px;
	font-size: 12.5px;
	font-weight: 600;
	color: #b91c1c;
	line-height: 1.4;
}

.snap-phone-err.is-visible {
	display: block;
}

/* Searchable Dropdown Portal */
.snap-phone-dropdown {
	position: fixed;
	z-index: 2147483000;
	width: 310px;
	max-width: calc(100vw - 24px);
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	box-shadow: 0 20px 44px rgba(15, 23, 42, 0.22);
	display: none;
	flex-direction: column;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.snap-phone-dropdown.is-open {
	display: flex;
}

.snap-phone-search-box {
	padding: 8px;
	border-bottom: 1px solid #e2e8f0;
	background: #f8fafc;
}

.snap-phone-search {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 7px;
	font-size: 13.5px;
	color: #0f172a;
	background: #ffffff;
	outline: none;
}

.snap-phone-search:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.snap-phone-list {
	max-height: 268px;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 4px 0;
	margin: 0;
	list-style: none;
}

.snap-phone-group-label {
	padding: 6px 12px 4px;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #64748b;
	background: #f8fafc;
	border-top: 1px solid #f1f5f9;
	border-bottom: 1px solid #f1f5f9;
}

.snap-phone-option {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 9px 12px;
	min-height: 44px;
	box-sizing: border-box;
	cursor: pointer;
	font-size: 13.5px;
	color: #0f172a;
	transition: background-color 0.1s ease;
}

.snap-phone-option:hover,
.snap-phone-option.is-active {
	background: #eff6ff;
}

.snap-phone-option.is-selected {
	background: #dbeafe;
	font-weight: 700;
}

.snap-phone-opt-name {
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.snap-phone-opt-dial {
	color: #475569;
	font-size: 12.5px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	flex-shrink: 0;
}

.snap-phone-empty {
	padding: 14px 12px;
	font-size: 13px;
	color: #64748b;
	text-align: center;
}

/* Progressive WhatsApp Drawer for Non-US Countries */
.snap-wa-box {
	margin-top: 8px;
	padding: 9px 11px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
	display: none;
}

.snap-wa-box.is-visible {
	display: block;
}

.snap-wa-check-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: #166534;
	user-select: none;
}

.snap-wa-check-row input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #16a34a;
	cursor: pointer;
}

.snap-wa-input-wrap {
	margin-top: 8px;
	display: none;
}

.snap-wa-input-wrap.is-open {
	display: block;
}
