/* TV de Marsch — donker tinten zoals de PHP-applicatie. */
:root {
  --bg-start: #1f3b66;
  --bg-mid: #0d1b2a;
  --bg-end: #0a1521;
  --text: #f8f9fb;
  --text-muted: rgba(248, 249, 251, 0.75);
  --border: rgba(255, 255, 255, 0.08);
}

body {
  background: radial-gradient(circle at 20% 20%, var(--bg-start) 0, var(--bg-mid) 45%, var(--bg-end) 100%);
  font-family: "Segoe UI", sans-serif;
  color: var(--text);
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
  background: rgba(13, 19, 30, 0.72);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.topbar .logo { max-height: 42px; width: auto; }
.topbar-nav { display: flex; align-items: center; gap: 0.9rem; }
.topbar .nav-link { color: var(--text); }
.topbar .nav-link:hover, .topbar .nav-link:focus { color: #fff; }

.main-content { padding: 1.25rem 1rem 2rem; }

.card, .form-section, .summary-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-radius: 16px;
  color: var(--text);
}
.text-muted, .form-text { color: var(--text-muted) !important; }

.form-control, .form-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
}
.form-control:focus, .form-select:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #0d6efd;
  color: var(--text);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}
.form-control::placeholder { color: rgba(248, 249, 251, 0.55); }
.form-select option { background: #fff; color: #0d1b2a; }

.home-card {
  max-width: 480px;
  margin: 8vh auto 0;
  padding: 1.5rem;
  text-align: center;
}
.home-card .logo-hero { max-width: 100%; max-height: 120px; object-fit: contain; }

.registration-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 12px;
  align-items: start;
}
.registration-form-column { display: grid; gap: 10px; }
.form-section { padding: 12px 14px; }
.form-section h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.98rem;
}
.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #0d6efd;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}
.team-member-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.summary-card {
  position: sticky;
  top: 72px;
  padding: 12px 14px;
}
.summary-card dl { display: grid; gap: 6px; margin: 0; }
.summary-card dl > div { border-bottom: 1px solid var(--border); padding-bottom: 5px; }
.summary-card dt { color: var(--text-muted); font-size: 0.74rem; font-weight: 600; }
.summary-card dd { margin: 1px 0 0; overflow-wrap: anywhere; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
}
.modal-backdrop.open { display: flex; }
.modal-card {
  width: min(520px, 100%);
  background: #fff;
  color: #0d1b2a;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.modal-card h2, .modal-card p, .modal-card label { color: #0d1b2a; }
.modal-header, .modal-actions { display: flex; align-items: center; gap: 12px; }
.modal-header { justify-content: space-between; }
.modal-actions { justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.modal-close { border: 0; background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.status-message {
  display: none;
  margin-top: 10px; padding: 10px; border-radius: 8px;
  background: #e7f1ff; color: #084298;
}
.status-message.show { display: block; }
.field-feedback { min-height: 0.9rem; font-size: 0.76rem; color: #ffc107; }

@media (max-width: 900px) {
  .registration-layout, .team-member-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; order: 2; }
  .topbar { flex-wrap: wrap; }
}
