/* ═══════════════════════════════════════════════════════════
   Sportcafé Corlaer – Boekingsformulier CSS
   ═══════════════════════════════════════════════════════════ */

:root {
  --cr-rood:      #FD5904;
  --cr-rood-d:    #d44a03;
  --cr-goud:      #f0a500;
  --cr-donker:    #1a1a1a;
  --cr-grijs:     #4a4a4a;
  --cr-licht:     #f5f5f5;
  --cr-rand:      #e0e0e0;
  --cr-radius:    10px;
  --cr-shadow:    0 2px 14px rgba(0,0,0,.09);
}

/* ────────────────────────────────────────────────
   BASIS
──────────────────────────────────────────────── */
#corlaer-booking-wrap {
  font-family: 'Segoe UI', system-ui, sans-serif;
  max-width: 820px;
  margin: 2rem auto;
  color: var(--cr-donker);
}

/* ────────────────────────────────────────────────
   STAPINDICATOR
──────────────────────────────────────────────── */
.cr-steps {
  display: grid;
  gap: 4px;
  margin-bottom: 2rem;
  grid-template-columns: repeat(5,1fr);
}
.cr-step {
  flex: 1;
  min-width: 0;
  min-width: 90px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #999;
  background: var(--cr-licht);
  transition: background .2s, color .2s;
}
.cr-step span {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #ddd; color: #888;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.cr-step.active           { background: var(--cr-rood); color: #fff; }
.cr-step.active span      { background: rgba(255,255,255,.25); color: #fff; }
.cr-step.done             { background: #e8f5e9; color: #2e7d32; }
.cr-step.done span        { background: #2e7d32; color: #fff; }

/* ────────────────────────────────────────────────
   PANELS
──────────────────────────────────────────────── */
.cr-panel        { display: none; animation: crIn .3s ease; }
.cr-panel.active { display: block; }
@keyframes crIn  { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }

.cr-panel h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: .25rem; }
.cr-sub      { color: var(--cr-grijs); margin-bottom: 1.5rem; font-size: .95rem; }

/* ────────────────────────────────────────────────
   STAP 1 LAYOUT: kalender naast tijdslots
──────────────────────────────────────────────── */
.cr-stap1-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 680px) {
  .cr-stap1-layout { grid-template-columns: 1fr; }
}

/* ────────────────────────────────────────────────
   FRONTEND KALENDER
──────────────────────────────────────────────── */
.cr-frontcal {
  background: #fff;
  border: 2px solid var(--cr-rand);
  border-radius: var(--cr-radius);
  overflow: hidden;
  box-shadow: var(--cr-shadow);
}
.cr-frontcal-header {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--cr-rood); color: #fff; padding: 14px 18px;
}
.cr-frontcal-header span  { font-size: 1.05rem; font-weight: 700; }
.cr-frontcal-header button {
  background: none; border: none; color: #fff;
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  padding: 0 8px; opacity: .85; transition: opacity .15s;
}
.cr-frontcal-header button:hover { opacity: 1; }

.cr-frontcal-daynames {
  display: grid; grid-template-columns: repeat(7,1fr);
  background: #f9f0f2; border-bottom: 1px solid var(--cr-rand);
}
.cr-frontcal-daynames span {
  text-align: center; padding: 8px 0;
  font-size: .75rem; font-weight: 700;
  color: var(--cr-rood); text-transform: uppercase; letter-spacing: .4px;
}

.cr-frontcal-grid {
  display: grid; grid-template-columns: repeat(7,1fr);
  gap: 3px; padding: 10px; background: #fafafa;
}

.cr-fday {
  aspect-ratio: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: .88rem; font-weight: 500;
  cursor: pointer;
  transition: transform .12s, border-color .12s;
  border: 2px solid transparent;
  background: #fff;
  min-height: 42px;
  position: relative;
}
.cr-fday:hover:not(.cr-fday--past):not(.cr-fday--full):not(.cr-fday--empty) {
  border-color: var(--cr-rood); transform: scale(1.09); z-index: 1;
}
.cr-fday--empty   { background: transparent; cursor: default; }
.cr-fday--past    { background: #f4f4f4; color: #ccc; cursor: not-allowed; }
.cr-fday--free    { background: #f0faf4; border-color: #b2d8c4; color: #1a5c37; }
.cr-fday--partial { background: #fffbf0; border-color: #f0d080; color: #7a5700; }
.cr-fday--full    { background: #fff0f0; border-color: #f0b0b0; color: #9e1a1a;
                    cursor: not-allowed; text-decoration: line-through; opacity: .65; }
.cr-fday--today .cr-fday-nr::after {
  content: ''; display: block;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--cr-rood); margin: 2px auto 0;
}
.cr-fday--selected {
  background: var(--cr-rood) !important;
  border-color: #d44a03 !important;
  color: #fff !important;
  transform: scale(1.09); z-index: 1;
  text-decoration: none !important; opacity: 1 !important;
}
.cr-fday-nr   { font-size: .88rem; line-height: 1; }
.cr-fday-dots { display: flex; gap: 2px; margin-top: 3px; }
.cr-fday-dot  { width: 5px; height: 5px; border-radius: 50%; }
.cr-fday-dot--free  { background: #2e7d32; }
.cr-fday-dot--taken { background: var(--cr-rood); }

.cr-frontcal-legenda {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  padding: 10px 14px; border-top: 1px solid var(--cr-rand);
  background: #fff;
}
.cr-leg { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: #555; }
.cr-leg::before {
  content: ''; width: 13px; height: 13px; border-radius: 4px;
  display: inline-block; border: 2px solid transparent;
}
.cr-leg-free::before    { background: #f0faf4; border-color: #b2d8c4; }
.cr-leg-partial::before { background: #fffbf0; border-color: #f0d080; }
.cr-leg-full::before    { background: #fff0f0; border-color: #f0b0b0; }
.cr-leg-past::before    { background: #f4f4f4; border-color: #ddd; }

/* ────────────────────────────────────────────────
   TIJDSLOT PANEEL (rechts van kalender)
──────────────────────────────────────────────── */
.cr-tijdslot-panel {
  background: #fff;
  border: 2px solid var(--cr-rand);
  border-radius: var(--cr-radius);
  min-height: 300px;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: var(--cr-shadow);
}
.cr-tijdslot-hint {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #bbb; padding: 2rem 1.5rem; text-align: center; gap: .75rem;
}
.cr-hint-icon {
  font-size: 2rem;
  animation: cr-puls 1.8s ease-in-out infinite;
}
@keyframes cr-puls {
  0%,100% { opacity:.35; transform:translateX(0); }
  50%     { opacity:1;   transform:translateX(-7px); }
}
.cr-tijdslot-hint p { font-size: .9rem; margin: 0; line-height: 1.5; }

#cr-tijdslot-inhoud { padding: 1.25rem; }
#cr-tijdslot-inhoud h3 {
  font-size: 1rem; font-weight: 700; color: var(--cr-rood);
  margin-bottom: .5rem; padding-bottom: .5rem;
  border-bottom: 2px solid var(--cr-rand);
}

/* Tijdblok tiles in stap 1: verticale stapel */
#cr-tijdslot-inhoud .cr-tijdblokken {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 0;
}
#cr-tijdslot-inhoud .cr-tile-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem; text-align: left;
}
#cr-tijdslot-inhoud .cr-tile-inner strong { font-size: .95rem; }
#cr-tijdslot-inhoud .cr-tile-inner span   { font-size: .8rem; color: #888; }

/* ────────────────────────────────────────────────
   TIJDBLOK TILES (algemeen)
──────────────────────────────────────────────── */
.cr-tijdblokken {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; margin-bottom: 1.5rem;
}
.cr-tile { cursor: pointer; display: block; }
.cr-tile input { display: none; }
.cr-tile-inner {
  border: 2px solid var(--cr-rand); border-radius: var(--cr-radius);
  padding: 1rem; text-align: center;
  transition: border-color .15s, background .15s;
  background: #fff;
}
.cr-tile-inner strong { display: block; font-size: 1rem; }
.cr-tile-inner span   { display: block; font-size: .8rem; color: #888; margin-top: 4px; }
.cr-tile input:checked + .cr-tile-inner {
  border-color: var(--cr-rood); background: #fff5f7; color: var(--cr-rood);
}
.cr-tile:hover:not(.blocked) .cr-tile-inner { border-color: #aaa; }
.cr-tile.blocked { cursor: not-allowed; }
.cr-tile.blocked .cr-tile-inner {
  opacity: .45; background: var(--cr-licht); text-decoration: line-through;
}
.cr-volgeboekt-label {
  display: block; color: #c0392b;
  font-size: .72rem; margin-top: 4px;
  text-decoration: none;
}

/* ────────────────────────────────────────────────
   MELDINGEN
──────────────────────────────────────────────── */
.cr-melding { margin-top: .75rem; min-height: 20px; font-size: .9rem; }
.cr-melding--ok   { color: #2e7d32; }
.cr-melding--fout { color: var(--cr-rood); }

/* ────────────────────────────────────────────────
   ARRANGEMENTEN
──────────────────────────────────────────────── */
.cr-arrangementen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin-bottom: 1.5rem;
}
.cr-arr-tile { cursor: pointer; display: block; position: relative; }
.cr-arr-tile input { display: none; }
.cr-arr-inner {
  border: 2px solid var(--cr-rand); border-radius: var(--cr-radius);
  padding: 1rem; background: #fff;
  transition: border-color .15s, background .15s;
  height: 100%; box-sizing: border-box;
}
.cr-arr-tile input:checked + .cr-arr-inner,
.cr-arr-tile input:checked + .cr-arr-badge + .cr-arr-inner {
  border-color: var(--cr-rood); background: #fff5f7;
}
.cr-arr-tile.featured .cr-arr-inner { border-color: var(--cr-goud); }
.cr-arr-badge {
  position: absolute; top: -10px; left: 12px;
  background: var(--cr-goud); color: #fff;
  font-size: .7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .5px;
}
.cr-arr-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: .75rem; gap: .5rem;
}
.cr-arr-header strong { font-size: .95rem; }
.cr-prijs {
  background: var(--cr-licht); border-radius: 4px;
  padding: 2px 8px; font-size: .8rem; font-weight: 700;
  color: var(--cr-rood); white-space: nowrap;
}
.cr-arr-inner ul {
  padding-left: 1.2rem; margin: 0;
  font-size: .84rem; color: var(--cr-grijs);
}
.cr-arr-inner ul li { margin-bottom: 4px; }
.cr-arr-tip {
  margin: .6rem 0 0; padding-top: .5rem;
  border-top: 1px dashed #e0e0e0;
  font-size: .79rem; color: #999; font-style: italic;
}

/* ────────────────────────────────────────────────
   EXTRA OPTIES
──────────────────────────────────────────────── */
.cr-extras { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1rem; }
.cr-extra-tile { cursor: pointer; display: block; }
.cr-extra-tile input { display: none; }
.cr-extra-inner {
  border: 2px solid var(--cr-rand); border-radius: var(--cr-radius);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  background: #fff; transition: border-color .15s, background .15s;
}
.cr-extra-inner strong { font-size: .95rem; min-width: 170px; }
.cr-extra-inner span   { flex: 1; color: #666; font-size: .88rem; }
.cr-extra-inner em     { font-style: normal; font-weight: 700; color: var(--cr-rood); white-space: nowrap; }
.cr-extra-tile input:checked + .cr-extra-inner {
  border-color: var(--cr-rood); background: #fff5f7;
}
@media (max-width: 560px) { .cr-extra-inner { flex-wrap: wrap; } .cr-extra-prijs { width: 100%; text-align: left; } }

.cr-uren-tiles { display: flex; gap: 12px; margin-top: .5rem; }
.cr-uur-tile {
  cursor: pointer; border: 2px solid var(--cr-rand);
  border-radius: 8px; padding: .6rem 1.4rem;
  background: #fff; transition: all .15s;
  display: flex; align-items: center; gap: 8px; font-weight: 600;
}
.cr-uur-tile input { display: none; }
.cr-uur-tile:has(input:checked) {
  border-color: var(--cr-rood); background: #fff5f7; color: var(--cr-rood);
}

/* ────────────────────────────────────────────────
   FORMULIER VELDEN
──────────────────────────────────────────────── */
.cr-form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-bottom: 1rem;
}
@media (max-width: 560px) { .cr-form-grid { grid-template-columns: 1fr; } }
.cr-field { display: flex; flex-direction: column; gap: 5px; }
.cr-field--full { grid-column: 1 / -1; }
.cr-field label { font-size: .88rem; font-weight: 600; color: var(--cr-grijs); }
.cr-field input,
.cr-field textarea {
  border: 2px solid var(--cr-rand); border-radius: 8px;
  padding: 9px 12px; font-size: .95rem; font-family: inherit;
  outline: none; resize: vertical;
  transition: border-color .15s;
}
.cr-field input:focus,
.cr-field textarea:focus { border-color: var(--cr-rood); }
.cr-error-box {
  background: #fff5f5; border: 1px solid #f5c6cb;
  border-radius: 8px; padding: .75rem 1rem;
  color: #c0392b; font-size: .9rem; margin-bottom: 1rem;
}

/* ────────────────────────────────────────────────
   NAVIGATIE KNOPPEN
──────────────────────────────────────────────── */
.cr-nav { display: flex; gap: 12px; margin-top: 1.5rem; align-items: center; }
.cr-btn {
  padding: 10px 24px; border-radius: 8px;
  border: 2px solid var(--cr-rand); background: #fff;
  cursor: pointer; font-size: .95rem; font-weight: 600;
  transition: all .15s;
}
.cr-btn:disabled { opacity: .4; cursor: not-allowed; }
.cr-btn.cr-next,
.cr-btn.cr-submit {
  background: var(--cr-rood); color: #fff;
  border-color: var(--cr-rood); margin-left: auto;
}
.cr-btn.cr-next:hover:not(:disabled),
.cr-btn.cr-submit:hover { background: #d44a03; border-color: #d44a03; }
.cr-btn.cr-prev:hover { background: var(--cr-licht); }

/* ────────────────────────────────────────────────
   OVERZICHT
──────────────────────────────────────────────── */
.cr-overzicht {
  background: var(--cr-licht); border-radius: var(--cr-radius);
  padding: 1.5rem; margin-bottom: 1rem;
}
.cr-ov-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 7px 0; border-bottom: 1px solid #e5e5e5; font-size: .95rem;
}
.cr-ov-row:last-child { border-bottom: none; }
.cr-ov-row strong { color: var(--cr-grijs); flex-shrink: 0; margin-right: 1rem; }
.cr-ov-row span   { font-weight: 600; text-align: right; }
.cr-ov-total {
  margin-top: .75rem; padding-top: .75rem;
  border-top: 2px solid var(--cr-rood) !important;
  font-size: 1.08rem;
}
.cr-ov-total span { color: var(--cr-rood); font-size: 1.25rem; }
.cr-ov-sectie { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid #ccc !important; }
.cr-ov-wensen { max-width: 55%; text-align: right; word-break: break-word; }
.cr-disclaimer {
  font-size: .85rem; color: #888; margin-bottom: 1rem; line-height: 1.6;
}

/* ────────────────────────────────────────────────
   BEVESTIGING SCHERM
──────────────────────────────────────────────── */
#panel-confirm { text-align: center; padding: 2.5rem 1rem; }
.cr-confirm-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: #2e7d32; color: #fff;
  font-size: 2.2rem; display: flex;
  align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
#panel-confirm h2 { font-size: 1.8rem; margin-bottom: .5rem; }
#panel-confirm p  { color: var(--cr-grijs); line-height: 1.7; }
#panel-confirm a  { color: var(--cr-rood); }

/* ────────────────────────────────────────────────
   RESPONSIEF (overig)
──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .cr-steps { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .cr-step  { font-size: 10px; padding: 6px 4px; text-align: center; min-width: 0; }
  .cr-step span { display: none; }
  .cr-arr-header { flex-direction: column; gap: 4px; }
  .cr-tijdslot-hint { flex-direction: row; padding: 1.25rem; gap: .5rem; justify-content: flex-start; }
  .cr-hint-icon { font-size: 1.2rem; animation: none; }
  .cr-tijdslot-panel { min-height: auto; }
}
