/* ===== DESIGN TOKENS ===== */
:root {
  /* Colors */
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-secondary: #1e40af;
  --color-accent: #3b82f6;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-bg: #ffffff;
  --color-bg-light: #f9fafb;
  --color-border: #e5e7eb;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  --text-base: 1rem;
  --text-sm: 0.875rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  
  /* Border radius */
  --radius-sm: 0.25rem;
  --radius: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition: all 0.15s ease-in-out;
  --transition-slow: all 0.3s ease-in-out;
  
  /* Container */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* ===== BASE STYLES ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.5;
  font-size: var(--text-base);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: var(--text-4xl); margin-bottom: var(--space-4); }
h2 { font-size: var(--text-3xl); margin-bottom: var(--space-4); }
h3 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
h4 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
p { margin-bottom: var(--space-4); }

.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-light); }
.text-center { text-align: center; }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 90vh;
  background-image: url('https://img1.wsimg.com/isteam/ip/0815fdc9-aafc-4fe1-99f8-dedc9ba0e23b/blob-02576cc.png/:/rs=w:1440,h:1440');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: relative;
  z-index: 10; /* Increased z-index to be above the animation */
  max-width: 800px;
  padding: var(--space-4);
  pointer-events: auto; /* Ensure the overlay can be interacted with */
}

.hero-cta .btn {
  position: relative;
  z-index: 20; /* Ensure buttons are above the overlay */
}

.hero-logo {
  max-width: 200px;
  margin-bottom: var(--space-4);
}

.hero-title {
  font-size: var(--text-4xl);
  color: white;
  margin-bottom: var(--space-4);
}

.hero-subtext {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-6);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

.btn {
  padding: var(--space-3) var(--space-6);
  font-weight: var(--font-semibold);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.w-full {
  width: 100%;
}

.btn-icon {
  margin-left: var(--space-2);
}

/* ===== ENVELOPE ANIMATION ===== */
.hero-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.envelope {
  position: absolute;
  width: 60px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  transform: rotate(10deg);
  animation: floatDiagonal 25s linear infinite;
}

.envelope::before {
  content: "";
  position: absolute;
  width: 60px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  top: 0;
  left: 0;
}

.envelope:nth-child(1) { top: 10%; left: 15%; animation-delay: 0s; }
.envelope:nth-child(2) { top: 30%; left: 40%; animation-delay: 5s; }
.envelope:nth-child(3) { top: 50%; left: 70%; animation-delay: 10s; }
.envelope:nth-child(4) { top: 70%; left: 20%; animation-delay: 15s; }
.envelope:nth-child(5) { top: 80%; left: 60%; animation-delay: 20s; }

@keyframes floatDiagonal {
  0% {
    transform: translate(0, 0) rotate(10deg);
    opacity: 0.4;
  }
  50% {
    transform: translate(150px, -200px) rotate(20deg);
    opacity: 0.8;
  }
  100% {
    transform: translate(-300px, 300px) rotate(10deg);
    opacity: 0.4;
  }
}

/* ===== SECTIONS GENERAL ===== */
.section {
  padding: var(--space-12) var(--space-4);
  background-color: var(--color-bg-light);
}

.container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section-header {
  margin-bottom: var(--space-8);
}

.section-subtitle {
  display: block;
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.section-title {
  font-size: var(--text-3xl);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  max-width: 800px;
  margin: 0 auto;
}

/* ===== HOW IT WORKS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.step-card {
  background: var(--color-bg);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: white;
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-4);
}

.step-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.step-description {
  color: var(--color-text-light);
}

/* ===== WIZARD MODAL ===== */
.wizard-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-4);
}

.wizard-container {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wizard-header {
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.progress-container {
  height: 4px;
  background: var(--color-bg-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.progress-bar {
  height: 100%;
  background: var(--color-primary);
  width: 0%;
  transition: width 0.4s ease;
}

.wizard-steps {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
}

.step-indicator {
  width: 32px;
  height: 32px;
  background: var(--color-bg-light);
  color: var(--color-text-light);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  transition: var(--transition);
}

.step-indicator.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.wizard-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-light);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: var(--transition);
}

.wizard-close:hover {
  background: var(--color-bg-light);
  color: var(--color-text);
}

.wizard-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
}

.wizard-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
  text-align: center;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

.step-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.step-subtitle {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-1);
}

.step-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.step-description {
  color: var(--color-text-light);
  font-size: var(--text-base);
}

.wizard-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: var(--font-medium);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}

.form-input,
.form-select,
.form-textarea {
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: var(--text-base);
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-file {
  padding: var(--space-2);
}

.form-hint {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-top: var(--space-2);
}

.quantity-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.quantity-options button {
  flex: 1 0 calc(33% - var(--space-2));
  padding: var(--space-3);
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: var(--font-medium);
}

.quantity-options button:hover {
  border-color: var(--color-primary);
}

.quantity-options button.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.price-summary {
  background: var(--color-bg-light);
  padding: var(--space-4);
  border-radius: var(--radius);
  margin-top: var(--space-4);
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.price-row:last-child {
  margin-bottom: 0;
  font-weight: var(--font-bold);
}

.design-toggle {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-4);
}

.toggle-label {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--color-text-light);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

input[name="designOption"]:checked + .toggle-label {
  color: var(--color-primary);
}

input[name="designOption"]:checked + .toggle-label::after {
  content: '';
  position: absolute;
  bottom: -17px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

.design-fields {
  animation: fadeIn 0.3s ease-in-out;
}

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

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-right: var(--space-2);
  position: relative;
  transition: var(--transition);
}

.checkbox-container input:checked + .checkmark {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.checkbox-container input:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label {
  font-size: var(--text-base);
}

.summary-card {
  background: var(--color-bg-light);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.summary-list li {
  display: flex;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-base);
}

.summary-list li:last-child {
  border-bottom: none;
}

.summary-list strong {
  font-weight: var(--font-medium);
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.wizard-actions .btn {
  flex: 1;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-bg-light);
  padding: var(--space-8) 0;
  margin-top: auto;
}

.footer-logo {
  max-width: 150px;
  margin-bottom: var(--space-4);
}

.footer-text {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: var(--text-3xl);
  }
  
  .hero-subtext {
    font-size: var(--text-lg);
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .wizard-container {
    max-height: 95vh;
  }
  
  .wizard-actions {
    flex-direction: column;
  }
  
  .design-toggle {
    gap: var(--space-4);
  }
  
  .quantity-options button {
    flex: 1 0 calc(50% - var(--space-2));
  }
}

@media (max-width: 480px) {
  .quantity-options button {
    flex: 1 0 100%;
  }
}