/* -------------------------------------------------- */
/* BASIS VARIABELEN                                   */
/* -------------------------------------------------- */
:root {
  --o1:#1a66ff;
  --o2:#0056ff;
  --ink:#0a2a4a;
  --line:rgba(26,102,255,.22);
  --glass:rgba(255,255,255,.9);
  --glass-soft:rgba(255,255,255,.82);
  --danger:#e11d48;
  --ok:#15803d;
}

/* -------------------------------------------------- */
/* BODY + SITE                                        */
/* -------------------------------------------------- */
html,
body {
  height:100%;
}

body {
  margin:0;
  font-family:'Poppins',system-ui,-apple-system,'Segoe UI',sans-serif;
  color:var(--ink);
  background:
    radial-gradient(120% 140% at 0% 0%, #003b84 0, transparent 60%),
    radial-gradient(120% 140% at 100% 0%, #00a0ff 0, transparent 55%),
    radial-gradient(160% 160% at 50% 120%, #021428 0, #020617 55%);
  background-attachment:fixed;
}

.site {
  min-height:100svh;
  display:flex;
  flex-direction:column;
}

main {
  flex:1;
}

/* -------------------------------------------------- */
/* HEADER                                             */
/* -------------------------------------------------- */
header.site-header {
  position:sticky;
  top:0;
  z-index:50;
  background:linear-gradient(135deg,rgba(11,15,30,.95),rgba(11,15,30,.7));
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(148,163,184,.4);
  box-shadow:0 12px 30px rgba(0,0,0,.4);
}

.header-inner {
  max-width:1200px;
  margin:0 auto;
  padding:10px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:#e5edff;
}

.brand-mark {
  width:32px;
  height:32px;
  border-radius:999px;
  background:
    radial-gradient(circle at 30% 20%, #fff 0, #b3e0ff 18%, transparent 40%),
    radial-gradient(circle at 80% 80%, #0f5bff 0, #001d5c 55%);
  box-shadow:0 0 0 1px rgba(255,255,255,.1),0 10px 30px rgba(0,0,0,.4);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.1rem;
  font-weight:700;
  color:#fff;
}

.brand-wordmark {
  display:flex;
  flex-direction:column;
  line-height:1.05;
}

.brand-wordmark span:first-child {
  font-weight:700;
  letter-spacing:.02em;
  font-size:1.05rem;
  color:#f9fafb;
}

.brand-wordmark span:last-child {
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:.18em;
  color:rgba(226,232,240,.8);
}

.header-actions {
  display:flex;
  align-items:center;
  gap:8px;
}

.nav-btn {
  display:inline-flex;
  align-items:center;
  padding:8px 14px;
  border-radius:999px;
  font-weight:600;
  text-decoration:none;
  font-size:13px;
  border:1px solid rgba(148,163,184,.6);
  background:rgba(15,23,42,.7);
  color:#e5edff;
}

.nav-btn:hover {
  background:rgba(15,23,42,.95);
  transform:translateY(-1px);
}

.btn-green {
  background:linear-gradient(135deg,#16a34a,#0f766e);
  color:#eafff2;
}

/* -------------------------------------------------- */
/* LAYOUT WRAPPER                                     */
/* -------------------------------------------------- */
.main-grid {
  padding:18px 0 40px;
}

.page-container {
  max-width:1200px;
  margin:0 auto;
  padding:0 12px;
  display:flex;
  align-items:flex-start;
  gap:32px;
}

/* -------------------------------------------------- */
/* FLEXIJOBS PANEL (DESKTOP)                          */
/* -------------------------------------------------- */
.flex-panel {
  position:relative;
  width:260px;
  min-height:480px;
  flex-shrink:0;
  background:linear-gradient(135deg,rgba(15,23,42,.96),rgba(15,23,42,.9));
  border-radius:18px;
  padding:14px;
  border:1px solid rgba(148,163,184,.6);
  box-shadow:0 20px 50px rgba(15,23,42,.95);
  color:#e5e7eb;
}

.flex-badge-top {
  padding:4px 10px;
  font-size:11px;
  border-radius:999px;
  background:rgba(56,189,248,.16);
  border:1px solid rgba(56,189,248,.3);
  color:#e0f2fe;
  font-weight:700;
  text-transform:uppercase;
}

.flex-title {
  margin:4px 0;
  font-size:15px;
  font-weight:700;
  color:#e5edff;
}

.flex-sub {
  font-size:12px;
  color:rgba(191,219,254,.9);
  margin-bottom:10px;
}

.flex-field {
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom:10px;
}

.flex-field label {
  font-size:11px;
  font-weight:600;
  text-transform:uppercase;
  color:rgba(226,232,240,.9);
}

.flex-field input,
.flex-field select {
  padding:7px 9px;
  border-radius:9px;
  background:rgba(15,23,42,.95);
  border:1px solid rgba(148,163,184,.7);
  color:#e5edff;
}

.flex-status {
  margin-top:8px;
  font-size:11px;
  color:rgba(191,219,254,.9);
}

.flex-list {
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* FLEXIJOB CARDS */
.flex-job-card {
  border-radius:12px;
  padding:8px;
  background:rgba(15,23,42,.98);
  border:1px solid rgba(148,163,184,.7);
  display:grid;
  grid-template-columns:52px 1fr;
  gap:8px;
}

.flex-job-thumb {
  width:52px;
  height:52px;
  border-radius:11px;
  overflow:hidden;
  border:1px solid rgba(148,163,184,.7);
}

.flex-job-thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.flex-job-main {
  display:flex;
  flex-direction:column;
  gap:2px;
}

.flex-job-name {
  font-weight:600;
  font-size:12px;
  color:#e5edff;
}

.flex-job-role {
  font-size:11px;
  color:rgba(191,219,254,.95);
}

.flex-job-loc {
  font-size:11px;
  color:rgba(148,163,184,.95);
}

.flex-badge {
  padding:2px 7px;
  border-radius:999px;
  border:1px solid rgba(129,140,248,.75);
  background:rgba(15,23,42,.95);
  color:#e0f2fe;
  font-size:10px;
}

.flex-view-btn {
  border-radius:999px;
  background:linear-gradient(135deg,var(--o1),var(--o2));
  padding:4px 9px;
  font-size:11px;
  color:#fff;
}

/* -------------------------------------------------- */
/* ZOEK & MIDDENKOLOM                                 */
/* -------------------------------------------------- */
.search-column {
  flex:1;
  min-width:0;
}

/* Categorie bollen */
.cat-dots-row {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:14px;
}

.catdot {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:#f9fafb;
}

.catdot img {
  width:82px;
  height:82px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.6);
  object-fit:cover;
  box-shadow:0 14px 40px rgba(15,23,42,.9);
}

.catdot span {
  font-weight:600;
  font-size:13px;
}

/* Zoekformulier */
.search-wrap {
  width:100%;
  margin:6px 0 20px;
  padding:18px;
  border-radius:20px;
  background:
    radial-gradient(circle at 0 0,rgba(59,130,246,.35),transparent 60%),
    radial-gradient(circle at 100% 0,rgba(56,189,248,.32),transparent 50%),
    rgba(15,23,42,.88);
  border:1px solid rgba(191,219,254,.35);
  box-shadow:0 22px 60px rgba(15,23,42,.9);
}

/* Zoekformulier grid */
.search {
  display:grid;
  grid-template-columns:1.2fr 1fr .8fr .8fr 1fr auto;
  gap:12px;
  align-items:end;
}

/* -------------------------------------------------- */
/* ZOEKRESULTATEN                                     */
/* -------------------------------------------------- */
.results {
  padding-top:4px;
}

.results-head h2 {
  margin:0;
  font-size:20px;
  color:#e5edff;
}

/* Resultaatkaart (zaak + slots) */
.result-card {
  display:grid;
  grid-template-columns:120px 1fr;
  gap:14px;
  padding:12px 14px;
  background:linear-gradient(135deg,rgba(15,23,42,.96),rgba(15,23,42,.9));
  border-radius:16px;
  border:1px solid rgba(148,163,184,.6);
  box-shadow:0 18px 45px rgba(15,23,42,.9);
}

/* Titel van de zaak */
.result-card h3,
.result-head h3 {
  color:#ffffff;
}

/* Metavelden (stad, categorie) */
.result-meta span {
  color:#cbd5e1;
}

/* Slotkaarten in resultaten */
.slot-card,
.slot-card-full {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:0.75rem;
  margin-top:0.5rem;
  padding:0.6rem 0.75rem;
  border-radius:0.75rem;
  background:rgba(30,41,59,0.6);
  border:1px solid rgba(148,163,184,0.25);
  color:#ffffff;
}

.slot-card-full {
  opacity:0.85;
}

.slot-main {
  flex:1;
  min-width:0;
}

.slot-title {
  font-weight:600;
  font-size:0.9rem;
  color:#ffffff;
}

.slot-time {
  font-size:0.85rem;
  color:#ffffff;
}

.slot-desc {
  margin-top:0.15rem;
  font-size:0.85rem;
  color:#e2e8f0;
}

.slot-meta {
  margin-top:0.25rem;
  display:flex;
  flex-wrap:wrap;
  gap:0.35rem;
  font-size:0.8rem;
}

.slot-meta span {
  color:#cbd5e1;
}

.slot-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-shrink:0;
}

.slot-badge {
  border-radius:999px;
  padding:0.18rem 0.6rem;
  font-size:0.78rem;
  background:#7f1d1d;
  color:#fee2e2;
}

/* Titel & meta bovenaan resultaten */
#results-title,
#results-meta {
  color:#ffffff;
}

/* -------------------------------------------------- */
/* RESPONSIVE                                         */
/* -------------------------------------------------- */
@media (max-width:1100px){
  .page-container {
    flex-direction:column;
  }

  .flex-panel {
    width:100%;
    max-width:350px;
    margin:0 auto;
  }
}

@media (max-width:1024px){
  .search {
    grid-template-columns:1fr 1fr 1fr;
  }
}

@media (max-width:720px){
  .search {
    grid-template-columns:1fr;
  }
}

@media (max-width:700px){
  .result-card {
    grid-template-columns:1fr;
  }
}

@media (max-width:640px){
  .header-inner {
    padding:10px;
  }
}

/* -------------------------------------------------- */
/* FOOTER                                             */
/* -------------------------------------------------- */
.site-footer {
  border-top:1px solid rgba(15,23,42,.9);
  background:
    radial-gradient(circle at 50% -60%,rgba(59,130,246,.35),transparent 65%),
    rgba(2,6,23,.96);
}

.footer-inner {
  max-width:1200px;
  margin:0 auto;
  padding:14px 12px 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  font-size:0.8rem;
  color:#e5edff;
}

.footer-inner a {
  color:#e5edff;
  text-decoration:none;
}

.footer-inner a:hover {
  text-decoration:underline;
}

/* -------------------------------------------------- */
/* BOOKING MODAL                                      */
/* -------------------------------------------------- */
.booking-modal[hidden] { display:none; }

.booking-modal{
  position:fixed;
  inset:0;
  z-index:2000; /* ✅ hoger dan header + alles */
}

.booking-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.65);
  backdrop-filter:blur(10px);
}

/* Box */
.booking-dialog{
  position:relative;
  width:min(560px, calc(100% - 28px));
  margin: 6vh auto;
  background:
    radial-gradient(circle at 0 0, rgba(59,130,246,.22), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(56,189,248,.18), transparent 55%),
    rgba(15,23,42,.94);
  border:1px solid rgba(148,163,184,.35);
  border-radius:18px;
  box-shadow:0 24px 70px rgba(0,0,0,.6);
  padding:18px 18px 16px;
  color:#e5e7eb;
}

/* Headings */
.booking-dialog h2,
.booking-dialog h3{
  color:#f9fafb;
  margin:0 0 .5rem;
}

/* Close button */
.booking-close{
  position:absolute;
  top:10px; right:12px;
  width:38px; height:38px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.35);
  background:rgba(15,23,42,.6);
  color:#fff;
  font-size:22px;
  cursor:pointer;
}
.booking-close:hover{ background:rgba(15,23,42,.9); }

/* Summary text */
.booking-slot-summary{
  font-size:.88rem;
  color:rgba(191,219,254,.9);
  margin:.2rem 0 1rem;
}

/* Actions row */
.booking-dialog .form-actions{
  display:flex;
  gap:.6rem;
  justify-content:flex-end;
  margin-top:.9rem;
}

/* ✅ Annuleren = rood (danger) */
.booking-dialog .btn-ghost,
#booking-cancel-btn{
  border-radius:999px;
  padding:.55rem 1.05rem;
  border:1px solid rgba(239,68,68,.65);
  background:rgba(127,29,29,.25);
  color:#fecaca;
  cursor:pointer;
  font-weight:700;
}
.booking-dialog .btn-ghost:hover,
#booking-cancel-btn:hover{
  background:rgba(127,29,29,.45);
  border-color:rgba(239,68,68,.9);
}

/* ✅ Confirm button blijft je blauwe stijl */
.booking-dialog .btn-primary,
#booking-submit-btn,
#booking-done-btn{
  border-radius:999px;
  padding:.55rem 1.1rem;
  border:none;
  background:linear-gradient(135deg,var(--o1),var(--o2));
  color:#fff;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 12px 34px rgba(37,99,235,.45);
}
.booking-dialog .btn-primary:disabled,
#booking-submit-btn:disabled{
  opacity:.6;
  cursor:not-allowed;
}

/* Deposit block (als je het nog gebruikt) */
.deposit-block{
  border-radius:1rem;
  border:1px solid rgba(250,204,21,.6);
  background:rgba(250,204,21,.08);
  padding:.8rem .95rem;
  color:#fde68a;
}
.deposit-details{
  list-style:none;
  padding:0;
  margin:.5rem 0 0;
  font-size:.85rem;
  color:rgba(255,255,255,.9);
}
.deposit-details li + li{ margin-top:.2rem; }
.booking-dialog { max-height: 90vh; overflow: auto; }
  /* -------------------------------------------------- */
/* BOOKING FORM (velden + inputs)                      */
/* -------------------------------------------------- */

.booking-form {
  display: grid;
  gap: 10px;
}

.booking-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.booking-form label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(226, 232, 240, .95);
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15,23,42,.95);
  border: 1px solid rgba(148,163,184,.55);
  color: #e5edff;
  outline: none;
}

.booking-form textarea {
  resize: vertical;
  min-height: 70px;
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
  color: rgba(148,163,184,.9);
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: rgba(59,130,246,.9);
  box-shadow: 0 0 0 3px rgba(59,130,246,.18);
}

.booking-form a {
  color: rgba(191,219,254,.95);
}
.booking-form a:hover {
  text-decoration: underline;
}

#booking-error {
  margin-top: 6px;
  font-weight: 700;
}

