* {
  box-sizing: border-box;
}

:root {
  --navy: #102a43;
  --blue: #1769aa;
  --blue-dark: #0f4f83;
  --cream: #f7f8fa;
  --border: #e4e8ee;
  --muted: #667085;
  --success: #16834b;
  --danger: #c93636;
  --shadow: 0 14px 40px rgba(16, 42, 67, .08);
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy);
  background: #f5f7fa;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 6vw;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  color: var(--navy);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .04em;
  font-size: 20px;
}

.brand-sub {
  color: var(--muted);
  border-left: 1px solid var(--border);
  padding-left: 14px;
}

.container {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 70px;
}

.container.narrow {
  width: min(720px, calc(100% - 32px));
}

.hero {
  text-align: center;
  padding: 45px 0 28px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
  margin: 0 0 10px;
}

h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
  margin: 0 0 14px;
}

h2 {
  font-size: 20px;
  margin: 0 0 18px;
}

p {
  color: #52606d;
  line-height: 1.55;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.event-card {
  width: min(500px, 100%);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: white;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform .2s, box-shadow .2s;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 55px rgba(16, 42, 67, .14);
}

.event-poster {
  aspect-ratio: 4 / 5;
  background: #e9eef4;
}

.event-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.event-info h2 {
  margin: 0 0 5px;
}

.event-info p {
  margin: 0;
  font-size: 14px;
}

.arrow {
  font-size: 30px;
  color: var(--blue);
}

.steps {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #98a2b3;
  white-space: nowrap;
  font-size: 14px;
}

.step span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #d0d5dd;
  font-weight: 800;
  background: #fff;
}

.step.active {
  color: var(--blue);
}

.step.active span {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.step.done {
  color: var(--success);
}

.step.done span {
  background: #e9f8f0;
  color: var(--success);
  border-color: #b7e3cb;
}

.step-line {
  height: 1px;
  background: #dfe3e8;
  flex: 1;
  margin: 0 10px;
}

.done-line {
  background: #a9d7bd;
}

.page-heading {
  margin-bottom: 30px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 18px;
  box-shadow: 0 5px 20px rgba(16, 42, 67, .035);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #344054;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  padding: 13px 14px;
  outline: none;
  background: #fff;
  color: var(--navy);
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, .1);
}

.counter-list {
  display: grid;
  gap: 12px;
}

.counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 14px;
}

.counter-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.counter {
  display: flex;
  align-items: center;
  gap: 12px;
}

.counter button {
  width: 36px;
  height: 36px;
  border: 1px solid #d0d5dd;
  background: white;
  border-radius: 50%;
  font-size: 20px;
  color: var(--navy);
}

.counter output {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
}

.total-preview,
.total-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.total-preview strong,
.total-card strong {
  font-size: 22px;
}

.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.hint {
  font-size: 13px;
  color: var(--muted);
  margin: -8px 0 0;
}

.privacy-consent {
  margin-top: 18px;
}

.privacy-text {
  margin: 0 0 14px;
  color: #36506d;
  line-height: 1.5;
}

.privacy-consent .consent-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 12px;
  width: 100%;
  margin: 0;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.5;
  color: #0b2a4a;
}

.privacy-consent .consent-label input[type="checkbox"] {
  display: block !important;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 3px 0 0;
  padding: 0;
  cursor: pointer;
  accent-color: #4b2a78;
}

.privacy-consent .consent-label span {
  display: block;
  flex: 1;
  min-width: 0;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2f6;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.badge.ok {
  background: #e9f8f0;
  color: var(--success);
}

.meal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.meal-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  text-align: left;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  transition: .15s;
}

.meal-card:hover {
  border-color: var(--blue);
  background: #f8fbff;
}

.meal-image {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: #f1f3f5;
}

.meal-image.meat {
  background: #fff1ed;
}

.meal-image.veg {
  background: #edf9f0;
}

.meal-info p {
  margin: 5px 0 0;
  font-size: 13px;
  white-space: pre-line;
}

.meal-counter {
  display: flex;
  align-items: center;
  gap: 9px;
}

.meal-counter button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.meal-counter button:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #f8fbff;
}

.meal-counter output {
  min-width: 22px;
  text-align: center;
  font-weight: 900;
  color: var(--navy);
}

.hidden {
  display: none !important;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  transition: .15s;
  cursor: pointer;
}

.button.primary {
  background: var(--blue);
  color: #fff;
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  background: #fff;
  color: var(--navy);
  border-color: #d0d5dd;
}

.button.secondary:hover {
  background: #f8fafc;
}

.button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.full {
  width: 100%;
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.reference-mini {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  background: #f2f4f7;
  padding: 7px 9px;
  border-radius: 7px;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.summary-grid span,
.summary-list span,
.bank-details span,
.confirmation-details span,
.payment-amount span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.summary-list {
  display: grid;
  gap: 10px;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid #eef0f3;
}

.payment-card {
  padding: 0;
  overflow: hidden;
}

.payment-amount {
  padding: 28px;
  background: #f3f8fd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-amount strong {
  font-size: 30px;
}

.bank-details {
  padding: 24px 28px;
  display: grid;
  gap: 18px;
}

.bank-details strong {
  font-family: ui-monospace, monospace;
}

.payment-actions {
  padding: 0 28px 24px;
  display: grid;
  gap: 10px;
}

.notice {
  margin: 0 28px 28px;
  background: #fff8e8;
  border: 1px solid #f1d18a;
  padding: 15px;
  border-radius: 12px;
}

.notice p {
  margin: 5px 0 0;
  font-size: 13px;
}

.success-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 45px;
  text-align: center;
}

.success-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #e9f8f0;
  color: var(--success);
  display: grid;
  place-items: center;
  font-size: 38px;
  font-weight: 900;
  margin: 0 auto 20px;
}

.reference-box {
  background: #f7f8fa;
  border-radius: 14px;
  padding: 18px;
  margin: 25px 0;
}

.reference-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.reference-box strong {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 22px;
  margin-top: 5px;
}

.confirmation-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  text-align: left;
  margin-bottom: 22px;
}

@media (max-width: 680px) {
  .site-header {
    padding: 0 18px;
  }

  .brand-sub {
    display: none;
  }

  .container {
    padding-top: 25px;
  }

  .steps {
    margin-bottom: 28px;
  }

  .step b {
    display: none;
  }

  .form-grid,
  .meal-grid,
  .summary-grid,
  .confirmation-details {
    grid-template-columns: 1fr;
  }

  .meal-card {
    grid-template-columns: 56px 1fr auto;
  }

  .meal-image {
    width: 56px;
    height: 56px;
  }

  .meal-counter {
    gap: 6px;
  }

  .card {
    padding: 20px;
  }

  .counter-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .button {
    width: 100%;
  }

  .success-card {
    padding: 30px 20px;
  }
}

/* --- Compteurs de plats --- */
.meal-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
}

.meal-counter button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: var(--navy);
  font-size: 19px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
}

.meal-counter button:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
  background: #f8fbff;
}

.meal-counter button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.meal-counter output {
  min-width: 22px;
  text-align: center;
  font-weight: 900;
}

.counter button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

@media (max-width: 680px) {
  .meal-card {
    grid-template-columns: 56px 1fr;
  }

  .meal-counter {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

#bankAppButton,
#copyPayment {
  display: none !important;
}

/* Extra aanpassingen */

.event-disabled {
  cursor: not-allowed;
  opacity: 0.75;
  position: relative;
}

.event-disabled .event-poster {
  position: relative;
}

.coming-soon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding: 20px;
}

.event-disabled .arrow {
  opacity: 0.4;
}

@media (max-width: 700px) {
  .event-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 30px 20px 20px;
  margin-top: 40px;
  color: #718096;
  font-size: 12px;
  line-height: 1.6;
}

.site-footer p {
  margin: 4px 0;
}

.site-footer strong {
  color: #173b63;
  font-weight: 600;
}

/* Language selector */
.language-switcher {
  position: relative;
  margin-left: auto;
}

.language-current {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 800;
}

.language-current:hover {
  border-color: #c8d0da;
  background: #f8fafc;
}

.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 155px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(16, 42, 67, .12);
  padding: 6px;
  display: none;
}

.language-switcher.open .language-menu {
  display: grid;
}

.language-menu button {
  border: 0;
  background: transparent;
  color: var(--navy);
  text-align: left;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

.language-menu button:hover,
.language-menu button.active {
  background: #f1f5f9;
}

@media (max-width: 600px) {
  .language-current {
    padding: 7px 9px;
  }

  .language-menu {
    right: 0;
    min-width: 150px;
  }
}

/* Fermeture des réservations Samolis */
.reservation-closed {
  text-align: center;
  padding: 34px 24px;
  margin-top: 24px;
}
.reservation-closed h2 {
  color: #102a43;
  margin: 10px 0;
}
.reservation-closed p {
  line-height: 1.7;
}
.closed-icon {
  font-size: 42px;
  margin-bottom: 8px;
}
.event-card.event-disabled {
  cursor: not-allowed;
  opacity: .72;
}
