/**
 * 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);
}

/* Elementor wraps the shortcode in .elementor-shortcode — force it to
   fill the widget and propagate dimensions to our container. */
.elementor-widget-shortcode .elementor-widget-container,
.elementor-widget-shortcode .elementor-shortcode {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}

/* Container — fills 100% of the Elementor widget.
   Padding and margin are handled by the Elementor widget settings. */
.dh-wizard-container {
	width: 100%;
	max-width: 100%;
	min-height: calc(100vh - 120px);
	box-sizing: border-box;
	overflow: hidden;
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	color: var(--dh-wizard-gray-900);
	position: relative;
	display: flex;
	flex-direction: column;
}

/* Progress Indicator — fixed height so it doesn't resize between steps. */
.dh-wizard-progress {
	margin-bottom: 24px;
	flex-shrink: 0;
}

.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);
}

/* Completed steps are clickable buttons */
button.dh-wizard-progress-step.completed {
	background: none;
	border: none;
	font-family: inherit;
	font-size: inherit;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

button.dh-wizard-progress-step.completed:hover {
	background-color: rgba(129, 29, 209, 0.08);
	text-decoration: underline;
}

button.dh-wizard-progress-step.completed:focus-visible {
	outline: 2px solid var(--dh-wizard-primary);
	outline-offset: 2px;
}

/* Checkmark before completed step label */
.dh-wizard-progress-check {
	color: var(--dh-wizard-success);
	font-size: 0.85em;
	margin-right: 2px;
}

/* Future steps (non-clickable spans) */
span.dh-wizard-progress-step {
	cursor: default;
	opacity: 0.5;
}

span.dh-wizard-progress-step.active {
	opacity: 1;
}

/* Step Content — fills remaining vertical space, scrolls internally. */
.dh-wizard-step-container {
	flex: 1;
	overflow-y: auto;
	min-height: 0;
}

.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 16px;
}

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

/* Tile Rows (categorised company type layout) */
.dh-wizard-tile-rows {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.dh-wizard-tile-row {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.dh-wizard-tile-row-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--dh-wizard-gray-500);
	padding-left: 4px;
}

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

.dh-wizard-tile {
	flex: 1 1 160px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 10px 12px 8px;
	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;
	position: relative;
}

/* Info Icon */
.dh-wizard-tile-info {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 28px;
	height: 28px;
	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: 28px;
	height: 28px;
	margin-bottom: 4px;
}

.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: 14px;
	font-weight: 600;
	margin-bottom: 4px;
	word-wrap: break-word;
}

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

.dh-wizard-tile-badge {
	display: inline-block;
	margin-top: 4px;
	padding: 2px 8px;
	font-size: 11px;
	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;
}

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

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

/* Pricing badge for option cards (umbrella products) */
.dh-wizard-option-price {
	display: inline-block;
	margin-top: 16px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 700;
	border-radius: 8px;
}

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

.dh-wizard-option-price.dh-wizard-badge-price {
	background: rgba(129, 29, 209, 0.08);
	color: #811DD1;
}

/* 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: 1.5px solid var(--dh-wizard-gray-200);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.dh-wizard-option:hover {
	border-color: #811DD1;
	box-shadow: 0 4px 12px rgba(129, 29, 209, 0.08);
}

.dh-wizard-option.selected {
	border-color: #811DD1;
	box-shadow: 0 0 0 1px #811DD1, 0 4px 12px rgba(129, 29, 209, 0.1);
}

.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: 700;
	margin-bottom: 4px;
	color: var(--dh-wizard-gray-900);
}

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

.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(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	width: 100%;
}

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

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

.dh-wizard-option-icon {
	font-size: 32px;
	margin-bottom: 16px;
	line-height: 1;
}

.dh-wizard-option-recommended {
	border-color: #811DD1;
	box-shadow: 0 0 0 1px #811DD1, 0 4px 12px rgba(129, 29, 209, 0.1);
}

.dh-wizard-option-badge-corner {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: #811DD1;
	color: white;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 4px 16px;
	border-radius: 20px;
	white-space: nowrap;
}

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

.dh-wizard-feature-list li {
	padding: 6px 0 6px 28px;
	position: relative;
	line-height: 1.5;
}

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

/* Pricing Options — cards always side by side, never stacked. */
.dh-wizard-options-pricing {
	display: grid;
	grid-template-columns: repeat(var(--dh-pricing-cols, 3), 1fr);
	gap: 20px;
	width: 100%;
	padding-top: 14px; /* space for floating badge */
}

.dh-wizard-option-pricing {
	flex-direction: column;
	align-items: stretch;
	text-align: left;
	position: relative;
	padding: 0;
	overflow: hidden;
}

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

/* Purple header / white body card pattern */
.dh-wizard-option-header {
	display: flex;
	flex-direction: column;
	background: #811DD1;
	color: #fff;
	padding: 24px 28px;
}

.dh-wizard-option-header .dh-wizard-option-tier {
	color: #fff;
	font-size: 24px;
	font-weight: 800;
}

.dh-wizard-option-header .dh-wizard-option-title,
.dh-wizard-option-header .dh-wizard-option-price-amount {
	color: #fff;
	font-size: 18px;
	font-weight: 600;
}

.dh-wizard-option-header .dh-wizard-option-description {
	color: rgba(255, 255, 255, 0.85);
}

.dh-wizard-option-header .dh-wizard-option-subtitle {
	color: rgba(255, 255, 255, 0.7);
}

.dh-wizard-option-header .dh-wizard-option-price-suffix {
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
}

.dh-wizard-option-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 24px 28px;
	background: #fff;
}

.dh-wizard-option-tier {
	display: block;
	font-size: 22px;
	font-weight: 800;
	color: var(--dh-wizard-gray-900);
	margin-bottom: 6px;
}

.dh-wizard-option-pricing .dh-wizard-option-description {
	display: block;
	margin-bottom: 16px;
}

.dh-wizard-option-pricing .dh-wizard-option-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--dh-wizard-gray-900);
	margin-bottom: 4px;
	letter-spacing: 0;
}

.dh-wizard-option-price-suffix {
	font-size: 16px;
	font-weight: 500;
	color: var(--dh-wizard-gray-500);
	letter-spacing: 0;
}

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

/* Most Popular / Highlighted pricing card */
.dh-wizard-option-popular {
	border-color: #811DD1;
	animation: dh-popular-glow 3s ease-in-out infinite;
}

@keyframes dh-popular-glow {
	0%, 100% { box-shadow: 0 0 0 1px #811DD1, 0 4px 18px rgba(129, 29, 209, 0.15); }
	50%      { box-shadow: 0 0 0 1px #811DD1, 0 4px 28px rgba(129, 29, 209, 0.35); }
}

.dh-wizard-option-popular-banner {
	position: absolute;
	top: -2px;
	right: 12px;
	background: #D11D8D;
	color: white;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 12px;
	border-radius: 9px;
	white-space: nowrap;
	z-index: 1;
	overflow: hidden;
}

.dh-wizard-option-popular-banner::after {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 60%;
	height: 100%;
	background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
	animation: dh-badge-shimmer 4s ease-in-out infinite;
	animation-delay: 1.5s;
}

@keyframes dh-badge-shimmer {
	0%, 100% { left: -100%; }
	20%      { left: 140%; }
	21%      { left: -100%; }
}

/* 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 — pinned to the bottom of the container. */
.dh-wizard-navigation {
	display: flex;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 24px;
	border-top: 1px solid var(--dh-wizard-gray-200);
	flex-shrink: 0;
}

.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-options-cards {
		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;
	}

	.dh-wizard-step-container {
		min-height: 0;
	}
}

/* Responsive - Mobile */
@media (max-width: 640px) {
	.dh-wizard-options-cards {
		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;
	}

	.dh-wizard-tile-row-label {
		font-size: 10px;
	}
}

/* =========================================
   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);
}

/* Read-Only Fields (Pre-filled from wizard) */
.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 {
	border-color: var(--dh-wizard-gray-200) !important;
	box-shadow: none !important;
}

/* 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;
	}

}

/* ═══════════════════════════════════════════════════════════════
   FULLSCREEN PAYMENT MODAL
   ═══════════════════════════════════════════════════════════════ */

.dh-payment-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.dh-payment-modal-card {
	position: relative;
	width: 100%;
	max-width: 480px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
	padding: 40px 32px;
	max-height: 90vh;
	overflow-y: auto;
}

.dh-payment-modal-card h2 {
	margin: 0 0 20px;
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
}

/* Close button — top right */
.dh-payment-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	background: #f0f0f0;
	border: 1px solid #ccc;
	border-radius: 9px;
	cursor: pointer;
	color: #D11D8D;
	transition: background 0.15s, color 0.15s;
}

.dh-payment-modal-close:hover {
	background: #e0e0e0;
	color: #a0156e;
}

/* Test mode badge */
.dh-payment-test-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	display: inline-block;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background: #ff9800;
	color: #fff;
	border-radius: 6px;
}

/* Payment Element container */
#dh-payment-element {
	margin-bottom: 20px;
	min-height: 200px;
}

/* Error message */
.dh-payment-message {
	margin-top: 12px;
	padding: 10px 14px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 6px;
	color: #dc2626;
	font-size: 14px;
}

/* Pay button inside modal */
.dh-payment-modal-card .dh-button {
	display: block;
	width: 100%;
	padding: 14px 24px;
	font-size: 16px;
	font-weight: 600;
	background: #811DD1;
	color: #fff;
	border: none;
	border-radius: 9px;
	cursor: pointer;
	text-transform: lowercase;
	transition: background 0.2s;
}

.dh-payment-modal-card .dh-button:hover {
	background: #D11D8D;
	color: #fff;
}

.dh-payment-modal-card .dh-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* "Complete later" link */
.dh-payment-modal-later {
	margin-top: 20px;
	text-align: center;
	font-size: 13px;
	color: #888;
}

.dh-payment-modal-later a {
	color: #811DD1;
	text-decoration: underline;
}

.dh-payment-modal-later a:hover {
	color: #D11D8D;
}

/* Expandable Sections (Body memberships, Voucher code) */
.dh-wizard-expandable-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 12px 16px;
	background: var(--dh-wizard-gray-50);
	border: 1px solid var(--dh-wizard-gray-200);
	border-radius: var(--dh-wizard-radius);
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	color: var(--dh-wizard-gray-700);
	text-align: left;
	font-family: inherit;
	line-height: 1.4;
}

.dh-wizard-expandable-toggle:hover {
	background: var(--dh-wizard-gray-100);
}

.dh-wizard-expandable-icon {
	transition: transform 0.2s;
	font-size: 12px;
	flex-shrink: 0;
}

.dh-wizard-expandable-toggle[aria-expanded="true"] .dh-wizard-expandable-icon {
	transform: rotate(90deg);
}

.dh-wizard-expandable-content {
	padding: 12px 0 0;
}

/* Body Membership Checkboxes */
.dh-wizard-body-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	cursor: pointer;
	font-size: 14px;
}

.dh-wizard-body-discount {
	color: var(--dh-wizard-success);
	font-size: 12px;
	font-weight: 500;
}

/* Voucher Code Input */
.dh-wizard-voucher-input {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

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

.dh-wizard-voucher-input .dh-wizard-btn {
	white-space: nowrap;
}

.dh-wizard-voucher-result {
	margin-top: 8px;
	padding: 8px 12px;
	border-radius: var(--dh-wizard-radius);
	font-size: 13px;
}

.dh-wizard-voucher-result--success {
	background: var(--dh-wizard-success-light);
	color: var(--dh-wizard-success);
	border: 1px solid var(--dh-wizard-success);
}

.dh-wizard-voucher-result--error {
	background: var(--dh-wizard-error-light);
	color: var(--dh-wizard-error);
	border: 1px solid var(--dh-wizard-error);
}

/* ==============================================================
   Billing Interval Toggle
   ============================================================== */

.dh-wizard-billing-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 20px;
}

/* Toggle switch — matches DH standard (46x24 purple pill slider) */
.dh-toggle-switch {
	position: relative;
	display: inline-block;
	width: 46px;
	height: 24px;
	flex-shrink: 0;
}

.dh-toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.dh-toggle-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: all 0.25s ease;
	border-radius: 24px;
}

.dh-toggle-slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: #fff;
	transition: all 0.25s ease;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dh-toggle-switch input:checked + .dh-toggle-slider {
	background-color: #811DD1;
}

.dh-toggle-switch input:checked + .dh-toggle-slider:before {
	transform: translateX(22px);
}

/* Labels flanking the toggle */
.dh-wizard-billing-label {
	font-size: 15px;
	font-weight: 500;
	color: #888;
	transition: color 0.2s;
}

.dh-wizard-billing-label-active {
	color: #333;
	font-weight: 600;
}

/* Savings nudge */
.dh-wizard-billing-nudge {
	font-size: 13px;
	font-weight: 600;
	color: #D11D8D;
}

/* Savings text on confirmation step */
.dh-wizard-savings-text {
	color: #D11D8D;
	font-weight: 600;
	font-size: 14px;
}

/* Discount badge and discounted price */
.dh-wizard-discount-badge {
	display: inline-block;
	background: #10b981;
	color: #fff;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 0.85em;
	font-weight: 600;
}

.dh-wizard-discounted-price strong {
	font-size: 1.15em;
	color: #10b981;
}

.dh-wizard-discount-row .dh-wizard-summary-label,
.dh-wizard-discounted-price-row .dh-wizard-summary-label {
	color: #10b981;
}

/* Pricing shortcode CTA button */
.dh-wizard-option-cta {
	display: block;
	margin-top: auto;
	padding: 12px 24px;
	background: #811DD1;
	color: #fff;
	text-align: center;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	font-size: 15px;
	transition: background 0.2s;
}

.dh-wizard-option-cta:hover {
	background: #6a18b0;
	color: #fff;
	text-decoration: none;
}

.dh-pricing-shortcode .dh-wizard-option-body {
	display: flex;
	flex-direction: column;
}

.dh-pricing-shortcode .dh-wizard-option-pricing {
	cursor: default;
}
