﻿/* Modern IQOS Wizard Styles */

/* Reset and base styles */
* {
	box-sizing: border-box;
}

.modern-wizard-container {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wizard-card {
	background: white;
	border-radius: 20px;
	box-shadow: 0 20px 40px rgba(0,0,0,0.1);
	width: 100%;
	overflow: hidden;
	position: relative;
}

/* Header styles */
.wizard-header {
	background: linear-gradient(135deg, #1d4f58, #1d4f58);
	color: white;
	padding: 20px;
	text-align: center;
	position: relative;
}

	.wizard-header h2 {
		font-size: 1.8rem;
		margin-bottom: 10px;
		font-weight: 600;
		margin-top: 0;
	}

	.wizard-header p {
		opacity: 0.9;
		font-size: 1rem;
		margin: 0;
	}

/* Progress bar styles */
.progress-container {
	padding: 0 30px;
	margin-top: -15px;
	position: relative;
	z-index: 10;
}

.progress-bar {
	background: rgba(255,255,255,0.2);
	height: 8px;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 20px;
}

.progress-fill {
	height: 100%;
	background: white;
	border-radius: 4px;
	transition: width 0.5s ease;
	width: 14.28%;
}

/* Step indicators */
.modern-steps {
	display: flex;
	justify-content: space-between;
	margin-bottom: 30px;
	padding: 0 20px;
	flex-wrap: wrap;
}

.modern-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	flex: 1;
	min-width: 120px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.step-circle {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.1rem;
	transition: all 0.3s ease;
	margin-bottom: 10px;
	position: relative;
	z-index: 2;
}

.modern-step.current .step-circle {
	background: #1D4F58;
	color: white;
	transform: scale(1.15);
	border-color: rgba(29, 79, 88, 0.3);
	box-shadow: 0 0 0 6px rgba(29, 79, 88, 0.15);
}

.modern-step.completed .step-circle {
	background: #1D4F58;
	color: white;
	transform: scale(1.05);
}

	.modern-step.completed .step-circle::after {
		font-size: 1.2rem;
		font-weight: bold;
		position: absolute;
	}

.step-label {
	font-size: 0.85rem;
	color: #6b7280;
	font-weight: 500;
	text-align: center;
	max-width: 100px;
	line-height: 1.3;
	transition: all 0.3s ease;
}

.modern-step.current .step-label {
	color: #1d4f58;
	font-weight: 600;
	transform: translateY(-2px);
}

.modern-step.completed .step-label {
	color: #1D4F58;
	font-weight: 600;
}

.step-connector {
	position: absolute;
	top: 25px;
	left: 60%;
	right: -40%;
	height: 3px;
	background: #e5e7eb;
	z-index: 1;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.modern-step:last-child .step-connector {
	display: none;
}

.modern-step.completed .step-connector {
	background: #658b92;
}

/* Content area */
.wizard-content {
	padding: 0 40px;
	min-height: 300px;
}

.section-content {
	transition: all 0.3s ease;
	opacity: 0;
	transform: translateY(20px);
}

	.section-content:not([hidden]) {
		opacity: 1;
		transform: translateY(0);
	}

.step-title {
	font-size: 1.5rem;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 20px;
	text-align: center;
}

/* Loading spinner */
.loading-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid #f3f3f3;
	border-top: 2px solid #1d4f58;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-left: 10px;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Navigation */
.wizard-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 40px;
	border-top: 1px solid #e5e7eb;
	background: #f9fafb;
}

.nav-btn {
	padding: 12px 24px;
	border: none;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.nav-btn-primary {
	background: linear-gradient(135deg, #1d4f58, #1d4f58);
	color: white;
}

	.nav-btn-primary:hover:not(:disabled) {
		transform: translateY(-2px);
		box-shadow: 0 8px 25px rgba(76, 176, 80, 0.3);
	}

.nav-btn-secondary {
	background: #fff;
	color: #6b7280;
	border: 2px solid #e5e7eb;
}

	.nav-btn-secondary:hover:not(:disabled) {
		background: #f3f4f6;
		border-color: #d1d5db;
	}

.nav-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none !important;
}

/* Mobile step indicator */
.step-indicator-mobile {
	display: none;
	text-align: center;
	padding: 20px;
	background: #f8fafc;
	color: #64748b;
	font-weight: 500;
	border-bottom: 1px solid #e2e8f0;
}

/* Form elements styling */
.form-group {
	margin-bottom: 25px;
}

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

.form-input {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	font-size: 1rem;
	transition: all 0.3s ease;
	background: white;
}

	.form-input:focus {
		outline: none;
		border-color: #4f46e5;
		box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
	}

.form-select {
	width: 100%;
	border: 1px solid #ced4da;
	padding: .47rem .75rem;
	font-size: 0.9rem;
	background: white;
	cursor: pointer;
	transition: all 0.3s ease;
}

	.form-select:focus {
		outline: none;
	}

.checkbox-group {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}

	.checkbox-group input[type="checkbox"] {
		margin-right: 10px;
		transform: scale(1.2);
		accent-color: #4f46e5;
	}

	.checkbox-group label {
		color: #374151;
		cursor: pointer;
	}

/* Card elements */
.info-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 20px;
}

	.info-card h4 {
		margin: 0 0 10px 0;
		color: #1e293b;
		font-size: 1.1rem;
		font-weight: 600;
	}

	.info-card p {
		margin: 0;
		color: #64748b;
	}

.product-card {
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 15px;
	cursor: pointer;
	transition: all 0.3s ease;
	background: white;
}

	.product-card:hover {
		border-color: #4f46e5;
		box-shadow: 0 5px 15px rgba(79, 70, 229, 0.1);
		transform: translateY(-2px);
	}

	.product-card.selected {
		border-color: #4f46e5;
		background: rgba(79, 70, 229, 0.05);
	}

.product-name {
	font-weight: 600;
	font-size: 1.1rem;
	margin-bottom: 5px;
	color: #1e293b;
}

.product-description {
	color: #64748b;
	margin: 5px 0;
	font-size: 0.9rem;
}

.product-price {
	color: #4f46e5;
	font-weight: 600;
	font-size: 1.2rem;
	margin-top: 10px;
}

/* Success animations */
.success-checkmark {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(135deg, #10b981, #06d6a0);
	margin: 0 auto 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: scaleIn 0.6s ease;
}

@keyframes scaleIn {
	from {
		transform: scale(0);
	}

	to {
		transform: scale(1);
	}
}

.fade-in {
	animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

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

/* Scanner styles */
.scanner-area {
	text-align: center;
	padding: 40px;
	border: 2px dashed #d1d5db;
	border-radius: 12px;
	margin-bottom: 20px;
	background: #fafafa;
	transition: all 0.3s ease;
}

	.scanner-area:hover {
		border-color: #47B34F;
		background: rgba(79, 70, 229, 0.02);
	}

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

.scanner-text {
	color: #6b7280;
	margin-bottom: 15px;
	font-size: 1rem;
}

/* Alert styles */
.alert {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.alert-success {
	background-color: #dcfce7;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.alert-error {
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	color: #dc2626;
}

.alert-warning {
	background-color: #fffbeb;
	border: 1px solid #fed7aa;
	color: #d97706;
}

.alert-info {
	background-color: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #2563eb;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
	.modern-wizard-container {
		padding: 10px;
	}

	.wizard-card {
		border-radius: 15px;
	}

	.wizard-header {
		padding: 20px;
	}

		.wizard-header h2 {
			font-size: 1.5rem;
		}

	.modern-steps {
		display: none;
	}

	.step-indicator-mobile {
		display: block;
	}

	.wizard-content {
		padding: 20px;
	}

	.wizard-navigation {
		padding: 15px 20px;
		flex-direction: column;
		gap: 15px;
	}

	.nav-btn {
		min-width: 100px;
		padding: 10px 16px;
		font-size: 0.9rem;
		width: 100%;
	}

	.step-title {
		font-size: 1.3rem;
	}

	.progress-container {
		padding: 0 20px;
	}

	.scanner-area {
		padding: 30px 20px;
	}

	.scanner-icon {
		font-size: 2.5rem;
	}
}

@media (max-width: 480px) {
	.wizard-header {
		padding: 15px;
	}

		.wizard-header h2 {
			font-size: 1.3rem;
		}

		.wizard-header p {
			font-size: 0.9rem;
		}

	.wizard-content {
		padding: 15px;
	}

	.step-title {
		font-size: 1.2rem;
	}

	.form-input, .form-select {
		padding: 10px 12px;
		font-size: 0.95rem;
	}

	.nav-btn {
		padding: 12px 16px;
		font-size: 0.9rem;
	}
}

/* Print styles */
@media print {
	.modern-wizard-container {
		background: white;
		padding: 0;
	}

	.wizard-card {
		box-shadow: none;
		border-radius: 0;
	}

	.wizard-header {
		background: white !important;
		color: black !important;
	}

	.noPrint {
		display: none !important;
	}

	.print {
		display: block !important;
	}
}

/* Accessibility improvements */
.modern-step:focus {
	outline: 2px solid #47B34F;
	outline-offset: 2px;
}

.nav-btn:focus {
	outline: 2px solid #47B34F;
	outline-offset: 2px;
}

.form-input:focus,
.form-select:focus {
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.wizard-header {
		background: #000;
		color: #fff;
	}

	.step-circle {
		border: 2px solid #000;
	}

	.modern-step.current .step-circle {
		background: #000;
		color: #fff;
	}

	.nav-btn-primary {
		background: #000;
		color: #fff;
	}
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
	.modern-step,
	.step-circle,
	.nav-btn,
	.section-content,
	.progress-fill {
		transition: none;
	}

	.fade-in,
	.success-checkmark {
		animation: none;
	}
}
    


@media (max-width: 1470px) {
	.wizard .steps .textStep {
		font-size: 90%;
	}

	#stepsThree.textStep {
		margin-inline-end: -25px;
	}
}

@media (max-width: 1100px) {
	.wizard .steps .textStep {
		font-size: 90%;
		padding: 5px;
		display: block;
	}

	#stepsThree.textStep {
		margin-inline-end: -25px;
	}
}

@media (max-width: 1000px) {
	.wizard .steps .textStep {
		font-size: 65%;
		padding: 5px;
		display: block;
	}
}

@media (max-width: 500px) {
	.wizard .steps .textStep {
		font-size: 60%;
		padding: 5px;
		display: block;
	}
}
