/**
 * OTP Frontend Styles
 *
 * @package Woodmart_Child
 * @since 1.0.0
 */

/* OTP Container */
.otp-verification-container {
	margin: 20px 0;
	padding: 20px;
	background: #f9f9f9;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-family: 'Noto Sans Armenian', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.otp-verification-container h3 {
	margin-top: 0;
	color: #28462F;
	font-size: 18px;
	margin-bottom: 15px;
}

.otp-input-group {
	margin-bottom: 15px;
}

.otp-input-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.otp-input-group input[type="text"] {
	width: 100%;
	max-width: 300px;
	padding: 12px 15px;
	border: 2px solid #ddd;
	border-radius: 6px;
	font-size: 16px;
	font-family: 'Noto Sans Armenian', sans-serif;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.otp-input-group input[type="text"]:focus {
	border-color: #28462F;
	outline: none;
	box-shadow: 0 0 0 3px rgba(231, 38, 55, 0.1);
}

.otp-input-group input[type="text"].error {
	border-color: #dc3545;
	background-color: #fff5f5;
}

.otp-input-group input[type="text"].success {
	border-color: #28a745;
	background-color: #f0fff4;
}

.otp-buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 15px;
}

.otp-btn {
	padding: 12px 24px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: 'Noto Sans Armenian', sans-serif;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.otp-btn-primary {
	background: linear-gradient(135deg, #28462F 0%, #c91e2d 100%);
	color: #fff;
}

.otp-btn-primary:hover:not(:disabled) {
	background: linear-gradient(135deg, #c91e2d 0%, #a01724 100%);
	box-shadow: 0 4px 8px rgba(231, 38, 55, 0.3);
	transform: translateY(-2px);
}

.otp-btn-secondary {
	background: #6c757d;
	color: #fff;
}

.otp-btn-secondary:hover:not(:disabled) {
	background: #5a6268;
	box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
	transform: translateY(-2px);
}

.otp-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.otp-message {
	margin-top: 15px;
	padding: 12px 15px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	display: none;
}

.otp-message.show {
	display: block;
}

.otp-message.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.otp-message.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.otp-message.info {
	background: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

.otp-timer {
	margin-top: 10px;
	font-size: 13px;
	color: #666;
	font-weight: 500;
}

.otp-timer.active {
	color: #28462F;
}

/* OTP Code Input (6 digits) */
.otp-code-inputs {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin: 20px 0;
}

.otp-code-input {
	width: 50px;
	height: 50px;
	text-align: center;
	font-size: 24px;
	font-weight: 600;
	border: 2px solid #ddd;
	border-radius: 8px;
	transition: all 0.3s ease;
	font-family: 'Courier New', monospace;
}

.otp-code-input:focus {
	border-color: #28462F;
	outline: none;
	box-shadow: 0 0 0 3px rgba(231, 38, 55, 0.1);
	transform: scale(1.05);
}

.otp-code-input.filled {
	border-color: #28a745;
	background-color: #f0fff4;
}

/* Loading Spinner */
.otp-loading {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid #f3f3f3;
	border-top: 2px solid #28462F;
	border-radius: 50%;
	animation: otp-spin 1s linear infinite;
	margin-left: 8px;
	vertical-align: middle;
}

@keyframes otp-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 767px) {
	.otp-verification-container {
		padding: 15px;
	}
	
	.otp-input-group input[type="text"] {
		max-width: 100%;
	}
	
	.otp-buttons {
		flex-direction: column;
	}
	
	.otp-btn {
		width: 100%;
	}
	
	.otp-code-inputs {
		gap: 5px;
	}
	
	.otp-code-input {
		width: 40px;
		height: 40px;
		font-size: 20px;
	}
}
