/* ============================================================
   U matere — stilovi višekoračnog obrasca rezervacije
   ============================================================ */

.reserve-wrap { max-width: 720px; margin: 0 auto; padding-bottom: 5rem; }

.steps-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 2.2rem 0 2.8rem;
}
.steps-track .bar {
  flex: 1;
  max-width: 70px;
  height: 1px;
  background: var(--line);
}
.step-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.step-dot.active {
  border-color: var(--amber-soft);
  color: var(--amber-soft);
  background: rgba(201, 138, 62, 0.08);
}
.step-dot.done {
  border-color: var(--wine-2);
  background: var(--wine);
  color: var(--cream);
}

.step-panel h2 { text-align: center; font-size: clamp(1.5rem, 4vw, 2rem); }
.step-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0.5rem 0 2rem;
  font-size: 0.95rem;
}
.step-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

/* korak 1 — datum */
.date-input-wrap { display: flex; justify-content: center; }
input[type="date"] {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--cream);
  padding: 0.9rem 1.2rem;
  font-size: 1.05rem;
  min-width: min(320px, 100%);
  color-scheme: dark;
  transition: border-color 0.2s;
}
input[type="date"]:focus { border-color: var(--amber-soft); outline: none; }

/* korak 2 — vrijeme */
.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 0.7rem;
}
.time-chip {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--cream-dim);
  min-height: 48px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.time-chip:hover { border-color: var(--amber-soft); color: var(--amber-soft); }
.time-chip.selected {
  border-color: var(--wine-2);
  background: var(--wine);
  color: var(--cream);
}
.closed-msg {
  text-align: center;
  color: var(--danger);
  padding: 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* korak 3 — broj osoba */
.table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.9rem;
}
.table-icon {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 0.5rem 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.table-icon:hover { border-color: var(--amber-soft); transform: translateY(-2px); }
.table-icon.selected { border-color: var(--wine-2); background: rgba(124, 37, 48, 0.22); }
.table-icon .lbl { font-size: 0.78rem; color: var(--cream-dim); }

/* korak 4 — podaci */
.form-grid { display: flex; flex-direction: column; gap: 1.3rem; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-soft);
  margin-bottom: 0.45rem;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--cream);
  padding: 0.85rem 1.1rem;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--amber-soft); outline: none; }
.field input.invalid, .field textarea.invalid { border-color: var(--danger); }
.field input.valid { border-color: var(--ok); }
.err {
  display: block;
  min-height: 1.2em;
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 0.35rem;
}
.hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; }

.check-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.check-row input[type="checkbox"] {
  width: 20px; height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--wine-2);
  flex-shrink: 0;
}
.check-row a { color: var(--amber-soft); text-decoration: underline; text-underline-offset: 3px; }

.turnstile-wrap { display: flex; justify-content: center; min-height: 70px; }

/* status slanja */
.form-status {
  text-align: center;
  min-height: 1.4em;
  font-size: 0.92rem;
  margin-top: 1rem;
}
.form-status.error { color: var(--danger); }
.form-status.busy { color: var(--amber-soft); }

.spinner {
  display: inline-block;
  width: 1em; height: 1em;
  border: 2px solid rgba(244, 234, 217, 0.35);
  border-top-color: var(--cream);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: -0.15em;
  margin-right: 0.4em;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* potvrda */
.confirm-wrap { text-align: center; }
.confirm-icon {
  width: 72px; height: 72px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: rgba(122, 158, 107, 0.15);
  border: 1px solid var(--ok);
  color: var(--ok);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.confirm-note {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 46ch;
  margin: 0.8rem auto 0;
}
.summary-card {
  margin: 2rem auto 0;
  max-width: 460px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  background: var(--ink-2);
}
.summary-card .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(244, 234, 217, 0.08);
  font-size: 0.95rem;
}
.summary-card .row:last-child { border-bottom: none; }
.summary-card .k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-soft);
  align-self: center;
  flex-shrink: 0;
}
.summary-card .status-badge {
  color: var(--amber-soft);
  font-weight: 600;
}
