/* Mimipo EN Reservation — Styles */

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

:root {
  --primary: #06c755;
  --primary-dark: #05a548;
  --primary-soft: #e6f9ee;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --bg: #f7f8fa;
  --card: #ffffff;
  --border: #e5e7eb;
  --border-dark: #d1d5db;
  --error: #dc2626;
  --warning: #f59e0b;
  --radius: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Hiragino Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.hero {
  text-align: center;
  padding: 16px 0 24px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subtitle {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
  margin-top: 16px;
}

.card h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.hidden { display: none !important; }

.req {
  color: var(--error);
  margin-left: 2px;
}

/* Greeting banner */
.banner {
  background: var(--primary-soft);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 0.95rem;
  text-align: center;
}

/* Progress indicator */
.progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8px;
  margin-top: 16px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.progress-step.active .progress-dot,
.progress-step.done .progress-dot {
  background: var(--primary);
  color: #fff;
}

.progress-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.progress-step.active .progress-label {
  color: var(--primary);
  font-weight: 600;
}

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  align-self: flex-start;
  margin-top: 15px;
}

/* Step description */
.step-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* Menu list */
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.menu-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.15s;
}

.menu-option:hover { border-color: var(--primary); }
.menu-option.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.menu-icon { font-size: 1.8rem; flex-shrink: 0; }
.menu-text { flex: 1; min-width: 0; }
.menu-label { font-weight: 600; font-size: 0.95rem; margin-bottom: 2px; }
.menu-desc { font-size: 0.8rem; color: var(--text-muted); }
.menu-check {
  color: var(--primary);
  font-size: 1.2rem;
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.menu-option.selected .menu-check { opacity: 1; }

/* Step actions */
.step-actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.step-actions .btn-secondary { flex: 0 0 auto; }
.step-actions .btn-primary { flex: 1; }

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, opacity 0.15s;
}
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.btn-secondary:hover { background: var(--border); }

/* Form fields */
.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.field-help {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field-error {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 6px;
  min-height: 1em;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="number"],
.field input[type="date"],
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 199, 85, 0.15);
}

.field textarea {
  resize: vertical;
  min-height: 70px;
}

/* intl-tel-input overrides */
.iti { width: 100%; }
.iti__country-list {
  font-family: inherit;
}

/* Radio / Checkbox groups */
.radio-group, .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-option, .checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 400;
}

.radio-option:hover, .checkbox-option:hover {
  background: var(--bg);
}

.radio-option input, .checkbox-option input {
  margin-top: 3px;
  flex-shrink: 0;
  cursor: pointer;
}

.radio-option span, .checkbox-option span {
  font-size: 0.9rem;
  line-height: 1.35;
}

.radio-option:has(input:checked),
.checkbox-option:has(input:checked) {
  background: var(--primary-soft);
  border-color: var(--primary);
}

/* Slot picker */
.slot-list {
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--card);
}

.slot-loading {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
}

.slot-loading .spinner.small {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.slot-day-group {
  border-bottom: 1px solid var(--border);
}

.slot-day-group:last-child { border-bottom: none; }

.slot-day-header {
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.slot-times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 6px;
  padding: 8px;
}

.slot-btn {
  background: var(--card);
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  padding: 8px 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  transition: all 0.15s;
}

.slot-btn:hover { border-color: var(--primary); background: var(--primary-soft); }
.slot-btn.selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.slot-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Photo upload */
.photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.photo-upload-btn {
  display: block;
  background: var(--bg);
  border: 2px dashed var(--border-dark);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s;
}

.photo-upload-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.photo-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.photo-preview {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}

/* Section header (questionnaire sections) */
.section-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.section-header:first-child {
  margin-top: 0;
}

/* Question hint / sub-description */
.q-description {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 6px;
  font-weight: 400;
}

/* Loading spinner */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#loading { text-align: center; }
#loading p { color: var(--text-muted); }

#submitting {
  text-align: center;
}

#submitting p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Error */
#error h2 { color: var(--error); }

/* No karte */
#no-karte h2 { margin-bottom: 12px; }
#no-karte p { margin-bottom: 8px; color: var(--text-muted); }

.note {
  background: var(--bg);
  padding: 12px;
  border-radius: 8px;
  font-size: 0.85rem;
}

/* Confirmation */
.confirmation-detail {
  font-size: 0.95rem;
}
.confirmation-detail p { margin: 8px 0; }
.conf-time {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  text-align: center;
  padding: 12px;
  background: var(--primary-soft);
  border-radius: 8px;
  margin: 12px 0 !important;
}
.conf-menu {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.hr-soft {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}
.conf-cancel-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px !important;
}
