/* =============================================================
   Authyo Secure Form — Elementor Widget Frontend Styles
   ============================================================= */

:root {
	--asf-accent:       #7C3AED;
	--asf-accent-dark:  #6D28D9;
	--asf-accent-light: #EDE9FE;
	--asf-ink:          #111827;
	--asf-ink-2:        #374151;
	--asf-ink-3:        #6B7280;
	--asf-line:         #E5E7EB;
	--asf-bg:           #F9FAFB;
	--asf-card:         #FFFFFF;
	--asf-success:      #059669;
	--asf-success-bg:   #D1FAE5;
	--asf-danger:       #DC2626;
	--asf-danger-bg:    #FEE2E2;
	--asf-radius:       12px;
	--asf-radius-sm:    8px;
}

/* ── Wrapper ── */
.authyo-secure-form-wrap {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--asf-ink);
}

/* ── Card shell ── */
.authyo-secure-form-card {
	background: var(--asf-card);
	border: 1px solid var(--asf-line);
	border-radius: var(--asf-radius);
	box-shadow: 0 2px 16px rgba(0,0,0,0.06);
	overflow: visible;
}

/* ── Card header ── */
.authyo-secure-form-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px 24px 16px;
	border-bottom: 1px solid var(--asf-line);
	background: linear-gradient(135deg, #F5F3FF 0%, #FFFFFF 100%);
}
.authyo-secure-form-header-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	background: var(--asf-accent);
	border-radius: 10px;
	flex-shrink: 0;
	box-shadow: 0 4px 10px rgba(124,58,237,0.28);
}
.authyo-secure-form-header-icon svg {
	width: 20px; height: 20px; fill: #fff;
}
.authyo-secure-form-header-text {}
.authyo-secure-form-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--asf-ink);
	letter-spacing: -0.2px;
	line-height: 1.3;
}
.authyo-secure-form-subtitle {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	color: var(--asf-ink-3);
	line-height: 1.4;
}

/* ── Body ── */
.authyo-secure-form-body {
	padding: 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ── Fields ── */
.authyo-secure-form-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.authyo-secure-form-field label {
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--asf-ink-2);
}
.authyo-secure-form-field input {
	width: 100%;
	padding: 10px 14px;
	font-size: 14px; line-height: 1.4;
	color: var(--asf-ink);
	background: var(--asf-bg);
	border: 1.5px solid var(--asf-line);
	border-radius: var(--asf-radius-sm);
	box-shadow: none;
	transition: border-color .15s, background .15s, box-shadow .15s;
	box-sizing: border-box;
}
.authyo-secure-form-field input:focus {
	outline: none;
	border-color: var(--asf-accent);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.authyo-secure-form-field input::placeholder { color: #C4C7D0; }
.authyo-secure-form-field input.has-error {
	border-color: var(--asf-danger);
	box-shadow: 0 0 0 3px rgba(220,38,38,0.10);
}
.authyo-secure-form-field-error {
	font-size: 12px;
	color: var(--asf-danger);
	display: none;
}
.authyo-secure-form-field-error.is-visible { display: block; }
.authyo-secure-form-field.has-error input,
.authyo-secure-form-field.has-error textarea,
.authyo-secure-form-field.has-error select {
	border-color: var(--asf-danger);
	box-shadow: 0 0 0 3px rgba(220,38,38,0.10);
}
.authyo-secure-form-field.has-error .authyo-secure-form-field-error {
	display: block;
	margin-top: 4px;
}
.authyo-secure-form-field-help {
	font-size: 11.5px;
	color: var(--asf-ink-3);
	line-height: 1.4;
}

/* ── Field row (column width layout) ── */
.asf-fields-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 0;
}
.asf-field-col {
	width: var(--asf-col-width, 100%);
	padding-right: 12px;
	box-sizing: border-box;
}
.asf-field-col:last-child {
	padding-right: 0;
}
@media (max-width: 480px) {
	/* The button wrapper carries the same --asf-col-width as a field column and
	   must collapse with them, or a 25%-wide button is left stranded beside
	   full-width fields. */
	.asf-field-col,
	.asf-btn-wrap { width: 100% !important; padding-right: 0; }
}

/* ── Textarea (Message field) ── */
.authyo-secure-form-field textarea {
	width: 100%;
	padding: 10px 14px;
	font-size: 14px; line-height: 1.5;
	color: var(--asf-ink);
	background: var(--asf-bg);
	border: 1.5px solid var(--asf-line);
	border-radius: var(--asf-radius-sm);
	resize: vertical;
	min-height: 88px;
	font-family: inherit;
	transition: border-color .15s, background .15s, box-shadow .15s;
	box-sizing: border-box;
}
.authyo-secure-form-field textarea:focus {
	outline: none;
	border-color: var(--asf-accent);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.authyo-secure-form-field textarea::placeholder { color: #C4C7D0; }
.authyo-secure-form-field textarea.has-error {
	border-color: var(--asf-danger);
	box-shadow: 0 0 0 3px rgba(220,38,38,0.10);
}

/* ── Select / Dropdown ── */
.authyo-secure-form-field select {
	width: 100%;
	padding: 10px 14px;
	font-size: 14px; line-height: 1.4;
	color: var(--asf-ink);
	background: var(--asf-bg);
	border: 1.5px solid var(--asf-line);
	border-radius: var(--asf-radius-sm);
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236B7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
	box-sizing: border-box;
}
.authyo-secure-form-field select:focus {
	outline: none;
	border-color: var(--asf-accent);
	background-color: #fff;
	box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

/* ── Field hint (placeholder for checkbox/radio) ── */
.authyo-secure-form-field-hint {
	display: block;
	font-size: 12.5px;
	color: var(--asf-ink-3);
	margin-bottom: 6px;
}

/* ── Checkbox & Radio groups ── */
.asf-checkbox-group,
.asf-radio-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.asf-choice-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--asf-ink);
	cursor: pointer;
}
.asf-choice-label input[type="checkbox"],
.asf-choice-label input[type="radio"] {
	width: 16px; height: 16px;
	flex-shrink: 0;
	accent-color: var(--asf-accent);
	cursor: pointer;
	border: none;
	box-shadow: none;
	padding: 0;
}

/* ── File upload ── */
.authyo-secure-form-field input[type="file"] {
	padding: 8px 12px;
	font-size: 13px;
	cursor: pointer;
}

/* ── Step divider ── */
.authyo-secure-form-step-divider {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0;
}
.authyo-secure-form-step-divider::before,
.authyo-secure-form-step-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--asf-line);
}
.authyo-secure-form-step-divider span {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--asf-ink-3);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

/* ── Multi-step navigation ── */
.asf-step-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0;
	margin-top: 8px;
}
.asf-step-indicator {
	font-size: 12px;
	font-weight: 600;
	color: var(--asf-ink-3);
}
.asf-step-prev,
.asf-step-next {
	min-width: 90px;
}

/* ── OTP input row ── */
.authyo-secure-form-otp-row {
	display: flex;
	gap: 10px;
	align-items: flex-end;
}
.authyo-secure-form-otp-row .authyo-secure-form-field { flex: 1; }

/* ── Method picker (SMS / WhatsApp / Voice) ── */
.authyo-secure-form-method-row {
	display: flex;
	gap: 8px;
}
.authyo-secure-form-method-btn {
	flex: 1;
	display: flex; align-items: center; justify-content: center; gap: 7px;
	padding: 9px 10px;
	font-size: 12.5px; font-weight: 600;
	color: var(--asf-ink-3);
	background: var(--asf-bg);
	border: 1.5px solid var(--asf-line);
	border-radius: var(--asf-radius-sm);
	cursor: pointer;
	transition: border-color .15s, color .15s, background .15s;
}
.authyo-secure-form-method-btn:hover {
	border-color: var(--asf-accent);
	color: var(--asf-accent);
	background: var(--asf-accent-light);
}
.authyo-secure-form-method-btn.is-active {
	border-color: var(--asf-accent);
	color: var(--asf-accent);
	background: var(--asf-accent-light);
	font-weight: 700;
}
.authyo-secure-form-method-btn svg {
	width: 16px; height: 16px; flex-shrink: 0;
}

/* ── Button wrapper ── */
.asf-btn-wrap {
	width: var(--asf-col-width, 100%);
	box-sizing: border-box;
}

/* ── Primary button ── */
.authyo-secure-form-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 20px;
	font-size: 14px; font-weight: 700;
	color: #fff;
	background: var(--asf-accent);
	border: none;
	border-radius: var(--asf-radius-sm);
	cursor: pointer;
	transition: background .15s, box-shadow .15s, transform .05s;
	box-shadow: 0 3px 10px rgba(124,58,237,0.25);
	box-sizing: border-box;
	letter-spacing: -0.1px;
}
.authyo-secure-form-btn.is-full { width: 100%; }
.authyo-secure-form-btn:hover {
	background: var(--asf-accent-dark);
	box-shadow: 0 5px 16px rgba(124,58,237,0.35);
}
.authyo-secure-form-btn:active { transform: translateY(1px); }
.authyo-secure-form-btn:disabled {
	opacity: 0.6; cursor: not-allowed; transform: none;
}
.authyo-secure-form-btn svg { width: 17px; height: 17px; flex-shrink: 0; }

/* Button sizes */
.authyo-secure-form-btn.asf-btn-xs { padding: 6px 12px;  font-size: 11px; }
.authyo-secure-form-btn.asf-btn-sm { padding: 9px 16px;  font-size: 13px; }
.authyo-secure-form-btn.asf-btn-md { padding: 12px 20px; font-size: 14px; }
.authyo-secure-form-btn.asf-btn-lg { padding: 14px 24px; font-size: 16px; }
.authyo-secure-form-btn.asf-btn-xl { padding: 18px 30px; font-size: 18px; }

/* Spinner inside button */
.authyo-secure-form-btn .asf-spinner {
	width: 16px; height: 16px;
	border: 2px solid rgba(255,255,255,0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: asf-spin .7s linear infinite;
	display: none;
}
.authyo-secure-form-btn.is-loading .asf-spinner { display: inline-block; }
.authyo-secure-form-btn.is-loading .asf-btn-label { opacity: 0.5; }
@keyframes asf-spin { to { transform: rotate(360deg); } }

/* ── Resend row ── */
.authyo-secure-form-resend-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12.5px;
}
.authyo-secure-form-resend-timer { color: var(--asf-ink-3); }
.authyo-secure-form-resend-btn {
	background: none; border: none; padding: 0; cursor: pointer;
	color: var(--asf-accent); font-size: 12.5px; font-weight: 600;
	text-decoration: underline; text-decoration-color: transparent;
	transition: text-decoration-color .15s;
}
.authyo-secure-form-resend-btn:hover { text-decoration-color: var(--asf-accent); }
.authyo-secure-form-resend-btn:disabled { color: var(--asf-ink-3); cursor: not-allowed; }

/* ── Status notices ── */
.authyo-secure-form-notice {
	display: flex; align-items: center; gap: 9px;
	padding: 11px 14px;
	border-radius: var(--asf-radius-sm);
	font-size: 13px; font-weight: 500;
	border: 1px solid transparent;
}
.authyo-secure-form-notice svg { width: 16px; height: 16px; flex-shrink: 0; }
.authyo-secure-form-notice.is-success {
	background: var(--asf-success-bg); color: #065F46; border-color: #A7F3D0;
}
.authyo-secure-form-notice.is-error {
	background: var(--asf-danger-bg); color: #991B1B; border-color: #FCA5A5;
}

/* ── Success state ── */
.authyo-secure-form-success {
	display: none; flex-direction: column; align-items: center;
	gap: 10px; padding: 32px 24px; text-align: center;
}
.authyo-secure-form-success.is-visible { display: flex; }
.authyo-secure-form-success-icon {
	width: 56px; height: 56px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--asf-success-bg);
	border-radius: 50%;
}
.authyo-secure-form-success-icon svg { width: 28px; height: 28px; }
.authyo-secure-form-success h3 {
	margin: 0;
	font-size: 17px; font-weight: 700; color: var(--asf-ink);
}
.authyo-secure-form-success p {
	margin: 0;
	font-size: 13.5px; color: var(--asf-ink-3); line-height: 1.5;
}

/* ── Inline OTP UI ── */
.asf-otp-wrap {
	margin-top: 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* ── Valid phone notice (shown above channel picker) ── */
.asf-phone-valid-notice {
	display: none;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 500;
	color: #15803D;
	background: #F0FDF4;
	border: 1px solid #BBF7D0;
	border-radius: var(--asf-radius-sm);
	padding: 7px 12px;
}
.asf-phone-valid-notice.is-visible { display: flex; }
.asf-phone-valid-notice svg {
	flex-shrink: 0;
	color: #22C55E;
}

/* ── Channel picker (shown when phone is valid + multiple channels enabled) ── */
.asf-channel-picker {
	display: none;
	border: 1.5px solid #22C55E;
	border-radius: var(--asf-radius-sm);
	padding: 14px 16px;
	background: #fff;
}
.asf-channel-picker-label {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 500;
	color: var(--asf-ink-2);
}
.asf-channel-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.asf-channel-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	flex: 1 1 auto;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 500;
	color: var(--asf-ink-2);
	background: #fff;
	border: 1.5px solid var(--asf-line);
	border-radius: var(--asf-radius-sm);
	cursor: pointer;
	transition: border-color .15s, color .15s, background .15s;
}
.asf-channel-btn:hover {
	border-color: var(--asf-accent);
	color: var(--asf-accent);
	background: var(--asf-accent-light);
}
.asf-channel-btn-icon {
	display: inline-flex;
	align-items: center;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}
.asf-channel-btn-icon svg {
	width: 16px;
	height: 16px;
}
.asf-channel-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.asf-channel-btn.is-loading .asf-channel-btn-icon {
	display: none;
}
.asf-channel-btn.is-loading::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(124,58,237,0.3);
	border-top-color: var(--asf-accent);
	border-radius: 50%;
	animation: asf-spin .7s linear infinite;
	margin-right: 6px;
}

/* Send OTP button — slim secondary style */
.asf-otp-send-wrap {
	display: none;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.asf-otp-send-wrap.is-visible { display: flex; }
.asf-otp-send-btn {
	display: none;
	align-self: flex-start;
	background: var(--asf-accent-light);
	color: var(--asf-accent);
	border: 1.5px solid rgba(124,58,237,0.3);
	box-shadow: none;
}
.asf-otp-send-btn.is-visible { display: inline-flex; }
.asf-otp-send-btn:hover {
	background: var(--asf-accent);
	color: #fff;
	box-shadow: 0 3px 10px rgba(124,58,237,0.25);
}

/* Skip verification button */
.asf-skip-wrap {
	margin-top: 10px;
	display: flex;
	justify-content: flex-end;
}
.asf-skip-otp-btn {
	background: none;
	border: none;
	padding: 4px 8px;
	cursor: pointer;
	color: var(--asf-ink-3, #6B7280);
	font-size: 12.5px;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: rgba(107, 114, 128, 0.4);
	transition: color .15s, text-decoration-color .15s;
	display: inline-flex;
	align-items: center;
	line-height: 1.4;
}
.asf-skip-otp-btn:hover {
	color: var(--asf-ink-2, #374151);
	text-decoration-color: currentColor;
}
.asf-skip-otp-resend {
	margin-left: 8px;
}

/* OTP input row */
.asf-otp-input-row {
	display: none;
	flex-direction: column;
	gap: 6px;
}
.asf-otp-input-row.is-visible { display: flex; }
.asf-otp-input-group {
	display: flex;
	gap: 8px;
	align-items: stretch;
}
.asf-otp-input {
	flex: 1;
	padding: 10px 14px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 6px;
	text-align: center;
	color: var(--asf-ink);
	background: var(--asf-bg);
	border: 1.5px solid var(--asf-line);
	border-radius: var(--asf-radius-sm);
	box-sizing: border-box;
	transition: border-color .15s, box-shadow .15s;
}
.asf-otp-input:focus {
	outline: none;
	border-color: var(--asf-accent);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.asf-otp-verify-btn {
	flex-shrink: 0;
}

/* Resend row */
.asf-otp-resend-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
}
.asf-otp-countdown { color: var(--asf-ink-3); }
.asf-otp-resend-btn {
	background: none; border: none; padding: 0; cursor: pointer;
	color: var(--asf-accent); font-size: 12px; font-weight: 600;
	text-decoration: underline; text-decoration-color: transparent;
	transition: text-decoration-color .15s;
}
.asf-otp-resend-btn:hover { text-decoration-color: var(--asf-accent); }
.asf-otp-resend-btn:disabled { color: var(--asf-ink-3); cursor: not-allowed; text-decoration: none; }
.asf-fallback-btn {
	background: none; border: 1px solid var(--asf-accent); border-radius: 4px;
	padding: 4px 10px; cursor: pointer; color: var(--asf-accent);
	font-size: 12px; font-weight: 600; margin-top: 6px; transition: background .15s, color .15s;
}
.asf-fallback-btn:hover { background: var(--asf-accent); color: #fff; }

/* Inline notice */
.asf-otp-notice {
	display: none;
	padding: 8px 12px;
	border-radius: var(--asf-radius-sm);
	font-size: 12.5px; font-weight: 500;
	border: 1px solid transparent;
}
.asf-otp-notice.is-success { background: var(--asf-success-bg); color: #065F46; border-color: #A7F3D0; }
.asf-otp-notice.is-error   { background: var(--asf-danger-bg);  color: #991B1B; border-color: #FCA5A5; }

/* Verified badge row */
.asf-otp-verified-row {
	display: none;
	align-items: center;
	gap: 10px;
}
.asf-otp-verified-row.is-visible { display: flex; }
.asf-otp-verified-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	background: var(--asf-success-bg);
	color: var(--asf-success);
	border: 1px solid #A7F3D0;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
}
.asf-otp-verified-badge svg { flex-shrink: 0; }
.asf-otp-change-btn {
	background: none; border: none; padding: 0; cursor: pointer;
	color: var(--asf-ink-3); font-size: 12px;
	text-decoration: underline;
	transition: color .15s;
}
.asf-otp-change-btn:hover { color: var(--asf-accent); }

/* Skipped badge row */
.asf-otp-skipped-row {
	display: none;
	align-items: center;
	gap: 10px;
}
.asf-otp-skipped-row.is-visible { display: flex; }
.asf-otp-skipped-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	background: #F3F4F6;
	color: #4B5563;
	border: 1px solid #E5E7EB;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}
.asf-otp-skipped-badge svg {
	flex-shrink: 0;
	color: #9CA3AF;
}
.asf-otp-unskip-btn {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	color: var(--asf-accent, #7C3AED);
	font-size: 12px;
	font-weight: 500;
	text-decoration: underline;
	transition: opacity .15s;
}
.asf-otp-unskip-btn:hover {
	opacity: 0.8;
}

/* Disabled input when verified */
.authyo-secure-form-field input.is-verified,
.authyo-secure-form-field .asf-phone-number.is-verified {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Form-level notice */
.asf-form-notice {
	display: none;
	padding: 11px 14px;
	border-radius: var(--asf-radius-sm);
	font-size: 13px; font-weight: 500;
	border: 1px solid transparent;
}

/* ── Step panels visibility (kept for backwards compat) ── */
.authyo-secure-form-panel { display: none; }
.authyo-secure-form-panel.is-active { display: flex; flex-direction: column; gap: 14px; }


/* ── Phone field with country picker ── */
.asf-phone-wrap {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 0;
}
.asf-phone-flag-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 10px;
	background: var(--asf-bg);
	border: 1.5px solid var(--asf-line);
	border-right: none;
	border-radius: var(--asf-radius-sm) 0 0 var(--asf-radius-sm);
	cursor: pointer;
	font-size: 13px;
	color: var(--asf-ink-2);
	white-space: nowrap;
	user-select: none;
	transition: border-color .15s, background .15s;
	min-width: 80px;
}
.asf-phone-flag-btn:hover,
.asf-phone-flag-btn:focus {
	outline: none;
	border-color: var(--asf-accent);
	background: var(--asf-accent-light);
	color: var(--asf-accent);
}
.asf-phone-flag-label {
	font-weight: 600;
	font-size: 13px;
}
.asf-phone-flag-caret {
	width: 14px; height: 14px;
	flex-shrink: 0;
	opacity: 0.5;
}
.asf-phone-number {
	flex: 1;
	border-radius: 0 var(--asf-radius-sm) var(--asf-radius-sm) 0 !important;
}
.asf-phone-dropdown {
	display: none;
	position: fixed;
	z-index: 99999;
	width: 280px;
	background: #fff;
	border: 1.5px solid var(--asf-line);
	border-radius: var(--asf-radius-sm);
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	overflow: hidden;
}
.asf-phone-search-wrap {
	padding: 8px 10px;
	border-bottom: 1px solid var(--asf-line);
}
.asf-phone-search {
	width: 100%;
	padding: 7px 10px;
	font-size: 13px;
	border: 1.5px solid var(--asf-line);
	border-radius: 6px;
	background: var(--asf-bg);
	box-sizing: border-box;
}
.asf-phone-search:focus {
	outline: none;
	border-color: var(--asf-accent);
}
.asf-phone-country-list.asf-country-template { display: none; }
.asf-phone-country-list {
	list-style: none;
	margin: 0; padding: 4px 0;
	max-height: 220px;
	overflow-y: auto;
}
.asf-phone-country-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 7px 12px;
	font-size: 13px;
	cursor: pointer;
	color: var(--asf-ink);
	transition: background .1s;
}
.asf-phone-country-item:hover,
.asf-phone-country-item.is-selected,
.asf-phone-country-item.is-focused {
	background: var(--asf-accent-light);
	color: var(--asf-accent);
}
.asf-phone-country-item.is-focused {
	outline: 2px solid var(--asf-accent);
	outline-offset: -2px;
}
.asf-phone-country-item.is-hidden { display: none; }
.asf-phone-item-name { flex: 1; }
.asf-phone-item-code {
	font-weight: 600;
	color: var(--asf-ink-3);
	margin-left: 8px;
}
.asf-phone-country-item.is-selected .asf-phone-item-code,
.asf-phone-country-item.is-focused .asf-phone-item-code { color: var(--asf-accent); }

/* ── No-countries notice (shown when API fetch fails) ── */
.asf-phone-no-countries {
	font-size: 12.5px;
	color: var(--asf-danger);
	background: var(--asf-danger-bg);
	border: 1px solid #FCA5A5;
	border-radius: var(--asf-radius-sm);
	padding: 8px 12px;
	margin: 0;
}

/* ── Elementor editor placeholder ── */
.elementor-editor-active .authyo-secure-form-wrap { pointer-events: none; }
