/**
 * Multi-Step Wizard Form Styles
 */

/* Wizard Container */
.bunts-wizard-container {
	max-width: 600px;
	margin: 0 auto;
	padding: 30px 20px;
}

/* Progress Bar */
.bunts-wizard-progress {
	margin-bottom: 40px;
}

.bunts-wizard-progress-bar {
	height: 6px;
	background: #e0e0e0;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 20px;
}

.bunts-wizard-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
	width: 0%;
	transition: width 0.4s ease;
}

.bunts-wizard-steps-indicator {
	display: flex;
	justify-content: space-between;
	max-width: 300px;
	margin: 0 auto;
}

.bunts-step-dot {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e0e0e0;
	color: #888;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 0.9rem;
	transition: all 0.3s ease;
}

.bunts-step-dot.active {
	background: #2563eb;
	color: #fff;
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.bunts-step-dot.completed {
	background: #10b981;
	color: #fff;
}

.bunts-step-dot.completed::before {
	content: "✓";
	font-weight: bold;
}

/* Wizard Steps */
.bunts-wizard-step {
	display: none;
	animation: fadeIn 0.4s ease;
}

.bunts-wizard-step.active {
	display: block;
}

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

/* Wizard Header */
.bunts-wizard-header {
	text-align: center;
	margin-bottom: 35px;
}

.bunts-wizard-title {
	font-size: 1.8rem;
	font-weight: 700;
	color: #111;
	margin: 0 0 10px 0;
	line-height: 1.3;
}

.bunts-wizard-subtitle {
	font-size: 1.05rem;
	color: #666;
	margin: 0;
}

/* Form Fields */
.bunts-wizard-fields {
	margin-bottom: 30px;
}

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

.bunts-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-size: 0.95rem;
}

.bunts-form-group .required {
	color: #dc3545;
}

.bunts-input,
.bunts-select {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 1rem;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.bunts-input:focus,
.bunts-select:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.bunts-input-error {
	border-color: #dc3545 !important;
}

/* Choice Cards (for intent and interaction method) */
.bunts-choice-group {
	display: grid;
	gap: 15px;
}

.bunts-choice-card {
	cursor: pointer;
	display: block;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	padding: 20px;
	background: #fff;
	transition: all 0.3s ease;
	position: relative;
}

.bunts-choice-card:hover {
	border-color: #2563eb;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
	transform: translateY(-2px);
}

.bunts-choice-card.selected {
	border-color: #2563eb;
	background: #f0f7ff;
	box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.bunts-choice-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.bunts-choice-content {
	display: flex;
	align-items: center;
	gap: 15px;
}

.bunts-choice-icon {
	font-size: 2rem;
	flex-shrink: 0;
}

.bunts-choice-content strong {
	display: block;
	font-size: 1.1rem;
	margin-bottom: 4px;
	color: #111;
}

.bunts-choice-content small {
	display: block;
	color: #666;
	font-size: 0.9rem;
}

/* Checkbox Label */
.bunts-checkbox-label {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.bunts-checkbox-label:hover {
	border-color: #2563eb;
	background: #f8fafc;
}

.bunts-checkbox-label input[type="checkbox"] {
	width: 20px;
	height: 20px;
	margin: 0;
}

.bunts-checkbox-label span {
	font-size: 1rem;
	font-weight: 500;
}

/* Form Separator */
.bunts-form-separator {
	display: flex;
	align-items: center;
	text-align: center;
	margin: 25px 0;
}

.bunts-form-separator::before,
.bunts-form-separator::after {
	content: '';
	flex: 1;
	border-bottom: 1px solid #ddd;
}

.bunts-form-separator span {
	padding: 0 15px;
	color: #888;
	font-weight: 600;
	font-size: 0.85rem;
}

/* Compact Booking */
.bunts-compact-booking {
	background: #f8fafc;
	padding: 20px;
	border-radius: 12px;
}

.bunts-booking-section {
	margin-bottom: 25px;
}

.bunts-booking-section:last-child {
	margin-bottom: 0;
}

.bunts-booking-section h4 {
	margin: 0 0 15px 0;
	font-size: 1.1rem;
	color: #333;
	font-weight: 600;
}

/* Compact Horizontal Date Picker */
.bunts-date-grid {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: 8px;
	padding: 5px 2px 12px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.bunts-date-grid::-webkit-scrollbar {
	height: 4px;
}

.bunts-date-grid::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 2px;
}

.bunts-date-grid::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 2px;
}

.bunts-time-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bunts-date-card {
	cursor: pointer;
	display: block;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	transition: all 0.2s ease;
	padding: 8px 6px;
	text-align: center;
	min-width: 60px;
	flex-shrink: 0;
}

.bunts-time-card {
	cursor: pointer;
	display: block;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	transition: all 0.2s ease;
	padding: 10px 12px;
	text-align: center;
	min-width: 70px;
}

.bunts-date-card:hover,
.bunts-time-card:hover {
	border-color: #10b981;
	box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.bunts-date-card input[type="radio"],
.bunts-time-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.bunts-date-card input:checked ~ .bunts-date-card-content,
.bunts-time-card input:checked ~ .bunts-time-card-content {
	background: #10b981;
	color: #fff;
}

.bunts-date-card-content {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 4px;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.bunts-time-card-content {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 4px;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.bunts-date-card input:checked ~ .bunts-date-card-content {
	background: #10b981;
	color: #fff;
}

.bunts-date-day {
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	opacity: 0.7;
}

.bunts-date-number {
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.1;
}

.bunts-date-month {
	font-size: 0.65rem;
	font-weight: 500;
	opacity: 0.8;
}

.bunts-date-slots {
	font-size: 0.6rem;
	margin-top: 2px;
	opacity: 0.7;
}

.bunts-time-display {
	font-weight: 600;
	font-size: 1rem;
}

.bunts-time-card.disabled {
	opacity: 0.5;
	cursor: not-allowed;
	background: #f5f5f5;
}

.bunts-time-card.disabled:hover {
	transform: none;
	border-color: #e0e0e0;
	box-shadow: none;
}

.bunts-time-full {
	font-size: 0.7rem;
	color: #dc3545;
	margin-top: 4px;
	font-weight: 600;
}

/* Buttons */
.bunts-wizard-actions {
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-top: 30px;
}

.bunts-btn {
	padding: 14px 28px;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
	text-decoration: none;
	display: inline-block;
	text-align: center;
}

.bunts-btn-primary {
	background: #2563eb;
	color: #fff;
	flex: 1;
}

.bunts-btn-primary:hover {
	background: #1d4ed8;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.bunts-btn-secondary {
	background: #f3f4f6;
	color: #374151;
}

.bunts-btn-secondary:hover {
	background: #e5e7eb;
}

.bunts-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Success Screen */
.bunts-wizard-success {
	text-align: center;
	padding: 40px 20px;
}

.bunts-success-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 25px;
	background: #10b981;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bunts-success-icon .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #fff;
}

.bunts-confirmation-main {
	font-size: 1.15rem;
	color: #333;
	margin-bottom: 20px;
	line-height: 1.6;
}

.bunts-confirmation-details {
	font-size: 1.1rem;
	color: #111;
	background: #f0f7ff;
	padding: 20px;
	border-radius: 10px;
	margin: 20px 0;
	line-height: 1.8;
}

.bunts-confirmation-details .dashicons {
	color: #2563eb;
	margin-right: 8px;
}

.bunts-confirmation-note {
	color: #666;
	font-size: 0.95rem;
	margin-top: 15px;
}

/* Loading States */
.bunts-loading {
	text-align: center;
	padding: 30px;
	color: #666;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.bunts-spinner {
	width: 24px;
	height: 24px;
	border: 3px solid #e0e0e0;
	border-top-color: #2563eb;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

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

.bunts-loading-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.95);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	border-radius: 12px;
}

.bunts-loading-overlay p {
	font-size: 1.1rem;
	font-weight: 600;
	color: #2563eb;
}

/* No Dates State */
.bunts-no-dates {
	text-align: center;
	padding: 40px 20px;
	background: #f8fafc;
	border-radius: 12px;
	border: 2px dashed #e0e0e0;
}

.bunts-no-dates-icon {
	font-size: 3rem;
	display: block;
	margin-bottom: 15px;
}

.bunts-no-dates p {
	margin: 0;
	color: #666;
}

.bunts-no-dates p:first-of-type {
	color: #333;
	margin-bottom: 8px;
}

/* Error States */
.bunts-error {
	color: #dc3545;
	padding: 25px;
	background: #fff5f5;
	border-radius: 12px;
	border: 1px solid #fecaca;
	text-align: center;
}

.bunts-error-icon {
	font-size: 2.5rem;
	display: block;
	margin-bottom: 12px;
}

.bunts-error p {
	margin: 0 0 15px 0;
}

.bunts-retry-booking {
	margin-top: 10px;
}

/* Selected state for date/time cards */
.bunts-date-card.selected,
.bunts-time-card.selected {
	border-color: #2563eb;
	background: #2563eb;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.bunts-date-card.selected .bunts-date-card-content,
.bunts-time-card.selected .bunts-time-card-content {
	color: #fff;
}

.bunts-date-card.selected .bunts-date-day,
.bunts-date-card.selected .bunts-date-month,
.bunts-date-card.selected .bunts-date-slots {
	opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.bunts-wizard-container {
		padding: 20px 15px;
	}
	
	.bunts-wizard-title {
		font-size: 1.4rem;
	}
	
	.bunts-wizard-subtitle {
		font-size: 0.95rem;
	}
	
	.bunts-step-dot {
		width: 32px;
		height: 32px;
		font-size: 0.85rem;
	}
	
	.bunts-choice-content {
		flex-direction: column;
		text-align: center;
		gap: 10px;
	}
	
	.bunts-choice-icon {
		font-size: 1.8rem;
	}
	
	.bunts-wizard-actions {
		flex-direction: column-reverse;
	}
	
	.bunts-btn {
		width: 100%;
	}
	
	.bunts-date-grid,
	.bunts-time-grid {
		grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	}
}

/* =====================================================
   COMPACT WIZARD FORM STYLES (NEW LAYOUT)
   ===================================================== */

/* Hide old progress bar for compact first step */
.bunts-wizard-step[data-step="1"] .bunts-wizard-progress,
.bunts-wizard-step[data-step="1"] .bunts-progress-bar,
.bunts-wizard-step[data-step="1"] .bunts-progress-steps {
	display: none;
}

/* Mini progress indicator for expanded steps */
.bunts-wizard-progress-mini {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 20px;
}

.bunts-mini-step {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #e2e8f0;
	color: #94a3b8;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 600;
	transition: all 0.2s;
}

.bunts-mini-step.active {
	background: #2563eb;
	color: #fff;
}

.bunts-mini-step.completed {
	background: #10b981;
	color: #fff;
}

/* Expanded wizard container (for steps 2+) */
.bunts-wizard-expanded {
	background: #fff;
	border-radius: 16px;
	padding: 30px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Form row - side by side fields */
.bunts-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

@media (max-width: 600px) {
	.bunts-form-row {
		grid-template-columns: 1fr;
	}
}

/* Step header */
.bunts-step-header {
	text-align: center;
	margin-bottom: 25px;
}

.bunts-step-header h3 {
	font-size: 1.4rem;
	font-weight: 600;
	margin: 0 0 8px 0;
	color: #1e293b;
}

.bunts-step-header p {
	font-size: 14px;
	color: #64748b;
	margin: 0;
}

/* Form groups */
.bunts-form-group {
	margin-bottom: 18px;
}

.bunts-form-group label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #374151;
	margin-bottom: 6px;
}

.bunts-form-group label .required {
	color: #ef4444;
}

.bunts-form-group input[type="text"],
.bunts-form-group input[type="email"],
.bunts-form-group input[type="tel"] {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	font-size: 15px;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.bunts-form-group input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Option cards */
.bunts-option-cards {
	display: grid;
	gap: 12px;
}

.bunts-option-card {
	cursor: pointer;
	display: block;
}

.bunts-option-card input[type="radio"] {
	display: none;
}

.bunts-card-content {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 18px 20px;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	transition: all 0.2s;
}

.bunts-option-card input:checked + .bunts-card-content {
	border-color: #2563eb;
	background: rgba(37, 99, 235, 0.04);
}

.bunts-card-icon {
	font-size: 24px;
	flex-shrink: 0;
}

.bunts-card-content strong {
	display: block;
	font-size: 15px;
	color: #1e293b;
	margin-bottom: 2px;
}

.bunts-card-content small {
	display: block;
	font-size: 13px;
	color: #64748b;
}

/* Navigation buttons */
.bunts-wizard-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 25px;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
}

.bunts-btn {
	padding: 12px 24px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
	border: none;
}

.bunts-btn-prev {
	background: #f1f5f9;
	color: #475569;
}

.bunts-btn-prev:hover {
	background: #e2e8f0;
}

.bunts-btn-primary {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	color: #fff;
}

.bunts-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Status messages */
.bunts-wizard-status {
	margin-top: 15px;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
	text-align: center;
}

.bunts-wizard-status.success {
	background: #dcfce7;
	color: #166534;
}

.bunts-wizard-status.error {
	background: #fee2e2;
	color: #991b1b;
}

/* Step 5 scheduling styles */
.bunts-step-5a,
.bunts-step-5b {
	animation: fadeIn 0.3s ease;
}

.bunts-booking-calendar {
	min-height: 200px;
}

.bunts-loading {
	text-align: center;
	padding: 40px;
	color: #64748b;
}

/* Responsive for compact form */
@media (max-width: 768px) {
	.bunts-wizard-expanded {
		padding: 20px;
	}
	
	.bunts-step-header h3 {
		font-size: 1.2rem;
	}
	
	.bunts-card-content {
		padding: 14px 16px;
	}
	
	.bunts-wizard-nav {
		flex-direction: column;
		gap: 10px;
	}
	
	.bunts-btn {
		width: 100%;
		text-align: center;
	}
	
	.bunts-btn-prev {
		order: 2;
	}
}

