/* WIZARD CONTAINER */
.wizard-container {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* PROGRESS BAR */
.progress-bar {
  padding: 20px 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  position: relative;
}
.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% + 12px);
  right: calc(-50% + 12px);
  height: 2px;
  background: var(--border);
  transition: background 0.3s;
}
.progress-step.done:not(:last-child)::after { background: var(--primary); }
.progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s;
  background: var(--border);
  color: var(--text-secondary);
  z-index: 1;
}
.progress-step.done .progress-dot { background: var(--primary); color: white; }
.progress-step.active .progress-dot {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 0 4px var(--primary-light);
}
.progress-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  display: none;
}
.progress-step.active .progress-label { color: var(--primary); font-weight: 600; }

/* STEP CONTENT */
.step-content {
  padding: 24px;
}
.step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

/* BUTTONS */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: 0 4px 16px rgba(0,102,255,0.3);
}
.btn-primary:disabled { background: var(--border); color: var(--text-secondary); cursor: not-allowed; box-shadow: none; }
.btn-primary.loading { pointer-events: none; }

.btn-back {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  margin-bottom: 8px;
  transition: color 0.15s;
}
.btn-back:hover { color: var(--text); }

.btn-actions { margin-top: 24px; }

/* SPINNER */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* DURATION TOGGLE */
.duration-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.duration-btn {
  height: 56px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s;
}
.duration-btn:hover { border-color: var(--primary); }
.duration-btn.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 2px 8px rgba(0,102,255,0.3); }
.duration-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* TICKET ROWS */
.ticket-rows { display: flex; flex-direction: column; gap: 0; }
.ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.ticket-row:last-child { border-bottom: none; }
.ticket-info { flex: 1; }
.ticket-name { font-size: 15px; font-weight: 600; color: var(--text); }
.ticket-price { font-size: 18px; font-weight: 700; color: var(--primary); margin-top: 2px; }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: white;
  color: var(--primary);
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  line-height: 1;
}
.qty-btn.plus { background: var(--primary); color: white; }
.qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.qty-num { font-size: 22px; font-weight: 700; min-width: 36px; text-align: center; }

/* TOTAL SUMMARY */
.total-card {
  background: #F0F4FF;
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
}
.total-lines { margin-bottom: 12px; }
.total-line { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-secondary); padding: 3px 0; }
.total-line span:last-child { font-weight: 500; color: var(--text); }
.total-divider { border: none; border-top: 1px solid var(--border); margin: 10px 0; }
.total-amount { display: flex; justify-content: space-between; align-items: baseline; }
.total-amount-label { font-size: 14px; color: var(--text-secondary); }
.total-amount-value { font-size: 22px; font-weight: 800; color: var(--text); }
.total-amount-sub { font-size: 13px; font-weight: 400; color: var(--text-secondary); margin-left: 4px; }

/* WALK-IN NOTE */
.walkin-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 16px;
  font-style: italic;
}

/* SLOT CARDS */
.slot-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.slot-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s;
  animation: fadeIn 0.2s ease both;
}
.slot-card:hover:not(.disabled) { border-color: var(--primary); box-shadow: 0 2px 8px rgba(0,102,255,0.1); transform: scale(1.01); }
.slot-card.selected { border-color: var(--primary); background: var(--primary-light); }
.slot-card.disabled { opacity: 0.5; cursor: not-allowed; }
.slot-time-icon { font-size: 20px; margin-right: 4px; }
.slot-info { flex: 1; }
.slot-time { font-size: 18px; font-weight: 700; color: var(--text); }
.slot-subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.slot-tip { font-size: 11px; color: var(--text-secondary); font-style: italic; margin-top: 2px; }
.slot-extra-note { font-size: 11px; color: var(--warning); margin-top: 2px; }
.slot-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-available { background: #E8F5E9; color: #2E7D32; }
.badge-limited { background: #FFF3E0; color: #E65100; }
.badge-full { background: #FFEBEE; color: #C62828; }

/* FORM */
.form-row { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 14px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.form-input {
  height: 52px;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 16px;
  color: var(--text);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: var(--font);
  width: 100%;
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,102,255,0.15); }
.form-input.error { border-color: var(--danger); animation: shake 0.3s; }
.form-error { font-size: 13px; color: var(--danger); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* SUMMARY CARD */
.summary-card {
  background: #F9FAFB;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.summary-row { display: flex; align-items: center; gap: 10px; font-size: 15px; padding: 5px 0; }
.summary-icon { width: 20px; text-align: center; }
.summary-label { color: var(--text-secondary); flex: 1; }
.summary-value { font-weight: 600; color: var(--text); }
.summary-total { font-weight: 700; color: var(--primary); font-size: 17px; }

/* PAYMENT NOTICE */
.payment-notice {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

/* RULES */
.rules-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  font-size: 15px;
  margin-bottom: 12px;
  background: none;
  border: none;
  font-family: var(--font);
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
}
.checkbox-custom {
  width: 24px; height: 24px;
  border: 2px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  margin-top: 1px;
}
.checkbox-custom.checked { background: var(--primary); border-color: var(--primary); }
.checkbox-custom.checked::after { content: '✓'; color: white; font-size: 14px; font-weight: 700; }
.checkbox-label { font-size: 14px; color: var(--text); line-height: 1.5; }
.booking-notice-text { font-size: 13px; color: var(--text-secondary); font-style: italic; margin-bottom: 16px; line-height: 1.5; }

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s;
}
.modal-card {
  background: white;
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 18px; font-weight: 700;
}
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-secondary); line-height: 1; padding: 0; }
.modal-body { padding: 20px 24px; overflow-y: auto; font-size: 15px; line-height: 1.7; color: var(--text); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 768px) {
  .step-content { padding: 32px; }
  .progress-label { display: block; }
  .form-row { flex-direction: row; }
  .form-row .form-group { flex: 1; }
}
