/* Utilities: kleine, herbruikbare helper-classes. */

.center {
  text-align: center;
}

.subtle {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.9rem;
}

.flow .flow-section + .flow-section,
.flow .card-section + .flow-section,
.flow .flow-section + .card-section,
.flow .card-section + .card-section {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-section {
  margin-top: 18px;
}

.section-title {
  margin: 0 0 6px;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(244, 244, 243, 0.8);
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.gerecht-grid {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.choice-question {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 12px;
}

.choice-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 420px);
  margin: 0 auto;
}

.choice-toggle {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 15, 15, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.choice-toggle:hover {
  background: rgba(24, 24, 24, 0.72);
}

.choice-toggle.selected,
.choice-toggle.locked {
  border-color: rgba(255, 77, 0, 0.6);
  background: linear-gradient(180deg, rgba(255, 92, 0, 0.26), rgba(26, 26, 26, 0.8));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 77, 0, 0.25) inset;
}

/* Light Mode: Ja/Nee keuze-knoppen (Gerecht + Accessoires) */
body.light-mode .choice-toggle {
  color: #3a2f28;
  border: 1px solid rgba(186, 120, 64, 0.34);
  background: linear-gradient(180deg, #fffaf4 0%, #fdf0e9 100%);
  box-shadow:
    0 8px 16px rgba(130, 79, 41, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  transition: all 0.25s ease;
}

body.light-mode .choice-toggle:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow:
    0 14px 24px rgba(249, 115, 22, 0.22),
    0 0 0 1px rgba(249, 115, 22, 0.16) inset;
}

body.light-mode .choice-toggle:focus-visible {
  outline: 2px solid rgba(249, 115, 22, 0.56);
  outline-offset: 2px;
  box-shadow:
    0 0 0 4px rgba(249, 115, 22, 0.18),
    0 10px 20px rgba(186, 98, 38, 0.16);
}

body.light-mode .choice-toggle.selected,
body.light-mode .choice-toggle.locked {
  border-color: rgba(249, 115, 22, 0.7);
  background:
    linear-gradient(180deg, #fff7ed 0%, #ffe7d2 100%),
    radial-gradient(circle at 85% 10%, rgba(255, 171, 93, 0.22), transparent 52%);
  box-shadow:
    0 14px 26px rgba(249, 115, 22, 0.22),
    0 0 0 2px rgba(249, 115, 22, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.light-mode .choice-toggle.selected[data-gerecht-keuze="yes"],
body.light-mode .choice-toggle.locked[data-gerecht-keuze="yes"],
body.light-mode .choice-toggle.selected[data-accessoire-keuze="yes"],
body.light-mode .choice-toggle.locked[data-accessoire-keuze="yes"] {
  color: #3a2f28;
  border-color: rgba(205, 120, 52, 0.62);
  background: linear-gradient(135deg, #ffd8a8 0%, #f97316 100%);
  box-shadow:
    0 14px 26px rgba(186, 98, 38, 0.24),
    0 0 0 2px rgba(249, 115, 22, 0.16),
    inset 0 1px 0 rgba(255, 240, 220, 0.72);
}

body.light-mode .choice-toggle.selected[data-gerecht-keuze="no"],
body.light-mode .choice-toggle.locked[data-gerecht-keuze="no"],
body.light-mode .choice-toggle.selected[data-accessoire-keuze="no"],
body.light-mode .choice-toggle.locked[data-accessoire-keuze="no"] {
  color: #3a2f28;
  border-color: rgba(214, 136, 74, 0.62);
  background: linear-gradient(180deg, #fff4e6 0%, #ffe8d0 100%);
  box-shadow:
    0 12px 22px rgba(186, 110, 52, 0.2),
    0 0 0 2px rgba(214, 136, 74, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.input-group label {
  text-align: center;
  color: rgba(244, 244, 243, 0.8);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.styled-input,
.styled-select {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 15, 15, 0.45);
  color: var(--text);
  font-size: max(16px, 1rem);
  outline: none;
  backdrop-filter: blur(8px);
}

.styled-select {
  appearance: none;
  -webkit-appearance: none;
}

.styled-input::placeholder {
  text-align: center;
}

.styled-input:focus,
.styled-select:focus {
  border-color: rgba(201, 171, 115, 0.65);
  box-shadow: 0 0 0 4px rgba(201, 171, 115, 0.18);
}

.input-error-text {
  margin: 2px 0 0;
  color: #f87171;
  font-size: 0.84rem;
}

.timing-card {
  width: 100%;
  max-width: 720px;
  margin: 14px auto 0;
  padding: 16px 14px;
  position: relative;
  overflow: hidden;
}

.timing-main {
  margin: 4px 0 8px;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  font-weight: 800;
  color: rgba(244, 244, 243, 0.94);
}

.timing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.timing-item {
  background: rgba(15, 15, 15, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 8px;
}

.timing-item-wide {
  grid-column: 1 / -1;
}

.timing-label {
  margin: 0;
  color: rgba(244, 244, 243, 0.62);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.45px;
}

.timing-value {
  margin: 4px 0 0;
  color: rgba(244, 244, 243, 0.92);
  font-size: 0.98rem;
  font-weight: 700;
}

.timing-value + .timing-value {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .choice-actions {
    width: min(100%, 360px);
  }

  .timing-grid {
    grid-template-columns: 1fr;
  }

  .timing-item {
    padding: 10px;
  }
}
