/* ===== Form Fields ===== */
.smartpay-form-field {
	flex: 1;
}

.smartpay-form-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
	color: #374151;
}

.smartpay-form-field label .required {
	color: #ef4444;
}

.smartpay-form-field label .optional {
	color: #9ca3af;
	font-weight: 400;
	font-size: 13px;
}

.smartpay-form-field input[type="text"],
.smartpay-form-field input[type="email"],
.smartpay-form-field input[type="password"],
.smartpay-form-field select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 15px;
	transition: all 0.2s ease;
	background: #ffffff;
	box-sizing: border-box;
}

.smartpay-form-field input:focus,
.smartpay-form-field select:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.smartpay-form-field .field-hint {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: #9ca3af;
}

/* Password Field */
.smartpay-password-field .password-wrapper {
	position: relative;
}

.smartpay-password-field .toggle-password {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 4px;
	color: #6b7280;
	transition: color 0.2s ease;
}

.smartpay-password-field .toggle-password:hover {
	color: #3b82f6;
}

.smartpay-password-field .toggle-password .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

/* Form Row (for side-by-side fields) */
.smartpay-form-row {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
	width: 100%;
}

.smartpay-form-field-half {
	flex: 1;
	margin-bottom: 0;
}

/* ===== Buttons ===== */
.smartpay-button {
	padding: 14px 24px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none;
}

.smartpay-button-primary {
	background: #3b82f6;
	color: #ffffff;
	width: 100%;
	margin-top: 10px;
}

.smartpay-button-primary:hover {
	background: #2563eb;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.smartpay-button-primary:disabled {
	background: #9ca3af;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.smartpay-button-secondary {
	background: #f3f4f6;
	color: #374151;
	border: 1px solid #d1d5db;
}

.smartpay-button-secondary:hover {
	background: #e5e7eb;
}

.smartpay-back-button {
	margin-bottom: 20px;
}

.smartpay-back-button .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* ===== Error Messages ===== */
.smartpay-errors {
	background: #fee2e2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 20px;
	display: none;
}

.smartpay-errors ul {
	margin: 0;
	padding-left: 20px;
	color: #991b1b;
}

.smartpay-errors li {
	margin: 4px 0;
	font-size: 14px;
}
/* ===== Checkout Step Visibility ===== */
.smartpay-checkout-step {
	display: none;
	margin-bottom: 20px;
}

.smartpay-checkout-step.active {
	display: block;
	animation: fadeIn 0.3s ease;
}

/* ===== Loading States ===== */
.smartpay-loading {
	text-align: center;
	padding: 60px 20px;
}

.smartpay-loading .spinner {
	width: 40px;
	height: 40px;
	margin: 0 auto 20px;
	border: 4px solid #e5e7eb;
	border-top-color: #3b82f6;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.smartpay-loading p {
	color: #6b7280;
	font-size: 15px;
	margin: 0;
}

/* ===== Animation ===== */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}