/* ==================== VARIABLES ==================== */
:root {
  --primary: #1a6b5c;
  --primary-light: #2a8f7a;
  --primary-dark: #0f4f42;
  --secondary: #d4a853;
  --secondary-light: #e6c47a;
  --accent: #f0e6d3;
  --bg: #faf8f5;
  --bg-white: #ffffff;
  --text: #1a1a1a;
  --text-light: #666666;
  --text-muted: #999999;
  --border: #e8e4df;
  --border-light: #f0ede8;
  --success: #27ae60;
  --error: #e74c3c;
  --warning: #f39c12;
  --shadow: 0 2px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 640px;
}

/* ==================== RESET ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: var(--primary); }
img { max-width: 100%; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ==================== LAYOUT ==================== */
.app-container {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: relative;
}

/* ==================== HEADER ==================== */
.header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
}
.header-logo {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 28px;
  backdrop-filter: blur(4px);
}
.header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.header p {
  font-size: 0.85rem;
  opacity: 0.85;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* ==================== PROGRESS BAR ==================== */
.progress-bar {
  display: flex;
  align-items: center;
  padding: 20px 20px 0;
  background: var(--bg-white);
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}
.progress-step::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.progress-step:last-child::after { display: none; }
.step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  z-index: 1;
  transition: var(--transition);
  position: relative;
}
.progress-step.active .step-circle {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 0 4px rgba(26, 107, 92, 0.15);
}
.progress-step.completed .step-circle {
  background: var(--success);
  color: white;
}
.progress-step.completed::after {
  background: var(--success);
}
.step-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}
.progress-step.active .step-label { color: var(--primary); }
.progress-step.completed .step-label { color: var(--success); }

/* ==================== STEP CONTENT ==================== */
.step-content {
  padding: 24px 20px 100px;
  display: none;
  animation: fadeIn 0.4s ease;
}
.step-content.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 4px;
  color: var(--text);
}
.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* ==================== FORM ELEMENTS ==================== */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group label .required {
  color: var(--error);
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-white);
  transition: var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 107, 92, 0.1);
}
.form-input::placeholder {
  color: var(--text-muted);
}
textarea.form-input {
  min-height: 80px;
  resize: vertical;
}
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

/* ==================== DATE PICKER ==================== */
.date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}
.date-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.date-grid-header h3 {
  font-size: 1rem;
  font-weight: 600;
}
.date-grid-header button {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.85rem;
  color: var(--text);
  transition: var(--transition);
}
.date-grid-header button:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.date-day-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px;
  text-transform: uppercase;
}
.date-cell {
  text-align: center;
  padding: 10px 4px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
}
.date-cell:hover:not(.disabled) {
  background: var(--accent);
  border-color: var(--primary-light);
}
.date-cell.selected {
  background: var(--primary);
  color: white;
  font-weight: 600;
}
.date-cell.today {
  border-color: var(--secondary);
  font-weight: 600;
}
.date-cell.disabled {
  color: var(--border);
  cursor: default;
}
.date-cell.empty {
  cursor: default;
}

/* ==================== TIME SLOTS ==================== */
.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.time-slot {
  padding: 12px 8px;
  text-align: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.time-slot:hover {
  border-color: var(--primary);
  background: rgba(26, 107, 92, 0.04);
}
.time-slot.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.time-slot .capacity {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.time-slot.selected .capacity { color: rgba(255,255,255,0.7); }
.time-slot.full {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ==================== PARTY SIZE ==================== */
.party-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.party-counter:last-child { border-bottom: none; }
.party-counter-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
}
.party-counter-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.counter-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}
.counter-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text);
}
.counter-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(26, 107, 92, 0.04);
}
.counter-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.counter-value {
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

/* ==================== EXPERIENCE CARDS ==================== */
.experience-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.experience-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}
.experience-card.selected {
  border-color: var(--primary);
  background: rgba(26, 107, 92, 0.03);
}
.experience-card.selected::after {
  content: '\2713';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}
.experience-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.experience-card p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}
.experience-card .exp-meta {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.experience-card .exp-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

/* ==================== MENU SECTION ==================== */
.menu-tabs {
  display: flex;
  overflow-x: auto;
  gap: 4px;
  margin-bottom: 16px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tab {
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  background: none;
  color: var(--text-light);
  transition: var(--transition);
}
.menu-tab:hover { border-color: var(--primary-light); color: var(--primary); }
.menu-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.menu-item:last-child { border-bottom: none; }
.menu-item-info { flex: 1; margin-right: 12px; }
.menu-item-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.menu-item-info p {
  font-size: 0.75rem;
  color: var(--text-light);
}
.menu-item-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-right: 12px;
  white-space: nowrap;
}
.menu-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: none;
  color: var(--primary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.menu-qty-btn:hover {
  background: var(--primary);
  color: white;
}
.menu-qty {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}

/* ==================== SEATING ==================== */
.seating-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.seating-option {
  padding: 14px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.seating-option:hover { border-color: var(--primary-light); }
.seating-option.selected {
  border-color: var(--primary);
  background: rgba(26, 107, 92, 0.03);
}
.seating-option .seat-icon { font-size: 1.4rem; margin-bottom: 4px; }
.seating-option .seat-label {
  font-size: 0.8rem;
  font-weight: 500;
}

/* ==================== ORDER SUMMARY ==================== */
.order-summary {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
}
.order-summary h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.order-line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.85rem;
}
.order-line.total {
  border-top: 1.5px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 1rem;
}
.order-line .label { color: var(--text-light); }
.order-line.total .label { color: var(--text); }

/* ==================== BOTTOM ACTION BAR ==================== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  background: var(--bg-white);
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
}
.btn-secondary {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* ==================== CONFIRMATION PAGE ==================== */
.confirmation {
  text-align: center;
  padding: 40px 20px 100px;
}
.confirmation-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--success);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}
.confirmation h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.confirmation p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.confirmation-code {
  display: inline-block;
  background: var(--bg);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 24px;
}
.confirmation-details {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  margin-bottom: 20px;
}
.confirmation-details .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
}
.confirmation-details .detail-row:last-child { border: none; }
.confirmation-details .detail-label { color: var(--text-light); }
.confirmation-details .detail-value { font-weight: 600; text-align: right; }

/* ==================== LOADING ==================== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== TOAST ==================== */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--text);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  z-index: 1000;
  transition: transform 0.3s ease;
  max-width: 90%;
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--error); }
.toast.success { background: var(--success); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 640px) {
  .app-container { box-shadow: none; }
  .time-slots-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .step-label { font-size: 0.6rem; }
}
