:root {
  color-scheme: light;
  --bg: #f4f6fb;
  --card: #ffffff;
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #64748b;
  --accent: #22c55e;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page {
  min-height: 100vh;
  padding: 40px 20px 80px;
}

.hero {
  max-width: 980px;
  margin: 0 auto 30px;
}

.hero__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__logo {
  height: 56px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px;
  object-fit: cover;
}

.hero h1 {
  margin: 12px 0 8px;
  font-size: 32px;
  font-weight: 700;
}

.hero p {
  margin: 0;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: #e0e7ff;
  color: #4338ca;
  font-size: 13px;
  font-weight: 600;
}

.admin-link {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  background: #eff6ff;
  padding: 10px 18px;
  border-radius: 999px;
}

.card {
  max-width: 980px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 24px 30px;
}

.progress {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2563eb, #22c55e);
  transition: width 0.3s ease;
}

.slide {
  display: none;
  animation: fade 0.25s ease;
}

.slide.active {
  display: block;
}

.slide__header h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.slide__header p {
  margin: 0 0 20px;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 10px;
}

label {
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

small {
  color: var(--muted);
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #e2e8f0;
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--secondary);
}

.choices {
  display: grid;
  gap: 12px;
}

.choice {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.choice input {
  width: auto;
}

.skip-info {
  margin-top: 12px;
  color: var(--accent);
  font-weight: 600;
}

.summary {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.summary-item:last-child {
  border-bottom: none;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: start;
  font-weight: 600;
  margin-bottom: 16px;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
}

.map {
  width: 100%;
  height: 260px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.nav__info {
  color: var(--muted);
}

.nav__actions {
  display: flex;
  gap: 10px;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 50;
}

.request-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.request-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: #f8fafc;
}

.request-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.request-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.request-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.request-item {
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
}

.request-item strong {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.request-item img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.table-wrapper {
  margin-top: 20px;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #f1f5f9;
  font-weight: 600;
}

.data-table tr:hover {
  background: #f8fafc;
}

.section-title {
  margin: 24px 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 10px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .hero h1 {
    font-size: 26px;
  }

  .card {
    padding: 18px;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav__actions {
    width: 100%;
    justify-content: flex-end;
  }

  #skipBtn {
    order: 1;
  }

  #nextBtn {
    order: 2;
  }
}
