/**
 * DH Signup Wizard - Styles
 *
 * @package DH_Signup_Wizard
 */

/* Prevent scrollbar-induced width shift when step content changes height. */
html {
	scrollbar-gutter: stable;
}

/* Variables */
:root {
	--dh-wizard-primary: #2563eb;
	--dh-wizard-primary-hover: #1d4ed8;
	--dh-wizard-primary-light: #dbeafe;
	--dh-wizard-accent: #D11D8D;
	--dh-wizard-success: #059669;
	--dh-wizard-success-light: #d1fae5;
	--dh-wizard-error: #dc2626;
	--dh-wizard-error-light: #fee2e2;
	--dh-wizard-warning: #d97706;
	--dh-wizard-info: #0891b2;
	--dh-wizard-info-light: #cffafe;
	--dh-wizard-gray-50: #f9fafb;
	--dh-wizard-gray-100: #f3f4f6;
	--dh-wizard-gray-200: #e5e7eb;
	--dh-wizard-gray-300: #d1d5db;
	--dh-wizard-gray-500: #6b7280;
	--dh-wizard-gray-700: #374151;
	--dh-wizard-gray-900: #111827;
	--dh-wizard-radius: 8px;
	--dh-wizard-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	--dh-wizard-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Container — always fills parent width; Elementor controls outer margins. */
.dh-wizard-container {
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
	margin: 0 auto;
	padding: 32px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	color: var(--dh-wizard-gray-900);
	position: relative;
}

/* Progress Indicator */
.dh-wizard-progress {
	margin-bottom: 32px;
}

.dh-wizard-progress-bar {
	height: 4px;
	background: var(--dh-wizard-gray-200);
	border-radius: 2px;
	margin-bottom: 16px;
	overflow: hidden;
}

.dh-wizard-progress-fill {
	height: 100%;
	background: var(--dh-wizard-primary);
	border-radius: 2px;
	transition: width 0.3s ease;
}

.dh-wizard-progress-steps {
	display: flex;
	justify-content: space-between;
	gap: 8px;
}

.dh-wizard-progress-step {
	font-size: 12px;
	color: var(--dh-wizard-gray-500);
	text-align: center;
	flex: 1;
}

.dh-wizard-progress-step.active {
	color: var(--dh-wizard-primary);
	font-weight: 600;
}

.dh-wizard-progress-step.completed {
	color: var(--dh-wizard-success);
}

/* Step Content — fixed min-height prevents vertical bounce on step change. */
.dh-wizard-step-container {
	min-height: 400px;
}

.dh-wizard-step {
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.dh-wizard-step-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--dh-wizard-gray-900);
}

.dh-wizard-step-description {
	font-size: 16px;
	color: var(--dh-wizard-gray-500);
	margin: 0 0 24px;
}

/* Tiles (Company Type Selection) */
.dh-wizard-tiles-wrapper {
	display: block;
	width: 100%;
}

.dh-wizard-tiles {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	width: 100%;
}

.dh-wizard-tile {
	flex: 1 1 160px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 24px 20px 20px;
	background: white;
	border: 2px solid var(--dh-wizard-gray-200);
	border-radius: var(--dh-wizard-radius);
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
	min-height: 160px;
	position: relative;
}

/* Info Icon */
.dh-wizard-tile-info {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 40px;
	height: 40px;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 2;
}

.dh-wizard-tile-info img {
	width: 100%;
	height: 100%;
	display: block;
}

.dh-wizard-tile-info:hover {
	opacity: 1;
	transform: scale(1.15);
}

.dh-wizard-tile:hover {
	border-color: var(--dh-wizard-accent);
	background: var(--dh-wizard-accent);
	box-shadow: var(--dh-wizard-shadow);
}

.dh-wizard-tile:hover .dh-wizard-tile-icon,
.dh-wizard-tile:hover .dh-wizard-tile-title,
.dh-wizard-tile:hover .dh-wizard-tile-description {
	color: #fff;
}

.dh-wizard-tile.selected {
	border-color: var(--dh-wizard-accent);
	background: var(--dh-wizard-accent);
}

.dh-wizard-tile.selected .dh-wizard-tile-icon,
.dh-wizard-tile.selected .dh-wizard-tile-title,
.dh-wizard-tile.selected .dh-wizard-tile-description {
	color: #fff;
}

.dh-wizard-tile-icon {
	width: 48px;
	height: 48px;
	margin-bottom: 12px;
}

.dh-wizard-tile-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 4px;
	mix-blend-mode: multiply;
}

.dh-wizard-tile-title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 8px;
	word-wrap: break-word;
}

.dh-wizard-tile-description {
	font-size: 13px;
	color: var(--dh-wizard-gray-500);
	line-height: 1.4;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.dh-wizard-tile-badge {
	display: inline-block;
	margin-top: 8px;
	padding: 4px 8px;
	font-size: 12px;
	font-weight: 600;
	background: var(--dh-wizard-success-light);
	color: var(--dh-wizard-success);
	border-radius: 4px;
}

.dh-wizard-tile:hover .dh-wizard-tile-badge,
.dh-wizard-tile.selected .dh-wizard-tile-badge {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

/* Options (Radio Groups) */
.dh-wizard-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dh-wizard-option {
	display: flex;
	align-items: flex-start;
	padding: 16px;
	background: white;
	border: 2px solid var(--dh-wizard-gray-200);
	border-radius: var(--dh-wizard-radius);
	cursor: pointer;
	transition: all 0.2s ease;
}

.dh-wizard-option:hover {
	border-color: var(--dh-wizard-primary);
}

.dh-wizard-option.selected {
	border-color: var(--dh-wizard-primary);
	background: rgba(37, 99, 235, 0.05);
}

.dh-wizard-option input[type="radio"] {
	margin: 4px 12px 0 0;
	flex-shrink: 0;
}

.dh-wizard-option-content {
	flex: 1;
}

.dh-wizard-option-title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 4px;
}

.dh-wizard-option-description {
	font-size: 14px;
	color: var(--dh-wizard-gray-500);
}

.dh-wizard-option-badge {
	display: inline-block;
	margin-top: 8px;
	padding: 4px 8px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 4px;
}

.dh-wizard-badge-success {
	background: var(--dh-wizard-success-light);
	color: var(--dh-wizard-success);
}

.dh-wizard-badge-primary {
	background: rgba(37, 99, 235, 0.1);
	color: var(--dh-wizard-primary);
}

.dh-wizard-badge-info {
	background: var(--dh-wizard-info-light);
	color: var(--dh-wizard-info);
}

/* Cards (Product Selection) */
.dh-wizard-options-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	width: 100%;
}

.dh-wizard-option-card {
	flex-direction: column;
	position: relative;
}

.dh-wizard-option-card input[type="radio"] {
	position: absolute;
	opacity: 0;
}

.dh-wizard-option-icon {
	font-size: 24px;
	margin-bottom: 8px;
}

.dh-wizard-option-recommended {
	border-color: var(--dh-wizard-primary);
}

.dh-wizard-option-badge-corner {
	position: absolute;
	top: -1px;
	right: -1px;
	background: var(--dh-wizard-primary);
	color: white;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 0 var(--dh-wizard-radius) 0 var(--dh-wizard-radius);
}

/* Feature List */
.dh-wizard-feature-list {
	list-style: none;
	padding: 0;
	margin: 12px 0 0;
	font-size: 14px;
	color: var(--dh-wizard-gray-500);
}

.dh-wizard-feature-list li {
	padding: 4px 0 4px 20px;
	position: relative;
}

.dh-wizard-feature-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--dh-wizard-success);
}

/* Pricing Options */
.dh-wizard-options-pricing {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	width: 100%;
}

.dh-wizard-option-pricing {
	flex-direction: column;
	text-align: center;
}

.dh-wizard-option-pricing input[type="radio"] {
	position: absolute;
	opacity: 0;
}

.dh-wizard-option-tier {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--dh-wizard-gray-500);
	margin-bottom: 8px;
}

.dh-wizard-option-subtitle {
	font-size: 14px;
	color: var(--dh-wizard-gray-500);
}

/* Form Styles */
.dh-wizard-form {
	margin-top: 8px;
}

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

.dh-wizard-form-group {
	margin-bottom: 20px;
}

.dh-wizard-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--dh-wizard-gray-700);
}

.dh-wizard-required {
	color: var(--dh-wizard-error);
}

.dh-wizard-optional {
	font-weight: 400;
	color: var(--dh-wizard-gray-500);
}

.dh-wizard-input {
	width: 100%;
	padding: 10px 12px;
	font-size: 16px;
	border: 2px solid var(--dh-wizard-gray-200);
	border-radius: var(--dh-wizard-radius);
	transition: border-color 0.2s ease;
	box-sizing: border-box;
}

.dh-wizard-input:focus {
	outline: none;
	border-color: var(--dh-wizard-primary);
}

.dh-wizard-input.error {
	border-color: var(--dh-wizard-error);
}

.dh-wizard-input-uppercase {
	text-transform: uppercase;
}

.dh-wizard-input-group {
	display: flex;
	gap: 8px;
}

.dh-wizard-input-group .dh-wizard-input {
	flex: 1;
}

.dh-wizard-field-error {
	display: block;
	font-size: 13px;
	color: var(--dh-wizard-error);
	margin-top: 4px;
	min-height: 18px;
}

.dh-wizard-field-hint {
	display: block;
	font-size: 13px;
	color: var(--dh-wizard-gray-500);
	margin-top: 4px;
}

.dh-wizard-field-hint a {
	color: var(--dh-wizard-primary);
}

/* Company Details Card */
.dh-wizard-company-details {
	margin-top: 24px;
}

.dh-wizard-company-card {
	background: var(--dh-wizard-gray-50);
	border: 2px solid var(--dh-wizard-success);
	border-radius: var(--dh-wizard-radius);
	padding: 16px;
}

.dh-wizard-company-header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.dh-wizard-company-icon {
	font-size: 24px;
}

.dh-wizard-company-info {
	flex: 1;
}

.dh-wizard-company-name {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 4px;
}

.dh-wizard-company-address {
	font-size: 14px;
	color: var(--dh-wizard-gray-500);
	margin: 0;
}

.dh-wizard-company-verified {
	color: var(--dh-wizard-success);
	font-weight: 600;
	font-size: 14px;
}

.dh-wizard-confirm-company-group {
	margin-top: 16px;
	background: #fefce8;
	border: 1px solid #facc15;
	border-radius: var(--dh-wizard-radius);
	padding: 12px 16px;
}

.dh-wizard-confirm-company-text {
	font-weight: 600;
	color: var(--dh-wizard-gray-800) !important;
}

/* Company card: cached variant (amber border instead of green) */
.dh-wizard-company-card-cached {
	border-color: var(--dh-wizard-warning);
}

/* Verification badge variants */
.dh-wizard-verified-amber {
	color: var(--dh-wizard-warning);
}

/* Already Registered Block (Feature A) */
.dh-wizard-already-registered {
	margin-top: 24px;
}

.dh-wizard-block-card {
	background: var(--dh-wizard-error-light);
	border: 2px solid var(--dh-wizard-error);
	border-radius: var(--dh-wizard-radius);
	padding: 16px;
}

.dh-wizard-block-header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.dh-wizard-block-icon {
	font-size: 24px;
	color: var(--dh-wizard-error);
	flex-shrink: 0;
}

.dh-wizard-block-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--dh-wizard-error);
	margin: 0 0 4px;
}

.dh-wizard-block-message {
	font-size: 14px;
	color: var(--dh-wizard-gray-700);
	margin: 0;
	line-height: 1.5;
}

/* Manual Entry Form (Features B & D) */
.dh-wizard-manual-entry {
	margin-top: 24px;
}

.dh-wizard-warning-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #fefce8;
	border: 2px solid var(--dh-wizard-warning);
	border-radius: var(--dh-wizard-radius);
	padding: 16px;
	margin-bottom: 20px;
}

.dh-wizard-warning-icon {
	font-size: 24px;
	color: var(--dh-wizard-warning);
	flex-shrink: 0;
}

.dh-wizard-warning-text {
	font-size: 14px;
	color: var(--dh-wizard-gray-700);
	margin: 0;
	line-height: 1.5;
}

/* Two-column form row (city + postcode) */
.dh-wizard-form-group-row {
	display: flex;
	gap: 16px;
}

.dh-wizard-form-group-half {
	flex: 1;
}

@media (max-width: 480px) {
	.dh-wizard-form-group-row {
		flex-direction: column;
		gap: 0;
	}
}

/* Lookup Loading */
.dh-wizard-lookup-loading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
	color: var(--dh-wizard-gray-500);
}

/* Summary (Confirmation) */
.dh-wizard-summary {
	display: grid;
	gap: 16px;
	margin-bottom: 24px;
}

.dh-wizard-summary-section {
	background: var(--dh-wizard-gray-50);
	border-radius: var(--dh-wizard-radius);
	padding: 16px;
}

.dh-wizard-summary-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--dh-wizard-gray-500);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 12px;
}

.dh-wizard-summary-content p {
	margin: 0 0 4px;
}

.dh-wizard-summary-detail {
	font-size: 14px;
	color: var(--dh-wizard-gray-500);
}

.dh-wizard-summary-badge {
	margin-bottom: 8px;
}

/* Info Box */
.dh-wizard-info-box {
	background: var(--dh-wizard-gray-50);
	border-radius: var(--dh-wizard-radius);
	padding: 16px;
	margin-top: 24px;
	font-size: 14px;
}

.dh-wizard-info-box strong {
	display: block;
	margin-bottom: 4px;
}

.dh-wizard-info-box p {
	margin: 0;
	color: var(--dh-wizard-gray-500);
}

.dh-wizard-info-box a {
	color: var(--dh-wizard-primary);
}

.dh-wizard-info-muted {
	background: var(--dh-wizard-gray-100);
}

.dh-wizard-info-success {
	background: var(--dh-wizard-success-light);
}

.dh-wizard-info-success p {
	color: var(--dh-wizard-gray-700);
}

/* Navigation */
.dh-wizard-navigation {
	display: flex;
	justify-content: space-between;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--dh-wizard-gray-200);
}

.dh-wizard-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 600;
	border: none;
	border-radius: var(--dh-wizard-radius);
	cursor: pointer;
	transition: all 0.2s ease;
}

.dh-wizard-btn-icon {
	font-size: 18px;
}

.dh-wizard-btn-back {
	background: transparent;
	color: var(--dh-wizard-gray-500);
}

.dh-wizard-btn-back:hover {
	color: var(--dh-wizard-gray-700);
}

.dh-wizard-btn-primary {
	background: var(--dh-wizard-primary);
	color: white;
}

.dh-wizard-btn-primary:hover {
	background: var(--dh-wizard-primary-hover);
}

.dh-wizard-btn-primary:disabled {
	background: var(--dh-wizard-gray-300);
	cursor: not-allowed;
}

.dh-wizard-btn-secondary {
	background: var(--dh-wizard-gray-100);
	color: var(--dh-wizard-gray-700);
}

.dh-wizard-btn-secondary:hover {
	background: var(--dh-wizard-gray-200);
}

.dh-wizard-btn-link {
	background: transparent;
	color: var(--dh-wizard-primary);
	padding: 12px;
}

.dh-wizard-btn-link:hover {
	text-decoration: underline;
}

/* Error Banner */
.dh-wizard-error-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--dh-wizard-error-light);
	border: 1px solid var(--dh-wizard-error);
	border-radius: var(--dh-wizard-radius);
	padding: 12px 16px;
	margin-bottom: 24px;
}

.dh-wizard-error-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	background: var(--dh-wizard-error);
	color: white;
	border-radius: 50%;
	font-weight: 700;
	font-size: 14px;
}

.dh-wizard-error-message {
	flex: 1;
	color: var(--dh-wizard-error);
}

.dh-wizard-error-close {
	background: none;
	border: none;
	font-size: 20px;
	color: var(--dh-wizard-error);
	cursor: pointer;
	padding: 0;
	line-height: 1;
}

/* Loading */
.dh-wizard-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 300px;
	color: var(--dh-wizard-gray-500);
}

.dh-wizard-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid var(--dh-wizard-gray-200);
	border-top-color: var(--dh-wizard-primary);
	border-radius: 50%;
	background: var(--dh-roundel-url) center / contain no-repeat;
	animation: dh-roundel-spin 1.2s ease-in-out infinite;
}

.dh-wizard-spinner-small {
	width: 20px;
	height: 20px;
	border-width: 2px;
}

/* Overlay */
.dh-wizard-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100;
	border-radius: var(--dh-wizard-radius);
}

.dh-wizard-overlay.transition-only {
	background: rgba(255, 255, 255, 0.7);
}

.dh-wizard-overlay.transition-only .dh-wizard-spinner {
	width: 32px;
	height: 32px;
	border-width: 3px;
	border-top-color: var(--dh-wizard-accent);
}

.dh-wizard-overlay-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}

.dh-wizard-overlay-message {
	font-size: 16px;
	font-weight: 500;
	color: var(--dh-wizard-gray-700);
	margin: 0;
}

/* Badge */
.dh-wizard-badge {
	display: inline-block;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 4px;
}

/* Info Modal */
.dh-wizard-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dh-wizard-modal-backdrop.active {
	opacity: 1;
	visibility: visible;
}

.dh-wizard-modal {
	background: white;
	border-radius: 12px;
	max-width: 560px;
	width: 90%;
	max-height: 80vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
	transform: scale(0.95);
	transition: transform 0.2s ease;
}

.dh-wizard-modal-backdrop.active .dh-wizard-modal {
	transform: scale(1);
}

.dh-wizard-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid var(--dh-wizard-gray-200);
}

.dh-wizard-modal-title {
	font-size: 20px;
	font-weight: 600;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.dh-wizard-modal-title-icon {
	font-size: 28px;
}

.dh-wizard-modal-close {
	background: none;
	border: none;
	font-size: 24px;
	color: var(--dh-wizard-gray-500);
	cursor: pointer;
	padding: 4px;
	line-height: 1;
	transition: color 0.2s ease;
}

.dh-wizard-modal-close:hover {
	color: var(--dh-wizard-gray-700);
}

.dh-wizard-modal-body {
	padding: 24px;
	overflow-y: auto;
	font-size: 15px;
	line-height: 1.6;
	color: var(--dh-wizard-gray-700);
}

.dh-wizard-modal-body p {
	margin: 0 0 16px;
}

.dh-wizard-modal-body p:last-child {
	margin-bottom: 0;
}

.dh-wizard-modal-body ul {
	margin: 0 0 16px;
	padding-left: 20px;
}

.dh-wizard-modal-body li {
	margin-bottom: 8px;
}

.dh-wizard-modal-footer {
	padding: 16px 24px;
	border-top: 1px solid var(--dh-wizard-gray-200);
	display: flex;
	justify-content: flex-end;
}

/* Confirmation Step - Two Column Layout */
.dh-wizard-confirmation-columns {
	display: grid;
	grid-template-columns: 1fr minmax(320px, 400px);
	gap: 32px;
	align-items: start;
}

.dh-wizard-confirmation-left {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.dh-wizard-confirmation-right {
	position: sticky;
	top: 24px;
}

/* Confirmation Step - Sections */
.dh-wizard-confirmation-section {
	margin-bottom: 24px;
	padding-bottom: 0;
	border-bottom: none;
}

.dh-wizard-confirmation-section:last-of-type {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.dh-wizard-section-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--dh-wizard-gray-700);
	margin: 0 0 16px;
}

/* Summary Panel (Right Column) */
.dh-wizard-summary-panel {
	background: var(--dh-wizard-gray-50);
	border: 1px solid var(--dh-wizard-gray-200);
	border-radius: var(--dh-wizard-radius);
	padding: 24px;
}

.dh-wizard-summary-panel .dh-wizard-section-title {
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--dh-wizard-gray-200);
}

.dh-wizard-summary-row {
	display: flex;
	gap: 12px;
	margin-bottom: 8px;
	font-size: 14px;
	line-height: 1.5;
}

.dh-wizard-summary-label {
	flex: 0 0 auto;
	min-width: 100px;
	color: var(--dh-wizard-gray-500);
	font-weight: 500;
}

.dh-wizard-summary-value {
	flex: 1;
	color: var(--dh-wizard-gray-700);
}

.dh-wizard-summary-muted {
	color: var(--dh-wizard-gray-500);
	font-size: 13px;
}

.dh-wizard-summary-account-type {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.dh-wizard-summary-memberships {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dh-wizard-membership-item {
	margin-bottom: 8px;
}

.dh-wizard-membership-item:last-child {
	margin-bottom: 0;
}

.dh-wizard-membership-name {
	display: block;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.dh-wizard-membership-brand-vp {
	color: #811DD1;
}

.dh-wizard-membership-brand-dh {
	color: #D11D8D;
}

.dh-wizard-membership-price {
	display: block;
	font-size: 12px;
	color: var(--dh-wizard-gray-500);
	margin-top: 2px;
}

.dh-wizard-membership-price-free {
	color: var(--dh-wizard-success);
}

.dh-wizard-membership-price-companion {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
}

.dh-wizard-membership-price-companion s {
	color: var(--dh-wizard-gray-400);
	font-weight: 400;
}

.dh-wizard-summary-divider {
	border: none;
	border-top: 1px solid var(--dh-wizard-gray-200);
	margin: 16px 0;
}

.dh-wizard-summary-action {
	text-align: center;
	padding-top: 8px;
}

.dh-wizard-summary-action strong {
	display: block;
	color: var(--dh-wizard-gray-700);
	margin-bottom: 4px;
}

.dh-wizard-summary-action p {
	font-size: 13px;
	color: var(--dh-wizard-gray-500);
	margin: 0 0 16px;
}

.dh-wizard-summary-submit {
	width: 100%;
	justify-content: center;
	padding: 14px 24px;
	font-size: 16px;
}

/* Username Field with Status */
.dh-wizard-input-with-status {
	position: relative;
}

.dh-wizard-input-with-status .dh-wizard-input {
	padding-right: 120px;
}

.dh-wizard-username-status {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 13px;
	font-weight: 500;
	min-height: 20px;
}

.dh-wizard-username-status.success {
	color: var(--dh-wizard-success);
}

.dh-wizard-username-status.error {
	color: var(--dh-wizard-error);
}

/* Password Field */
.dh-wizard-password-field {
	position: relative;
}

.dh-wizard-password-field .dh-wizard-input {
	padding-right: 48px;
}

.dh-wizard-password-toggle {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
	color: var(--dh-wizard-gray-400);
	display: flex;
	align-items: center;
	justify-content: center;
}

.dh-wizard-password-toggle:hover {
	color: var(--dh-wizard-gray-600);
}

.dh-wizard-password-toggle .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

/* Password Strength Meter */
.dh-wizard-password-strength {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 8px;
	min-height: 24px;
}

.dh-wizard-password-strength-bar {
	flex: 1;
	height: 6px;
	background: var(--dh-wizard-gray-200);
	border-radius: 3px;
	overflow: hidden;
}

.dh-wizard-password-strength-fill {
	height: 100%;
	width: 0;
	border-radius: 3px;
	transition: width 0.3s ease, background-color 0.3s ease;
}

.dh-wizard-password-strength-fill[data-strength="0"] {
	width: 0;
}

.dh-wizard-password-strength-fill[data-strength="1"] {
	width: 25%;
	background-color: var(--dh-wizard-error);
}

.dh-wizard-password-strength-fill[data-strength="2"] {
	width: 50%;
	background-color: var(--dh-wizard-warning);
}

.dh-wizard-password-strength-fill[data-strength="3"] {
	width: 75%;
	background-color: #84cc16;
}

.dh-wizard-password-strength-fill[data-strength="4"] {
	width: 100%;
	background-color: var(--dh-wizard-success);
}

.dh-wizard-password-strength-text {
	font-size: 13px;
	font-weight: 500;
	min-width: 70px;
}

.dh-wizard-password-strength-text.weak {
	color: var(--dh-wizard-error);
}

.dh-wizard-password-strength-text.fair {
	color: var(--dh-wizard-warning);
}

.dh-wizard-password-strength-text.good {
	color: #84cc16;
}

.dh-wizard-password-strength-text.strong {
	color: var(--dh-wizard-success);
}

/* Password Match Indicator */
.dh-wizard-password-match {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 500;
}

.dh-wizard-password-match.success {
	color: var(--dh-wizard-success);
}

.dh-wizard-password-match.error {
	color: var(--dh-wizard-error);
}

/* T&Cs Section */
.dh-wizard-tc-section {
	background: var(--dh-wizard-gray-50);
	border-radius: var(--dh-wizard-radius);
	padding: 24px;
	margin-top: 0;
	border-bottom: none !important;
}

.dh-wizard-tc-intro {
	font-size: 14px;
	color: var(--dh-wizard-gray-500);
	margin: 0 0 16px;
}

.dh-wizard-tc-download {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
}

.dh-wizard-btn-download {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.dh-wizard-btn-download .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.dh-wizard-tc-download-status {
	font-size: 14px;
	color: var(--dh-wizard-gray-500);
	min-height: 20px;
}

.dh-wizard-tc-download-status.downloaded {
	color: var(--dh-wizard-success);
	font-weight: 500;
}

/* Checkbox Styling */
.dh-wizard-tc-checkbox-group {
	margin-bottom: 0;
}

.dh-wizard-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.5;
}

.dh-wizard-checkbox {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-top: 2px;
	cursor: pointer;
}

.dh-wizard-checkbox-text {
	color: var(--dh-wizard-gray-700);
}

.dh-wizard-checkbox-text a {
	color: var(--dh-wizard-primary);
}

/* Summary Grid (Confirmation) */
.dh-wizard-summary-section {
	margin-bottom: 0;
}

.dh-wizard-summary-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.dh-wizard-summary-card {
	background: white;
	border: 1px solid var(--dh-wizard-gray-200);
	border-radius: var(--dh-wizard-radius);
	overflow: hidden;
}

.dh-wizard-summary-card-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: var(--dh-wizard-gray-50);
	border-bottom: 1px solid var(--dh-wizard-gray-200);
	font-size: 13px;
	font-weight: 600;
	color: var(--dh-wizard-gray-500);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.dh-wizard-summary-card-header .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: var(--dh-wizard-gray-400);
}

.dh-wizard-summary-card-body {
	padding: 16px;
}

.dh-wizard-summary-card-body p {
	margin: 0 0 4px;
	font-size: 14px;
}

.dh-wizard-summary-card-body p:last-child {
	margin-bottom: 0;
}

.dh-wizard-summary-card .dh-wizard-badge {
	margin-top: 8px;
}

/* Success State */
.dh-wizard-success {
	text-align: center;
	padding: 48px 24px;
	max-width: 540px;
	margin: 0 auto;
}

.dh-wizard-success h2 {
	font-size: 28px;
	margin: 0 0 12px;
	color: #811DD1;
}

.dh-wizard-success p {
	font-size: 16px;
	color: var(--dh-wizard-gray-500);
	margin: 0 0 16px;
	text-align: left;
}

.dh-wizard-success p:first-of-type {
	text-align: center;
}

.dh-wizard-success .dh-wizard-btn {
	margin-top: 16px;
}

.dh-wizard-payment-state .dh-wizard-btn-primary {
	background: #811DD1;
	color: #fff;
	border-radius: 9px;
	text-transform: lowercase;
	text-decoration: none;
}

.dh-wizard-payment-state .dh-wizard-btn-primary:hover {
	background: #D11D8D;
}

/* Pending/Abandoned Payment State */
.dh-wizard-pending {
	text-align: center;
	padding: 48px 24px;
}

.dh-wizard-pending-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 24px;
	background: #fef3c7;
	color: var(--dh-wizard-warning);
	border-radius: 50%;
	font-size: 32px;
	font-weight: 700;
}

.dh-wizard-pending h2 {
	font-size: 28px;
	margin: 0 0 12px;
	color: var(--dh-wizard-gray-900);
}

.dh-wizard-pending p {
	font-size: 16px;
	color: var(--dh-wizard-gray-500);
	margin: 0 0 24px;
}

.dh-wizard-pending .dh-wizard-btn {
	margin-top: 8px;
}

.dh-wizard-pending-help {
	font-size: 14px;
	margin-top: 32px;
}

.dh-wizard-pending-help a {
	color: var(--dh-wizard-primary);
}

.dh-wizard-pending-help a:hover {
	color: var(--dh-wizard-primary-hover);
}

/* Resume Prompt (Session Persistence) */
.dh-wizard-resume-prompt {
	text-align: center;
	padding: 48px 24px;
}

.dh-wizard-resume-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 24px;
	background: var(--dh-wizard-primary-light);
	color: var(--dh-wizard-primary);
	border-radius: 50%;
	font-size: 32px;
}

.dh-wizard-resume-prompt h2 {
	font-size: 28px;
	margin: 0 0 12px;
	color: var(--dh-wizard-gray-900);
}

.dh-wizard-resume-prompt > p {
	font-size: 16px;
	color: var(--dh-wizard-gray-500);
	margin: 0 0 16px;
}

.dh-wizard-resume-details {
	background: var(--dh-wizard-gray-50);
	border: 1px solid var(--dh-wizard-gray-200);
	border-radius: var(--dh-wizard-radius);
	padding: 16px 24px;
	margin: 16px auto;
	max-width: 320px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--dh-wizard-gray-700);
}

.dh-wizard-resume-step {
	font-size: 14px;
	color: var(--dh-wizard-gray-500);
	margin-bottom: 24px !important;
}

.dh-wizard-resume-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.dh-wizard-resume-actions .dh-wizard-btn {
	min-width: 160px;
}

/* Responsive - Large tablet / small desktop */
@media (max-width: 1024px) {
}

/* Responsive - Tablet */
@media (max-width: 800px) {
	.dh-wizard-container {
		padding: 24px;
	}

	.dh-wizard-options-cards {
		grid-template-columns: 1fr;
	}

	.dh-wizard-options-pricing {
		grid-template-columns: 1fr;
	}

	.dh-wizard-summary-grid {
		grid-template-columns: 1fr;
	}

	.dh-wizard-tc-download {
		flex-direction: column;
		align-items: flex-start;
	}

	/* Stack confirmation columns on tablet */
	.dh-wizard-confirmation-columns {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.dh-wizard-confirmation-right {
		position: static;
		order: -1; /* Show summary first on mobile */
	}

	.dh-wizard-summary-label {
		min-width: 90px;
	}
}

/* Responsive - Mobile */
@media (max-width: 640px) {
	.dh-wizard-container {
		padding: 16px;
	}

	.dh-wizard-options-cards {
		grid-template-columns: 1fr;
	}

	.dh-wizard-options-pricing {
		grid-template-columns: 1fr;
	}

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

	.dh-wizard-progress-steps {
		display: none;
	}

	.dh-wizard-navigation {
		flex-direction: column-reverse;
		gap: 12px;
	}

	.dh-wizard-btn {
		width: 100%;
		justify-content: center;
	}

	.dh-wizard-btn-back {
		visibility: visible !important;
	}
}

/* =========================================
   Payment Step Styles
   ========================================= */

/* Payment Step - Two Column Layout */
.dh-wizard-payment-step {
	/* Inherits base step styles */
}

.dh-wizard-payment-columns {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 32px;
	align-items: start;
}

.dh-wizard-payment-left {
	min-width: 0; /* Prevent grid blowout */
}

.dh-wizard-payment-right {
	position: sticky;
	top: 24px;
}

/* Payment Form Container */
.dh-wizard-payment-form-container {
	background: white;
	border: 1px solid var(--dh-wizard-gray-200);
	border-radius: var(--dh-wizard-radius);
	padding: 24px;
}

.dh-wizard-payment-form-container .dh-wizard-section-title {
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--dh-wizard-gray-200);
}

/* MemberPress Form Wrapper */
.dh-wizard-mepr-form-wrapper {
	/* Reset some MemberPress default styles */
}

.dh-wizard-mepr-form-wrapper .mepr-signup-form {
	margin: 0;
	padding: 0;
}

.dh-wizard-mepr-form-wrapper .mp-form-row {
	margin-bottom: 16px;
}

.dh-wizard-mepr-form-wrapper .mp-form-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--dh-wizard-gray-700);
	margin-bottom: 6px;
}

.dh-wizard-mepr-form-wrapper input[type="text"],
.dh-wizard-mepr-form-wrapper input[type="email"],
.dh-wizard-mepr-form-wrapper input[type="tel"],
.dh-wizard-mepr-form-wrapper input[type="password"],
.dh-wizard-mepr-form-wrapper select,
.dh-wizard-mepr-form-wrapper textarea {
	width: 100%;
	padding: 10px 12px;
	font-size: 16px;
	border: 2px solid var(--dh-wizard-gray-200);
	border-radius: var(--dh-wizard-radius);
	transition: border-color 0.2s ease;
	box-sizing: border-box;
}

.dh-wizard-mepr-form-wrapper input:focus,
.dh-wizard-mepr-form-wrapper select:focus,
.dh-wizard-mepr-form-wrapper textarea:focus {
	outline: none;
	border-color: var(--dh-wizard-primary);
}

/* Read-Only Fields (Pre-filled from wizard) */
.dh-wizard-readonly,
.dh-wizard-mepr-form-wrapper input[readonly],
.dh-wizard-mepr-form-wrapper input.dh-wizard-readonly {
	background-color: var(--dh-wizard-gray-100) !important;
	color: var(--dh-wizard-gray-600) !important;
	cursor: not-allowed !important;
	border-color: var(--dh-wizard-gray-200) !important;
}

.dh-wizard-readonly:focus,
.dh-wizard-mepr-form-wrapper input[readonly]:focus,
.dh-wizard-mepr-form-wrapper input.dh-wizard-readonly:focus {
	border-color: var(--dh-wizard-gray-200) !important;
	box-shadow: none !important;
}

/* Hide pre-filled field rows if needed */
.dh-wizard-mepr-form-wrapper .mepr-hidden-row {
	display: none !important;
}

/* MemberPress Submit Button Override */
.dh-wizard-mepr-form-wrapper .mepr-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px 24px;
	font-size: 16px;
	font-weight: 600;
	background: var(--dh-wizard-primary);
	color: white;
	border: none;
	border-radius: var(--dh-wizard-radius);
	cursor: pointer;
	transition: background-color 0.2s ease;
	margin-top: 8px;
}

.dh-wizard-mepr-form-wrapper .mepr-submit:hover {
	background: var(--dh-wizard-primary-hover);
}

.dh-wizard-mepr-form-wrapper .mepr-submit:disabled {
	background: var(--dh-wizard-gray-300);
	cursor: not-allowed;
}

/* Stripe Elements Container (within MemberPress) */
.dh-wizard-mepr-form-wrapper .mepr-stripe-card-element,
.dh-wizard-mepr-form-wrapper .StripeElement {
	padding: 12px;
	border: 2px solid var(--dh-wizard-gray-200);
	border-radius: var(--dh-wizard-radius);
	background: white;
	transition: border-color 0.2s ease;
}

.dh-wizard-mepr-form-wrapper .mepr-stripe-card-element--focus,
.dh-wizard-mepr-form-wrapper .StripeElement--focus {
	border-color: var(--dh-wizard-primary);
}

.dh-wizard-mepr-form-wrapper .mepr-stripe-card-element--invalid,
.dh-wizard-mepr-form-wrapper .StripeElement--invalid {
	border-color: var(--dh-wizard-error);
}

/* Order Summary Panel (Payment Step) */
.dh-wizard-order-summary {
	background: var(--dh-wizard-gray-50);
	border: 1px solid var(--dh-wizard-gray-200);
	border-radius: var(--dh-wizard-radius);
	padding: 24px;
}

.dh-wizard-order-summary .dh-wizard-section-title {
	font-size: 18px;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--dh-wizard-gray-200);
}

/* Total Row */
.dh-wizard-summary-total {
	margin-top: 8px;
}

.dh-wizard-summary-total .dh-wizard-summary-label {
	font-weight: 600;
	color: var(--dh-wizard-gray-700);
}

.dh-wizard-total-price {
	font-size: 24px;
	color: var(--dh-wizard-gray-900);
}

.dh-wizard-total-vat {
	display: block;
	font-size: 12px;
	color: var(--dh-wizard-gray-500);
	font-weight: 400;
	margin-top: 2px;
}

/* Payment Security Badge */
.dh-wizard-payment-security {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--dh-wizard-gray-200);
}

.dh-wizard-security-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--dh-wizard-gray-500);
}

.dh-wizard-security-badge .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: var(--dh-wizard-success);
}

/* Payment Step Error */
.dh-wizard-error {
	background: var(--dh-wizard-error-light);
	border: 1px solid var(--dh-wizard-error);
	border-radius: var(--dh-wizard-radius);
	padding: 16px;
	text-align: center;
}

.dh-wizard-error p {
	margin: 0;
	color: var(--dh-wizard-error);
}

/* Payment Step - Responsive */
@media (max-width: 900px) {
	.dh-wizard-payment-columns {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.dh-wizard-payment-right {
		position: static;
		order: -1; /* Show summary first on mobile */
	}
}

@media (max-width: 640px) {
	.dh-wizard-payment-form-container {
		padding: 16px;
	}

	.dh-wizard-order-summary {
		padding: 16px;
	}

	.dh-wizard-mepr-form-wrapper .mepr-submit {
		padding: 12px 20px;
	}
}
