/* Page-specific styles for the guest-order flow - shared tokens/fonts come
 * from ../assets/theme.css. */

.wrap { min-height: 100vh; display: flex; flex-direction: column; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.logo { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.icon-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--accent); }
.icon { width: 18px; height: 18px; display: inline-block; }
.icon svg { width: 100%; height: 100%; }

/* ---------- Login ---------- */
#login-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.card h1 { font-size: 1.3rem; font-weight: 800; margin: 0 0 4px; text-align: center; }
.card .sub { color: var(--muted); font-size: 0.88rem; text-align: center; margin: 0 0 24px; }

label { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 600; margin: 0 0 6px; }
input[type="text"], input[type="tel"], input[type="number"], input[type="datetime-local"], select, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  margin-bottom: 16px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
::placeholder { color: var(--muted); opacity: 0.8; }

button { font-family: inherit; cursor: pointer; border: none; }
.btn-primary {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary {
  width: 100%;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px;
  border-radius: 10px;
}
.btn-secondary:hover { color: var(--text); }
.btn-link {
  background: none; color: var(--muted); font-size: 0.85rem;
  padding: 8px; width: 100%; text-align: center; margin-top: 4px;
}
.btn-link:hover { color: var(--text); }

.alert {
  font-size: 0.85rem;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: none;
}
.alert.error { background: rgba(229,86,111,0.12); border: 1px solid rgba(229,86,111,0.3); color: var(--red); }
.alert.success { background: rgba(51,196,122,0.12); border: 1px solid rgba(51,196,122,0.3); color: var(--green); }
.alert.visible { display: block; }

/* ---------- Order screen ---------- */
main { flex: 1; max-width: 720px; width: 100%; margin: 0 auto; padding: 24px; }

.mode-tabs {
  display: flex;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}
.mode-tab {
  flex: 1;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.mode-tab.active { background: var(--accent); color: #fff; }

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

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}
.panel h3 {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.row { display: flex; gap: 10px; }
.row > * { flex: 1; }

.location-input { position: relative; }
.location-input input { padding-right: 42px; }
.location-input .geo-btn {
  position: absolute; right: 6px; top: 6px;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}

.chip-group { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}
.checkbox-row input { width: auto; margin: 2px 0 0; }

#nearby-map { height: 220px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 12px; }
.vehicle-list { display: flex; flex-direction: column; gap: 8px; }
.vehicle-item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
}
.vehicle-item .dist { color: var(--accent); font-weight: 700; }
.empty-hint { color: var(--muted); font-size: 0.85rem; text-align: center; padding: 12px 0; }
