/* Firebase OTP for Elementor Forms – frontend styles.
   Tweak the variables below to match your brand. */

.feotp-wrapper {
	--feotp-primary: #2563eb;
	--feotp-primary-hover: #1d4ed8;
	--feotp-success: #15803d;
	--feotp-success-bg: #dcfce7;
	--feotp-error: #b91c1c;
	--feotp-info: #374151;
	--feotp-radius: 6px;

	flex-basis: 100%;
	width: 100%;
	margin-top: 8px;
	box-sizing: border-box;
}

.feotp-wrapper *,
.feotp-wrapper *::before,
.feotp-wrapper *::after {
	box-sizing: border-box;
}

/* Make the HTML "hidden" attribute win over theme/Elementor display rules. */
.feotp-wrapper [hidden] {
	display: none !important;
}

/* Buttons */
.feotp-btn {
	display: inline-block;
	padding: 10px 18px;
	border: 0;
	border-radius: var(--feotp-radius);
	background: var(--feotp-primary);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.feotp-btn:hover:not(:disabled) {
	background: var(--feotp-primary-hover);
}

.feotp-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* OTP input + Verify button on one row */
.feotp-verify-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.feotp-otp-input {
	flex: 1 1 160px;
	min-width: 0;
	padding: 9px 12px;
	border: 1px solid #cbd5e1;
	border-radius: var(--feotp-radius);
	font-size: 16px;
	letter-spacing: 4px;
	text-align: center;
	background: #fff;
	color: #111827;
}

.feotp-otp-input:focus {
	outline: 2px solid var(--feotp-primary);
	outline-offset: 1px;
}

/* Verified badge */
.feotp-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--feotp-success-bg);
	color: var(--feotp-success);
	font-size: 14px;
	font-weight: 600;
}

.feotp-badge-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--feotp-success);
	color: #fff;
	font-size: 11px;
}

/* "Change number" text button */
.feotp-link {
	margin-left: 10px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--feotp-primary);
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}

/* Status messages */
.feotp-message {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.4;
}

.feotp-message:empty {
	display: none;
}

.feotp-message.feotp-error   { color: var(--feotp-error); }
.feotp-message.feotp-success { color: var(--feotp-success); }
.feotp-message.feotp-info    { color: var(--feotp-info); }

/* Locked phone input after the code has been sent */
.elementor-field-group input[readonly] {
	background-color: #f3f4f6;
	cursor: not-allowed;
}

/* Elementor submit button while unverified */
.elementor-form .feotp-disabled,
.elementor-form button[type="submit"].feotp-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

/* Invisible reCAPTCHA needs no visible space; keep the badge from shifting layout. */
.feotp-recaptcha {
	height: 0;
	overflow: visible;
}
