/* OTP Modal Overlay - Glassmorphism Design */
.hs-otp-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	animation: hsOtpFadeIn 0.4s ease-out forwards;
}

.hs-otp-modal-content {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	padding: 2rem;
	width: 100%;
	max-width: 420px;
	transform: translateY(20px);
	animation: hsOtpSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	position: relative;
	overflow: hidden;
}

/* Beautiful modern styling for the existing OTP widget inside the modal */
.hs-otp-modal-content [data-hs-otp] {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.hs-otp-modal-content [data-hs-otp-view="verify"] h3,
.hs-otp-modal-content [data-hs-otp-view="resend"] h3 {
	font-size: 1.5rem;
	font-weight: 700;
	color: #0f172a;
	margin-top: 0;
	margin-bottom: 0.5rem;
	text-align: center;
}

.hs-otp-modal-content p {
	color: #64748b;
	font-size: 0.95rem;
	text-align: center;
	margin-bottom: 1.5rem;
	line-height: 1.5;
}

/* Input fields styling */
.hs-otp-modal-content input[type="email"],
.hs-otp-modal-content input[type="text"] {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 1rem;
	color: #0f172a;
	transition: all 0.2s ease;
	box-sizing: border-box;
	margin-bottom: 1rem;
	background: #f8fafc;
}

.hs-otp-modal-content input[type="email"]:focus,
.hs-otp-modal-content input[type="text"]:focus {
	outline: none;
	border-color: #3b82f6;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.hs-otp-modal-content input[name="code"] {
	text-align: center;
	letter-spacing: 0.5em;
	font-size: 1.25rem;
	font-weight: 600;
}

/* Buttons */
.hs-otp-modal-content button {
	width: 100%;
	padding: 0.875rem;
	background: #3b82f6;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
}

.hs-otp-modal-content button:hover {
	background: #2563eb;
}

.hs-otp-modal-content button:active {
	transform: scale(0.98);
}

.hs-otp-modal-content button:disabled {
	background: #94a3b8;
	cursor: not-allowed;
	transform: none;
}

/* Status Messages */
.hs-otp-modal-content [data-hs-otp-status] {
	margin-top: 1rem;
	padding: 0.75rem;
	border-radius: 8px;
	font-size: 0.875rem;
	text-align: center;
	display: none;
}

.hs-otp-modal-content [data-hs-otp-status]:not(:empty) {
	display: block;
	animation: hsOtpFadeIn 0.3s ease;
}

/* Custom action layouts */
.hs-otp-widget__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 1.5rem;
	margin-bottom: 0;
}

.hs-otp-widget__actions button {
	margin: 0 !important;
}

.hs-otp-widget__resend {
	background: transparent !important;
	color: #64748b !important;
	border: 1px solid #cbd5e1 !important;
}

.hs-otp-widget__resend:hover:not(:disabled) {
	background: #f1f5f9 !important;
	color: #0f172a !important;
	border-color: #94a3b8 !important;
}

.hs-otp-widget__resend:disabled {
	background: #f8fafc !important;
	color: #94a3b8 !important;
	border: 1px dashed #cbd5e1 !important;
}

/* Animations */
@keyframes hsOtpFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes hsOtpSlideUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
