/**
 * Sant Chat AI - Setup Wizard Styles
 * Modern SaaS-style onboarding wizard
 *
 * @since 1.0.0
 */

/* ========================================================================
   Layout & Base
   ======================================================================== */

/* Hide WP admin sidebar and footer on wizard page */
#adminmenumain,
#wpfooter,
.sant-admin-sidebar,
.sant-dashboard-layout,
#screen-meta,
#screen-meta-links,
.notice:not(.sant-wizard-notice),
.update-nag,
div.error,
div.updated {
	display: none !important;
}

#wpcontent {
	margin-left: 0 !important;
	padding-left: 0 !important;
}

#wpbody-content {
	padding-bottom: 0 !important;
}

.sant-wizard {
	font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
	max-width: 100%;
	min-height: 100vh;
	background: #f8fafc;
	display: flex;
	flex-direction: column;
	-webkit-font-smoothing: antialiased;
}

/* ========================================================================
   Progress Bar
   ======================================================================== */

.sant-wizard-progress-bar {
	position: sticky;
	top: 32px; /* below WP admin bar */
	z-index: 100;
	height: 4px;
	background: #e2e8f0;
	width: 100%;
}

.sant-wizard-progress-fill {
	height: 100%;
	background: #2C2C2C;
	transition: width 0.4s ease;
	border-radius: 0 2px 2px 0;
}

/* ========================================================================
   Step Labels
   ======================================================================== */

.sant-wizard-step-labels {
	display: flex;
	justify-content: center;
	gap: 4px;
	padding: 16px 24px 0;
	background: #fff;
	border-bottom: 1px solid #e2e8f0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.sant-wizard-step-label {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 12px;
	border: none;
	background: none;
	cursor: pointer;
	font-size: 13px;
	color: #94a3b8;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: all 0.2s;
}

.sant-wizard-step-label:disabled {
	cursor: default;
	opacity: 0.5;
}

.sant-wizard-step-label .step-num {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 600;
	background: #e2e8f0;
	color: #94a3b8;
	flex-shrink: 0;
}

.sant-wizard-step-label.active {
	color: #1e293b;
	border-bottom-color: #2C2C2C;
}

.sant-wizard-step-label.active .step-num {
	background: #2C2C2C;
	color: #fff;
}

.sant-wizard-step-label.complete {
	color: #f59e0b;
}

.sant-wizard-step-label.complete .step-num {
	background: #f59e0b;
	color: #fff;
}

.sant-wizard-step-label .step-text {
	display: inline;
}

/* ========================================================================
   Body / Step Container
   ======================================================================== */

.sant-wizard-body {
	flex: 1;
	display: flex;
	justify-content: center;
	padding: 40px 24px;
}

.sant-wizard-step {
	width: 100%;
	max-width: 960px;
	animation: santWizardFadeIn 0.3s ease;
}

@keyframes santWizardFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.sant-wizard-step h2 {
	font-size: 26px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 8px;
}

.sant-wizard-desc {
	color: #64748b;
	font-size: 15px;
	margin: 0 0 28px;
	line-height: 1.5;
}

/* ========================================================================
   Navigation Bar
   ======================================================================== */

.sant-wizard-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 40px;
	background: #fff;
	border-top: 1px solid #e2e8f0;
	position: sticky;
	bottom: 0;
	z-index: 100;
}

.sant-wizard-nav-left,
.sant-wizard-nav-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* ========================================================================
   Buttons
   ======================================================================== */

.sant-wizard-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	border: none;
	transition: all 0.15s;
	text-decoration: none;
	line-height: 1.4;
}

.sant-wizard-btn-primary,
.sant-wizard-btn-next {
	background: #2C2C2C;
	color: #fff;
}

.sant-wizard-btn-primary:hover,
.sant-wizard-btn-next:hover {
	background: #1a1a1a;
	color: #fff;
}

.sant-wizard-btn-secondary {
	background: #f1f5f9;
	color: #475569;
	border: 1px solid #e2e8f0;
}

.sant-wizard-btn-secondary:hover {
	background: #e2e8f0;
	color: #334155;
}

.sant-wizard-btn-back {
	background: none;
	color: #64748b;
	padding: 10px 16px;
}

.sant-wizard-btn-back:hover {
	color: #1e293b;
	background: #f1f5f9;
}

.sant-wizard-btn-skip {
	background: none;
	color: #94a3b8;
	font-size: 13px;
	text-decoration: underline;
}

.sant-wizard-btn-skip:hover {
	color: #64748b;
}

.sant-wizard-btn-lg {
	padding: 14px 28px;
	font-size: 16px;
	border-radius: 10px;
}

.sant-wizard-btn-sm {
	padding: 7px 14px;
	font-size: 13px;
}

.sant-wizard-btn-upgrade {
	background: linear-gradient(135deg, #8b5cf6, #a78bfa);
	color: #fff;
	font-size: 12px;
	padding: 6px 14px;
	border-radius: 6px;
}

.sant-wizard-btn-upgrade:hover {
	opacity: 0.9;
	color: #fff;
}

.sant-wizard-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.sant-wizard-btn .spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255,255,255,0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: santSpin 0.6s linear infinite;
}

.sant-wizard-btn-secondary .spinner {
	border-color: rgba(0,0,0,0.15);
	border-top-color: #475569;
}

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

/* ========================================================================
   Form Fields
   ======================================================================== */

.sant-wizard-field {
	margin-bottom: 20px;
}

.sant-wizard-field label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: #334155;
	margin-bottom: 6px;
}

.sant-wizard-field label .required {
	color: #ef4444;
}

.sant-wizard-field input[type="text"],
.sant-wizard-field input[type="email"],
.sant-wizard-field input[type="url"],
.sant-wizard-field input[type="number"],
.sant-wizard-field textarea,
.sant-wizard-field select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	color: #1e293b;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
	box-sizing: border-box;
}

.sant-wizard-field input:focus,
.sant-wizard-field textarea:focus,
.sant-wizard-field select:focus {
	outline: none;
	border-color: #2C2C2C;
	box-shadow: 0 0 0 3px rgba(44, 44, 44, 0.1);
}

.sant-wizard-field textarea {
	resize: vertical;
	min-height: 100px;
	font-family: inherit;
}

.sant-wizard-field small {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: #94a3b8;
}

.sant-wizard-field small a {
	color: #2C2C2C;
}

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

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

.sant-wizard-fields-row {
	display: flex;
	gap: 20px;
}

.sant-wizard-fields-row > .sant-wizard-field {
	flex: 1;
}

.sant-wizard-field-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 4px;
}

.sant-wizard-char-count {
	font-size: 12px;
	color: #94a3b8;
}

.sant-wizard-inline-field {
	margin-top: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.sant-wizard-inline-field label {
	font-size: 13px;
	font-weight: 400;
	color: #64748b;
	margin-bottom: 0;
	white-space: nowrap;
}

.sant-wizard-hint {
	font-size: 13px;
	color: #94a3b8;
	margin-top: 8px;
}

.wizard-qr-input {
	margin-bottom: 8px;
}

/* ========================================================================
   Toggle Switch
   ======================================================================== */

.sant-wizard-toggle {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
	cursor: pointer;
}

.sant-wizard-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.sant-wizard-toggle-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #cbd5e1;
	border-radius: 24px;
	transition: background 0.2s;
}

.sant-wizard-toggle-slider::before {
	content: '';
	position: absolute;
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s;
}

.sant-wizard-toggle input:checked + .sant-wizard-toggle-slider {
	background: #f59e0b;
}

.sant-wizard-toggle input:checked + .sant-wizard-toggle-slider::before {
	transform: translateX(20px);
}

.sant-wizard-toggle-lg {
	width: 56px;
	height: 30px;
}

.sant-wizard-toggle-lg .sant-wizard-toggle-slider::before {
	height: 24px;
	width: 24px;
}

.sant-wizard-toggle-lg input:checked + .sant-wizard-toggle-slider::before {
	transform: translateX(26px);
}

.sant-wizard-toggle-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 600;
	font-size: 14px;
	color: #334155;
	gap: 12px;
}

/* ========================================================================
   Notices
   ======================================================================== */

.sant-wizard-notice {
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13px;
	margin-top: 10px;
}

.sant-wizard-notice.success {
	background: #fffbeb;
	color: #92400e;
	border: 1px solid #fde68a;
}

.sant-wizard-notice.error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.sant-wizard-notice.info {
	background: #eff6ff;
	color: #1e40af;
	border: 1px solid #bfdbfe;
}

/* ========================================================================
   Step 1: Welcome — Block-based feature grid
   ======================================================================== */

.sant-wizard-welcome {
	text-align: center;
	padding: 20px 0 40px;
}

.sant-wizard-welcome-hero {
	margin-bottom: 36px;
}

.sant-wizard-logo {
	width: 72px;
	height: auto;
	margin-bottom: 16px;
	animation: santLogoFloat 3s ease-in-out infinite;
}

@keyframes santLogoFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

.sant-wizard-welcome h1 {
	font-size: 34px;
	font-weight: 800;
	color: #1e293b;
	margin: 0 0 12px;
}

.sant-wizard-subtitle {
	font-size: 17px;
	color: #64748b;
	max-width: 500px;
	margin: 0 auto;
	line-height: 1.5;
}

.sant-wizard-feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	max-width: 700px;
	margin: 0 auto 28px;
}

.sant-wizard-feature-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px 16px 20px;
	text-align: center;
	transition: all 0.25s ease;
	opacity: 0;
	transform: translateY(12px);
	animation: santCardIn 0.4s ease forwards;
}

.sant-wizard-feature-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 4px 16px rgba(0,0,0,0.06);
	transform: translateY(-2px);
}

@keyframes santCardIn {
	to { opacity: 1; transform: translateY(0); }
}

.sant-wizard-feature-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
	transition: transform 0.2s;
}

.sant-wizard-feature-card:hover .sant-wizard-feature-icon {
	transform: scale(1.1);
}

.sant-wizard-feature-icon-connect { background: #eff6ff; color: #3b82f6; }
.sant-wizard-feature-icon-identity { background: #fffbeb; color: #f59e0b; }
.sant-wizard-feature-icon-design { background: #fef3c7; color: #f59e0b; }
.sant-wizard-feature-icon-knowledge { background: #fce7f3; color: #ec4899; }
.sant-wizard-feature-icon-leads { background: #ede9fe; color: #8b5cf6; }
.sant-wizard-feature-icon-launch { background: #f1f5f9; color: #2C2C2C; }

.sant-wizard-feature-card h3 {
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
	margin: 0 0 4px;
}

.sant-wizard-feature-card p {
	font-size: 12px;
	color: #94a3b8;
	margin: 0;
	line-height: 1.4;
}

.sant-wizard-welcome-time {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #94a3b8;
	margin: 0;
}

/* ========================================================================
   Step 2: Connect Account — Two-step process & connected state
   ======================================================================== */

.sant-wizard-connect-wrapper {
	max-width: 600px;
	padding-top: 24px;
}

/* Already Connected */
.sant-wizard-connect-success {
	background: #fff;
	border: 2px solid #fde68a;
	border-radius: 16px;
	padding: 40px;
	text-align: center;
	max-width: 500px;
	margin: 0 auto;
}

.sant-wizard-connect-success-icon {
	margin-bottom: 16px;
}

.sant-wizard-connect-success h3 {
	font-size: 22px;
	font-weight: 700;
	color: #92400e;
	margin: 0 0 8px;
}

.sant-wizard-connect-success p {
	color: #64748b;
	margin: 0 0 20px;
	font-size: 15px;
}

.sant-wizard-connect-details {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin-bottom: 20px;
}

.sant-wizard-connect-detail {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sant-wizard-connect-detail-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #94a3b8;
}

.sant-wizard-connect-detail-value {
	font-size: 14px;
	font-weight: 500;
	color: #1e293b;
}

.sant-wizard-plan-pill {
	display: inline-block;
	background: #fffbeb;
	color: #b45309;
	padding: 2px 10px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
}

/* Two-step connect */
.sant-wizard-connect-step {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	margin-bottom: 16px;
	overflow: hidden;
	transition: all 0.2s;
}

.sant-wizard-connect-step-locked {
	opacity: 0.5;
	pointer-events: none;
}

.sant-wizard-connect-step-header {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 20px;
}

.sant-wizard-connect-step-num {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #2C2C2C;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	flex-shrink: 0;
}

.sant-wizard-connect-step-locked .sant-wizard-connect-step-num {
	background: #cbd5e1;
}

.sant-wizard-connect-step-header strong {
	display: block;
	font-size: 15px;
	color: #1e293b;
	margin-bottom: 2px;
}

.sant-wizard-connect-step-header small {
	font-size: 13px;
	color: #94a3b8;
	font-weight: 400;
}

.sant-wizard-connect-step-header small a {
	color: #2C2C2C;
}

.sant-wizard-connect-step-body {
	padding: 0 20px 20px;
	padding-left: 62px; /* align with content after step-num */
}

.sant-wizard-plan-badge {
	display: flex;
	align-items: center;
	padding: 12px 16px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 8px;
	margin-bottom: 16px;
	gap: 10px;
}

.sant-wizard-plan-info {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sant-wizard-plan-info strong {
	display: block;
	color: #92400e;
	font-size: 13px;
}

.sant-wizard-plan-name {
	font-size: 12px;
	color: #b45309;
}

/* ========================================================================
   Step 5: Design System Visual Previews
   ======================================================================== */

.sant-wizard-design-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.sant-wizard-design-card {
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s;
	display: block;
	overflow: hidden;
}

.sant-wizard-design-card input[type="radio"] {
	display: none;
}

.sant-wizard-design-card.selected,
.sant-wizard-design-card:has(input:checked) {
	border-color: #2C2C2C;
	box-shadow: 0 0 0 1px #2C2C2C;
}

.sant-wizard-design-card-inner {
	padding: 16px;
	text-align: center;
}

.sant-wizard-design-note {
	font-size: 12px;
	color: #94a3b8;
	text-align: center;
	margin: 10px 0 0;
	font-style: italic;
}

.sant-wizard-design-card-inner strong {
	display: block;
	font-size: 15px;
	color: #1e293b;
	margin-bottom: 4px;
}

.sant-wizard-design-card-inner small {
	color: #64748b;
	font-size: 12px;
	line-height: 1.4;
}

/* Mini Widget Preview for Design System Cards */
.sant-wizard-design-preview {
	width: 100%;
	height: 140px;
	background: #f8fafc;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 12px;
	display: flex;
	flex-direction: column;
}

.sdp-header {
	height: 28px;
	background: #2C2C2C;
	display: flex;
	align-items: center;
	padding: 0 10px;
	gap: 6px;
}

.sdp-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255,255,255,0.4);
}

.sdp-title {
	font-size: 9px;
	color: rgba(255,255,255,0.8);
	font-weight: 600;
}

.sdp-emoji {
	font-size: 10px;
}

.sdp-body {
	flex: 1;
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.sdp-msg {
	height: 14px;
	border-radius: 6px;
	width: 70%;
}

.sdp-msg-bot {
	background: #e2e8f0;
}

.sdp-msg-user {
	background: #3b82f6;
	align-self: flex-end;
	width: 55%;
}

.sdp-msg-short {
	width: 45%;
}

.sdp-input {
	height: 24px;
	background: #fff;
	border-top: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	padding: 0 8px;
	gap: 6px;
}

.sdp-input-bar {
	flex: 1;
	height: 10px;
	background: #f1f5f9;
	border-radius: 4px;
}

.sdp-send {
	width: 12px;
	height: 12px;
	background: #2C2C2C;
	border-radius: 2px;
}

/* Playful variant */
.sant-wizard-design-preview-playful .sdp-header-rounded {
	border-radius: 0;
	background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.sant-wizard-design-preview-playful .sdp-body-gradient {
	background: linear-gradient(180deg, #f5f3ff, #fdf2f8);
}

.sant-wizard-design-preview-playful .sdp-msg-bubble {
	border-radius: 10px;
}

.sant-wizard-design-preview-playful .sdp-msg-bot {
	background: #ede9fe;
}

.sant-wizard-design-preview-playful .sdp-msg-user {
	background: #8b5cf6;
}

.sant-wizard-design-preview-playful .sdp-input-rounded {
	border-radius: 0 0 0 0;
}

.sant-wizard-design-preview-playful .sdp-send-round {
	border-radius: 50%;
	background: #8b5cf6;
}

/* Typing indicator animation for playful */
.sdp-typing {
	display: flex;
	gap: 3px;
	padding: 4px 0;
}

.sdp-typing span {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #a78bfa;
	animation: santTypingBounce 1s ease-in-out infinite;
}

.sdp-typing span:nth-child(2) { animation-delay: 0.15s; }
.sdp-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes santTypingBounce {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
	30% { transform: translateY(-4px); opacity: 1; }
}

/* Color Theme Grid — Mini Preview Cards */
.sant-wizard-theme-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.sant-wizard-theme-card {
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	padding: 8px;
	cursor: pointer;
	text-align: center;
	transition: all 0.15s;
	display: block;
}

.sant-wizard-theme-card input[type="radio"] {
	display: none;
}

.sant-wizard-theme-card.selected,
.sant-wizard-theme-card:has(input:checked) {
	border-color: #2C2C2C;
	box-shadow: 0 0 0 1px #2C2C2C;
}

/* Mini preview widget inside theme cards */
.sant-wizard-theme-mini-preview {
	width: 100%;
	height: 64px;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 6px;
	display: flex;
	flex-direction: column;
}

.stmp-header {
	height: 16px;
	flex-shrink: 0;
}

.stmp-body {
	flex: 1;
	padding: 4px 6px;
	display: flex;
	flex-direction: column;
	gap: 3px;
	justify-content: center;
}

.stmp-msg-bot {
	height: 8px;
	width: 65%;
	border-radius: 3px;
}

.stmp-msg-user {
	height: 8px;
	width: 50%;
	border-radius: 3px;
	align-self: flex-end;
}

.stmp-input {
	height: 14px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 0 4px;
	flex-shrink: 0;
}

.stmp-send {
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.sant-wizard-theme-name {
	font-size: 10px;
	color: #64748b;
	line-height: 1.2;
	display: block;
}

/* ========================================================================
   Two-Column Layout (Steps 4 & 5)
   ======================================================================== */

.sant-wizard-two-col {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.sant-wizard-col-form {
	flex: 1;
	min-width: 0;
}

.sant-wizard-col-preview {
	width: 320px;
	flex-shrink: 0;
	position: sticky;
	top: 80px;
}

/* ========================================================================
   Live Preview Widget
   ======================================================================== */

.sant-wizard-preview-label {
	font-size: 12px;
	font-weight: 600;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 10px;
}

.sant-wizard-preview {
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
	font-size: 14px;
}

.sant-wizard-preview-header {
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: all 0.3s ease;
}

.sant-wizard-preview-title {
	font-weight: 600;
	font-size: 16px;
}

.sant-wizard-preview-close {
	font-size: 20px;
	opacity: 0.7;
	cursor: default;
}

.sant-wizard-preview-body {
	padding: 20px 16px;
	min-height: 200px;
	transition: all 0.3s ease;
}

.sant-wizard-preview-msg {
	padding: 10px 14px;
	border-radius: 14px;
	margin-bottom: 10px;
	line-height: 1.4;
	font-size: 13px;
	max-width: 80%;
	word-wrap: break-word;
	transition: all 0.3s ease;
}

.sant-wizard-preview-msg.bot {
	border-bottom-left-radius: 4px;
}

.sant-wizard-preview-msg.user {
	margin-left: auto;
	border-bottom-right-radius: 4px;
}

.sant-wizard-preview-qr {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.sant-wizard-preview-qr-btn {
	font-size: 11px;
	padding: 5px 10px;
	border: 1px solid;
	border-radius: 16px;
	cursor: default;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.sant-wizard-preview-input {
	padding: 12px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid #e2e8f0;
	transition: all 0.3s ease;
}

.sant-wizard-preview-input-text {
	color: #94a3b8;
	font-size: 13px;
}

.sant-wizard-preview-send {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

/* Playful mode — applied when design system is set to "playful" */
.sant-wizard-preview-playful .sant-wizard-preview-header {
	background: linear-gradient(135deg, #8b5cf6, #a78bfa) !important;
	color: #fff !important;
}

.sant-wizard-preview-playful .sant-wizard-preview-body {
	background: linear-gradient(180deg, #f5f3ff, #fdf2f8) !important;
}

.sant-wizard-preview-playful .sant-wizard-preview-msg.bot {
	background: #ede9fe !important;
	color: #1e293b !important;
	border-radius: 18px;
	border-bottom-left-radius: 6px;
}

.sant-wizard-preview-playful .sant-wizard-preview-msg.user {
	background: #8b5cf6 !important;
	color: #fff !important;
	border-radius: 18px;
	border-bottom-right-radius: 6px;
}

.sant-wizard-preview-playful .sant-wizard-preview-send {
	background: #8b5cf6 !important;
}

.sant-wizard-preview-playful .sant-wizard-preview-qr-btn {
	border-color: #8b5cf6 !important;
	color: #8b5cf6 !important;
	border-radius: 20px;
}

/* ========================================================================
   Step 6: Knowledge Base Tabs, Sync Warning & Progress
   ======================================================================== */

.sant-wizard-tabs {
	display: flex;
	gap: 0;
	margin-bottom: 20px;
	border-bottom: 2px solid #e2e8f0;
}

.sant-wizard-tab {
	padding: 10px 20px;
	border: none;
	background: none;
	font-size: 14px;
	font-weight: 500;
	color: #64748b;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: all 0.15s;
}

.sant-wizard-tab.active {
	color: #1e293b;
	border-bottom-color: #2C2C2C;
}

.sant-wizard-tab:hover:not(.active) {
	color: #334155;
}

/* Sync Warning */
.sant-wizard-sync-warning {
	display: flex;
	gap: 12px;
	padding: 14px 16px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 10px;
	margin-bottom: 16px;
	color: #92400e;
	font-size: 13px;
	align-items: flex-start;
}

.sant-wizard-sync-warning svg {
	flex-shrink: 0;
	margin-top: 1px;
}

.sant-wizard-sync-warning strong {
	display: block;
	margin-bottom: 2px;
	font-size: 14px;
	color: #78350f;
}

.sant-wizard-sync-warning p {
	margin: 0;
	line-height: 1.5;
}

.sant-wizard-sync-warning-active {
	background: #fffbeb;
	border-color: #fde68a;
	color: #92400e;
}

.sant-wizard-sync-warning-active strong {
	color: #78350f;
}

.sant-wizard-sync-progress {
	margin-top: 16px;
}

.sant-wizard-sync-bar {
	height: 8px;
	background: #e2e8f0;
	border-radius: 4px;
	overflow: hidden;
}

.sant-wizard-sync-fill {
	height: 100%;
	background: #f59e0b;
	border-radius: 4px;
	transition: width 0.5s ease;
}

.sant-wizard-sync-status {
	font-size: 13px;
	color: #64748b;
	margin-top: 8px;
}

/* ========================================================================
   Step 7: Lead Capture Mode Cards + AI-Driven Info
   ======================================================================== */

.sant-wizard-mode-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 24px;
}

.sant-wizard-mode-card {
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s;
	display: block;
}

.sant-wizard-mode-card input[type="radio"] {
	display: none;
}

.sant-wizard-mode-card.selected,
.sant-wizard-mode-card:has(input:checked) {
	border-color: #2C2C2C;
	background: #f8fafc;
}

.sant-wizard-mode-card:hover:not(.sant-wizard-mode-card-locked) {
	border-color: #cbd5e1;
}

.sant-wizard-mode-card-locked {
	opacity: 0.55;
	cursor: default;
	pointer-events: none;
}

.sant-wizard-mode-card-inner {
	padding: 20px 16px;
	text-align: center;
}

.sant-wizard-mode-icon {
	color: #64748b;
	margin-bottom: 10px;
}

.sant-wizard-mode-card.selected .sant-wizard-mode-icon,
.sant-wizard-mode-card:has(input:checked) .sant-wizard-mode-icon {
	color: #2C2C2C;
}

.sant-wizard-mode-card-inner strong {
	display: block;
	font-size: 15px;
	color: #1e293b;
	margin-bottom: 4px;
}

.sant-wizard-mode-card-inner small {
	color: #64748b;
	font-size: 12px;
	line-height: 1.4;
}

/* Lead settings section spacing */
.sant-wizard-lead-settings {
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
	margin-top: 8px;
}

.sant-wizard-lead-settings .sant-wizard-toggle-label {
	padding: 4px 0;
	min-height: 36px;
}

/* AI-Driven Info Block */
.sant-wizard-ai-driven-info {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 32px;
	text-align: center;
	max-width: 500px;
	margin: 0 auto;
}

.sant-wizard-ai-driven-icon {
	color: #8b5cf6;
	margin-bottom: 12px;
}

.sant-wizard-ai-driven-info h3 {
	font-size: 18px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 8px;
}

.sant-wizard-ai-driven-info p {
	font-size: 14px;
	color: #64748b;
	margin: 0;
	line-height: 1.6;
}

/* ========================================================================
   Step 8: Feature Blocks — Visual cards with micro animations
   ======================================================================== */

.sant-wizard-feature-blocks {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sant-wizard-feature-block {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.2s;
}

.sant-wizard-feature-block:hover {
	border-color: #cbd5e1;
}

.sant-wizard-feature-block-locked {
	opacity: 0.6;
}

.sant-wizard-feature-block-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	gap: 16px;
}

.sant-wizard-feature-block-header-simple {
	/* No toggle on the right side */
}

.sant-wizard-feature-block-info {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1;
	min-width: 0;
}

.sant-wizard-feature-block-visual {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
}

.sant-wizard-feature-block-info h3 {
	font-size: 15px;
	font-weight: 600;
	color: #1e293b;
	margin: 0 0 2px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.sant-wizard-feature-block-info p {
	font-size: 13px;
	color: #94a3b8;
	margin: 0;
	line-height: 1.4;
}

.sant-wizard-feature-block-body {
	padding: 0 20px 18px;
	border-top: 1px solid #f1f5f9;
}

.sant-wizard-feature-block-body .sant-wizard-fields-row {
	margin-top: 14px;
}

.sant-wizard-feature-block-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 14px;
}

/* Chip-style checkboxes */
.sant-wizard-chip {
	display: inline-flex;
	cursor: pointer;
}

.sant-wizard-chip input[type="checkbox"] {
	display: none;
}

.sant-wizard-chip span {
	padding: 6px 14px;
	border: 1px solid #d1d5db;
	border-radius: 20px;
	font-size: 13px;
	color: #64748b;
	transition: all 0.15s;
	background: #fff;
}

.sant-wizard-chip input:checked + span {
	background: #2C2C2C;
	border-color: #2C2C2C;
	color: #fff;
}

/* Feature Chips Grid — for Chat Features */
.sant-wizard-feature-chips {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	padding-top: 14px;
}

.sant-wizard-feature-chip {
	display: block;
	cursor: pointer;
}

.sant-wizard-feature-chip input[type="checkbox"] {
	display: none;
}

.sant-wizard-feature-chip-inner {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	font-size: 13px;
	color: #64748b;
	transition: all 0.15s;
	background: #fff;
}

.sant-wizard-feature-chip-inner svg {
	flex-shrink: 0;
	color: #94a3b8;
	transition: color 0.15s;
}

.sant-wizard-feature-chip input:checked + .sant-wizard-feature-chip-inner {
	background: #f8fafc;
	border-color: #2C2C2C;
	color: #1e293b;
}

.sant-wizard-feature-chip input:checked + .sant-wizard-feature-chip-inner svg {
	color: #2C2C2C;
}

/* Micro animations for feature block visuals */

/* Multi-Tab Animation */
.sfb-tabs-anim {
	display: flex;
	gap: 2px;
	align-items: flex-end;
}

.sfb-tab {
	font-size: 7px;
	padding: 3px 5px;
	border-radius: 4px 4px 0 0;
	background: #e2e8f0;
	color: #94a3b8;
	font-weight: 600;
	transition: all 0.3s;
}

.sfb-tab-active {
	background: #2C2C2C;
	color: #fff;
	padding-bottom: 5px;
}

.sant-wizard-feature-block:hover .sfb-tab-home {
	animation: santTabPop 1.2s ease infinite;
}

.sant-wizard-feature-block:hover .sfb-tab-help {
	animation: santTabPop 1.2s ease 0.4s infinite;
}

@keyframes santTabPop {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-2px); }
}

/* Proactive Chat Animation */
.sfb-proactive-anim {
	position: relative;
}

.sfb-proactive-bubble {
	background: #2C2C2C;
	color: #fff;
	font-size: 7px;
	padding: 4px 8px;
	border-radius: 8px;
	position: relative;
	animation: santBubblePulse 2s ease infinite;
}

.sfb-proactive-dot {
	position: absolute;
	top: -2px;
	right: -2px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #f59e0b;
}

@keyframes santBubblePulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.05); }
}

/* Voice Animation */
.sfb-voice-wave {
	display: flex;
	align-items: center;
	gap: 2px;
	height: 24px;
}

.sfb-voice-wave span {
	width: 3px;
	border-radius: 2px;
	background: #2C2C2C;
	animation: santVoiceWave 1s ease-in-out infinite;
}

.sfb-voice-wave span:nth-child(1) { height: 8px; animation-delay: 0s; }
.sfb-voice-wave span:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.sfb-voice-wave span:nth-child(3) { height: 20px; animation-delay: 0.2s; }
.sfb-voice-wave span:nth-child(4) { height: 14px; animation-delay: 0.3s; }
.sfb-voice-wave span:nth-child(5) { height: 10px; animation-delay: 0.4s; }

@keyframes santVoiceWave {
	0%, 100% { transform: scaleY(1); }
	50% { transform: scaleY(0.5); }
}

.sant-wizard-feature-block-locked .sfb-voice-wave span {
	background: #cbd5e1;
}

/* Features Grid Animation */
.sfb-features-anim {
	color: #64748b;
}

/* Action Icons Animation */
.sfb-actions-anim {
	display: flex;
	gap: 4px;
}

.sfb-action-icon {
	font-size: 14px;
	animation: santActionBounce 2s ease infinite;
}

.sfb-action-icon:nth-child(2) { animation-delay: 0.2s; }
.sfb-action-icon:nth-child(3) { animation-delay: 0.4s; }

@keyframes santActionBounce {
	0%, 100% { transform: translateY(0); }
	20% { transform: translateY(-3px); }
	40% { transform: translateY(0); }
}

/* Timeout Animation */
.sfb-timeout-anim {
	color: #64748b;
}

.sfb-timeout-anim svg {
	animation: santClockTick 3s ease-in-out infinite;
}

@keyframes santClockTick {
	0% { transform: rotate(0deg); }
	25% { transform: rotate(5deg); }
	75% { transform: rotate(-5deg); }
	100% { transform: rotate(0deg); }
}

.sant-wizard-badge-pro {
	font-size: 10px;
	font-weight: 700;
	background: linear-gradient(135deg, #8b5cf6, #a78bfa);
	color: #fff;
	padding: 2px 8px;
	border-radius: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ========================================================================
   Step 9: Launch — Summary Grid + Launch Block
   ======================================================================== */

.sant-wizard-launch {
	text-align: center;
	padding: 20px 0;
	position: relative;
}

.sant-wizard-launch h2 {
	text-align: center;
}

.sant-wizard-launch .sant-wizard-desc {
	text-align: center;
}

/* Summary Grid */
.sant-wizard-summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 12px;
	max-width: 640px;
	margin: 0 auto 32px;
}

.sant-wizard-summary-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px;
	text-align: center;
	transition: all 0.2s;
	position: relative;
}

.sant-wizard-summary-card.configured {
	border-color: #fde68a;
	background: #fffdf5;
}

.sant-wizard-summary-card.skipped {
	border-color: #e2e8f0;
	background: #f8fafc;
}

.sant-wizard-summary-card-icon {
	color: #94a3b8;
	margin-bottom: 8px;
}

.sant-wizard-summary-card.configured .sant-wizard-summary-card-icon {
	color: #f59e0b;
}

.sant-wizard-summary-card.skipped .sant-wizard-summary-card-icon {
	color: #94a3b8;
}

.sant-wizard-summary-card-content {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.sant-wizard-summary-card-content strong {
	font-size: 13px;
	color: #1e293b;
}

.sant-wizard-summary-check,
.sant-wizard-summary-warn {
	flex-shrink: 0;
}

.sant-wizard-summary-card-link {
	display: block;
	font-size: 11px;
	color: #2C2C2C;
	margin-top: 6px;
	text-decoration: underline;
}

/* Launch Block */
.sant-wizard-launch-block {
	max-width: 500px;
	margin: 0 auto 24px;
}

.sant-wizard-launch-block-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 24px;
	background: #fff;
	border: 2px solid #e2e8f0;
	border-radius: 16px;
	transition: border-color 0.2s;
}

.sant-wizard-launch-block-inner:has(input:checked) {
	border-color: #f59e0b;
	background: #fffdf5;
}

.sant-wizard-launch-block-icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #64748b;
	transition: all 0.2s;
}

.sant-wizard-launch-block-inner:has(input:checked) .sant-wizard-launch-block-icon {
	background: #fffbeb;
	color: #f59e0b;
}

.sant-wizard-launch-block-text {
	flex: 1;
	text-align: left;
}

.sant-wizard-launch-block-text strong {
	display: block;
	font-size: 16px;
	color: #1e293b;
	margin-bottom: 2px;
}

.sant-wizard-launch-block-text span {
	font-size: 13px;
	color: #94a3b8;
}

.sant-wizard-launch-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
}

/* Settings Links Grid (Step 9) */
.sant-wizard-settings-section {
	margin: 32px auto 0;
	max-width: 640px;
	text-align: left;
}

.sant-wizard-settings-section h3 {
	font-size: 16px;
	font-weight: 600;
	color: #1e293b;
	margin: 0 0 4px;
	text-align: center;
}

.sant-wizard-settings-section p {
	font-size: 13px;
	color: #94a3b8;
	margin: 0 0 16px;
	text-align: center;
}

.sant-wizard-settings-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.sant-wizard-settings-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	text-decoration: none;
	color: #1e293b;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.15s;
}

.sant-wizard-settings-link:hover {
	border-color: #f59e0b;
	background: #fffdf5;
	color: #1e293b;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sant-wizard-settings-link-icon {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #64748b;
}

.sant-wizard-settings-link:hover .sant-wizard-settings-link-icon {
	background: #fffbeb;
	color: #f59e0b;
}

/* ========================================================================
   Confetti Animation
   ======================================================================== */

.sant-wizard-confetti {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: hidden;
	z-index: 10;
}

.confetti-piece {
	position: absolute;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	top: -10px;
	animation: santConfetti 3s ease-out forwards;
}

@keyframes santConfetti {
	0% {
		transform: translateY(0) rotate(0deg);
		opacity: 1;
	}
	100% {
		transform: translateY(600px) rotate(720deg);
		opacity: 0;
	}
}

/* ========================================================================
   Responsive
   ======================================================================== */

@media (max-width: 1024px) {
	.sant-wizard-two-col {
		flex-direction: column;
	}

	.sant-wizard-col-preview {
		width: 100%;
		max-width: 360px;
		margin: 0 auto;
		position: static;
	}
}

@media (max-width: 768px) {
	.sant-wizard-step-label .step-text {
		display: none;
	}

	.sant-wizard-step-labels {
		justify-content: space-around;
	}

	.sant-wizard-body {
		padding: 24px 16px;
	}

	.sant-wizard-nav {
		padding: 12px 16px;
	}

	.sant-wizard-feature-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.sant-wizard-theme-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.sant-wizard-mode-cards {
		grid-template-columns: 1fr;
	}

	.sant-wizard-fields-row {
		flex-direction: column;
		gap: 0;
	}

	.sant-wizard-design-cards {
		grid-template-columns: 1fr;
	}

	.sant-wizard-feature-chips {
		grid-template-columns: repeat(2, 1fr);
	}

	.sant-wizard-summary-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.sant-wizard-connect-details {
		flex-direction: column;
		gap: 12px;
	}

	.sant-wizard-settings-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.sant-wizard-welcome h1 {
		font-size: 26px;
	}

	.sant-wizard-launch-block-inner {
		flex-direction: column;
		text-align: center;
	}

	.sant-wizard-launch-block-text {
		text-align: center;
	}
}

@media (max-width: 480px) {
	.sant-wizard-feature-grid {
		grid-template-columns: 1fr;
	}

	.sant-wizard-theme-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.sant-wizard-feature-chips {
		grid-template-columns: 1fr;
	}

	.sant-wizard-input-group {
		flex-direction: column;
	}

	.sant-wizard-step h2 {
		font-size: 22px;
	}

	.sant-wizard-settings-grid {
		grid-template-columns: 1fr;
	}

	.sant-wizard-connect-step-body {
		padding-left: 20px;
	}

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