/**
 * Doozy Onboarding Wizard Styles (Redesign)
 *
 * @package    Doozy_Order_Protection
 * @subpackage Doozy_Order_Protection/admin/css
 */

/* ========================================
   Container
   ======================================== */
.doozy-onboarding-wrapper {
	max-width: 660px;
	margin: 48px auto;
	padding: 0 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.doozy-onboarding-card {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
	overflow: hidden;
	border: 1px solid #e2e8f0;
}

/* ========================================
   Header with Logo
   ======================================== */
.doozy-onboarding-header {
	padding: 28px 32px 20px;
	background: linear-gradient(to bottom, #f8fafc, #ffffff);
	text-align: center;
	border-bottom: none;
}

.doozy-logo-img {
	max-width: 170px;
	height: auto;
}

/* ========================================
   Progress Indicator
   ======================================== */
.doozy-progress {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 32px 28px;
	background: #ffffff;
	border-bottom: 1px solid #f1f5f9;
}

.doozy-progress-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.doozy-step-number {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #94a3b8;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	border: 2px solid #e2e8f0;
}

.doozy-progress-step.active .doozy-step-number {
	background: #0f172a;
	color: #ffffff;
	border-color: #0f172a;
	box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.1);
}

.doozy-progress-step.completed .doozy-step-number {
	background: #16a34a;
	color: #ffffff;
	border-color: #16a34a;
}

.doozy-step-label {
	font-size: 12px;
	color: #94a3b8;
	font-weight: 600;
	white-space: nowrap;
	letter-spacing: 0.2px;
}

.doozy-progress-step.active .doozy-step-label {
	color: #0f172a;
}

.doozy-progress-step.completed .doozy-step-label {
	color: #16a34a;
}

.doozy-progress-line {
	width: 56px;
	height: 2px;
	background: #e2e8f0;
	margin: 0 10px;
	margin-bottom: 24px;
	border-radius: 2px;
	transition: background 0.35s ease;
}

.doozy-progress-step.completed + .doozy-progress-line {
	background: #16a34a;
}

/* ========================================
   Step Content
   ======================================== */
.doozy-step {
	padding: 36px 40px;
}

.doozy-step-content h1 {
	font-size: 26px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 8px 0;
	text-align: center;
	letter-spacing: -0.3px;
}

.doozy-step-subtitle {
	font-size: 14px;
	color: #64748b;
	margin: 0 0 32px 0;
	line-height: 1.6;
	text-align: center;
}

/* ========================================
   Form Elements
   ======================================== */
.doozy-form-group {
	margin-bottom: 22px;
}

.doozy-form-group label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #0f172a;
	margin-bottom: 7px;
}

.doozy-form-group label .required {
	color: #ef4444;
	margin-left: 1px;
}

.doozy-form-group input,
.doozy-form-group select {
	width: 100%;
	padding: 11px 14px;
	font-size: 14px;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	background: #ffffff;
	color: #0f172a;
	transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	box-sizing: border-box;
	line-height: 1.4;
}

.doozy-form-group input:hover,
.doozy-form-group select:hover {
	border-color: #cbd5e1;
}

.doozy-form-group input:focus,
.doozy-form-group select:focus {
	outline: none;
	border-color: #0f172a;
	box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.doozy-form-group input.error {
	border-color: #ef4444;
	background: #fef2f2;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.doozy-form-group input.doozy-input-disabled {
	background: #f8fafc;
	color: #64748b;
	cursor: not-allowed;
	border-color: #e2e8f0;
}

.doozy-form-group select {
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px;
	padding-right: 42px;
}

.doozy-field-hint {
	font-size: 12px;
	color: #94a3b8;
	margin: 6px 0 0 0;
	font-style: italic;
}

.doozy-field-error {
	font-size: 12px;
	color: #ef4444;
	margin: 6px 0 0 0;
	font-weight: 500;
}

.doozy-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

/* ========================================
   Password Requirements
   ======================================== */
.doozy-password-requirements {
	background: #f8fafc;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	padding: 16px 20px;
	margin-top: 14px;
}

.doozy-req-title {
	font-size: 12px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 10px 0;
	letter-spacing: 0.2px;
}

.doozy-password-requirements ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 6px;
}

.doozy-password-requirements li {
	font-size: 12.5px;
	padding: 0;
	padding-left: 24px;
	position: relative;
	color: #94a3b8;
	font-weight: 500;
	transition: color 0.2s ease;
	line-height: 1.4;
}

.doozy-password-requirements li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #f1f5f9;
	border: 1.5px solid #e2e8f0;
	transition: all 0.25s ease;
}

.doozy-password-requirements li.valid {
	color: #16a34a;
}

.doozy-password-requirements li.valid::before {
	content: '✓';
	background: #16a34a;
	border-color: #16a34a;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 16px;
	text-align: center;
}

.doozy-password-requirements li.invalid {
	color: #94a3b8;
}

/* ========================================
   Buttons
   ======================================== */
.doozy-step-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #f1f5f9;
}

.doozy-btn {
	padding: 11px 24px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1.5px solid transparent;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	letter-spacing: 0.1px;
}

.doozy-btn-primary {
	background: #f97316;
	color: #ffffff;
	border-color: #f97316;
	box-shadow: 0 1px 3px rgba(249, 115, 22, 0.25);
}

.doozy-btn-primary:hover {
	background: #ea580c;
	border-color: #ea580c;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(249, 115, 22, 0.2);
}

.doozy-btn-primary:active {
	transform: translateY(0);
}

.doozy-btn-primary:focus {
	box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
	outline: none;
}

.doozy-btn-secondary {
	background: #ffffff;
	color: #0f172a;
	border-color: #e2e8f0;
}

.doozy-btn-secondary:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
}

/* ========================================
   Error Messages
   ======================================== */
.doozy-error-message {
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-left: 4px solid #ef4444;
	color: #dc2626;
	padding: 14px 18px;
	margin: 0 40px 8px 40px;
	font-size: 13px;
	border-radius: 0 8px 8px 0;
	font-weight: 500;
	line-height: 1.5;
}

/* ========================================
   Welcome Info Box
   ======================================== */
.doozy-info-box {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-left: 4px solid #3b82f6;
	padding: 14px 18px;
	margin-bottom: 24px;
	border-radius: 0 10px 10px 0;
}

.doozy-info-box p {
	margin: 0;
	font-size: 13px;
	color: #1e40af;
	line-height: 1.6;
}

/* ========================================
   Consent / Disclosure Notice
   ======================================== */
.doozy-consent-notice {
	background: #f8fafc;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px 24px;
	margin-top: 28px;
	font-size: 13px;
	line-height: 1.7;
	color: #334155;
}

.doozy-consent-notice .doozy-consent-title {
	font-weight: 700;
	margin: 0 0 8px 0;
	font-size: 13px;
	color: #0f172a;
}

.doozy-consent-notice p {
	margin: 0 0 10px 0;
}

.doozy-consent-notice p:last-child {
	margin-bottom: 0;
}

.doozy-consent-notice ul {
	margin: 8px 0;
	padding-left: 18px;
}

.doozy-consent-notice ul li {
	margin-bottom: 5px;
	list-style-type: disc;
	color: #475569;
}

.doozy-consent-notice a {
	color: #f97316;
	text-decoration: underline;
	text-underline-offset: 2px;
	font-weight: 500;
}

.doozy-consent-notice a:hover {
	color: #ea580c;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 782px) {
	.doozy-onboarding-wrapper {
		margin: 20px auto;
	}

	.doozy-onboarding-card {
		border-radius: 12px;
	}

	.doozy-step {
		padding: 24px 20px;
	}

	.doozy-step-content h1 {
		font-size: 20px;
	}

	.doozy-form-row {
		grid-template-columns: 1fr;
	}

	.doozy-progress {
		padding: 8px 16px 20px;
	}

	.doozy-step-label {
		display: none;
	}

	.doozy-progress-line {
		margin-bottom: 0;
		width: 32px;
	}

	.doozy-step-number {
		width: 36px;
		height: 36px;
	}

	.doozy-btn {
		padding: 10px 18px;
		font-size: 13px;
	}

	.doozy-error-message {
		margin: 0 20px 8px 20px;
	}
}
