* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f4f0;
  color: #1a1a1a;
  min-height: 100vh;
  padding: 1rem;
}

.container {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header { text-align: center; margin-bottom: 1.5rem; }
.header h1 { font-size: 22px; font-weight: 600; color: #1a1a1a; }
.header .subtitle { font-size: 14px; color: #888; margin-top: 4px; }

.progress-bar {
  height: 4px;
  background: #eee;
  border-radius: 2px;
  margin-bottom: 2rem;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: #1D9E75;
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 20%;
}

.step { display: none; }
.step.active { display: block; }

h2 { font-size: 18px; font-weight: 600; margin-bottom: 1.25rem; color: #1a1a1a; }
.hint { font-size: 14px; color: #666; margin-bottom: 1rem; margin-top: -0.75rem; }

.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  color: #1a1a1a;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #1D9E75;
}
.field textarea { height: 80px; resize: none; }

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 1.5rem;
}
.time-btn {
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s;
  color: #1a1a1a;
}
.time-btn:hover { background: #f5f4f0; }
.time-btn.selected {
  border-color: #1D9E75;
  background: #E1F5EE;
  color: #085041;
  font-weight: 600;
}

.incluso-box {
  background: #E1F5EE;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #085041;
  margin-bottom: 1.25rem;
}

.menu-section { margin-bottom: 1.5rem; }
.section-title {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge {
  background: #E1F5EE;
  color: #085041;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 400;
}
.badge-extra {
  background: #FFF3E0;
  color: #E65100;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 400;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}
.menu-item:last-child { border-bottom: none; }
.item-name { font-size: 14px; color: #1a1a1a; }
.item-extra { font-size: 12px; color: #aaa; margin-top: 2px; }

.qty-ctrl { display: flex; align-items: center; gap: 12px; }
.qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  line-height: 1;
  transition: all 0.15s;
}
.qty-btn:hover { background: #f5f4f0; border-color: #ccc; }
.qty-val { font-size: 16px; font-weight: 600; min-width: 18px; text-align: center; }

.totale-box {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 1rem 0 1.5rem;
}
.totale-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
  padding: 4px 0;
}
.totale-row.green { color: #0F6E56; }
.totale-row.total {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  border-top: 1px solid #eee;
  padding-top: 10px;
  margin-top: 6px;
}

.riepilogo-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 1rem;
}
.riepilogo-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 5px 0;
  border-bottom: 1px solid #f5f5f5;
  color: #1a1a1a;
}
.riepilogo-row:last-child { border: none; }
.riepilogo-label { color: #888; }
.riepilogo-row.total {
  font-weight: 600;
  font-size: 16px;
  border-top: 1px solid #eee;
  padding-top: 10px;
  margin-top: 4px;
  border-bottom: none;
}

.stripe-info {
  background: #E8F4FD;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #1565C0;
  margin-bottom: 1.25rem;
}

.nav {
  display: flex;
  gap: 10px;
  margin-top: 0.5rem;
}
.btn-back, .btn-next {
  flex: 1;
  padding: 13px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}
.btn-back {
  background: #f5f4f0;
  color: #666;
}
.btn-back:hover { background: #ebe9e4; }
.btn-next {
  background: #1D9E75;
  color: #fff;
  font-weight: 600;
}
.btn-next:hover { background: #0F6E56; }
.btn-next:disabled {
  background: #e0e0e0;
  color: #aaa;
  cursor: not-allowed;
}
.btn-paga { font-size: 16px; }

.success-wrap { text-align: center; padding: 2rem 0; }
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #E1F5EE;
  color: #0F6E56;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.success-wrap h2 { margin-bottom: 0.75rem; }
.success-wrap p { font-size: 14px; color: #666; margin-bottom: 0.5rem; }
.success-sub { font-size: 13px; color: #1D9E75; }
