/* ====================================================
   TAWHIED RUIMTE BOEKING — Stijlblad v2.3
   Navy #1b2a4a | Teal #1e9bb8 | Goud #c9a84c
   ==================================================== */

/* ── LANDING PAGINA ── */
.rb-landing { font-family: inherit; }

.rb-hero {
    background: linear-gradient(135deg, #1b2a4a 0%, #1e6fa8 60%, #1e9bb8 100%);
    padding: 56px 24px;
    text-align: center;
    border-radius: 12px;
    margin: 0 auto 36px;
    max-width: 960px;
}
.rb-hero h1 { color: #fff; font-size: clamp(20px,4vw,34px); margin: 0 0 10px; font-weight: 800; }
.rb-hero p  { color: #7ec8e3; font-size: 16px; margin: 0; }

.rb-pakketten-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto 36px;
}
.rb-pakket-kaart {
    background: linear-gradient(160deg, #1b3060, #2a4080);
    border-radius: 12px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}
.rb-pakket-featured { border: 2px solid #c9a84c; }
.rb-aanbevolen-badge {
    position: absolute; top: -12px; left: 50%;
    transform: translateX(-50%);
    background: #c9a84c; color: #1b2a4a;
    padding: 3px 14px; border-radius: 20px;
    font-size: 11px; font-weight: 700; white-space: nowrap;
}
.rb-pakket-naam { font-size: 18px; font-weight: 800; color: #fff; margin-top: 8px; }
.rb-pakket-prijs { font-size: 32px; font-weight: 900; color: #c9a84c; }
.rb-pakket-kaart ul { list-style: none; padding: 0; margin: 6px 0 14px; flex: 1; }
.rb-pakket-kaart ul li { color: #c8d8f0; padding: 4px 0; font-size: 13px; }
.rb-pakket-kaart ul li::before { content: "✓ "; color: #1e9bb8; font-weight: bold; }
.rb-pakket-btn {
    display: block; text-align: center;
    background: #c9a84c; color: #1b2a4a;
    padding: 11px; border-radius: 8px;
    font-weight: 700; text-decoration: none; font-size: 14px;
    transition: background 0.2s;
}
.rb-pakket-btn:hover { background: #f0d080; color: #1b2a4a; text-decoration: none; }

.rb-extra-sectie {
    background: linear-gradient(135deg, #1b2a4a, #1a3060);
    border-radius: 12px; padding: 28px 24px;
    max-width: 960px; margin: 0 auto 28px;
}
.rb-extra-sectie h2 { color: #1e9bb8; text-align: center; margin: 0 0 20px; font-size: 20px; }
.rb-extra-grid { display: flex; flex-direction: column; gap: 10px; }
.rb-extra-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; background: rgba(255,255,255,0.06);
    border-radius: 8px; border-left: 3px solid #1e9bb8;
}
.rb-extra-naam { color: #c8d8f0; font-size: 14px; }
.rb-extra-prijs { color: #c9a84c; font-weight: 800; font-size: 16px; }

.rb-aanbevolen-sectie {
    background: #f8f4eb; border-radius: 12px;
    padding: 28px 24px; margin: 0 auto 28px;
    border: 2px solid #c9a84c; max-width: 960px;
}
.rb-aanbevolen-sectie h2 { color: #1b2a4a; text-align: center; margin: 0 0 16px; }
.rb-aanbevolen-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.rb-aanbevolen-item {
    background: #fff; border-radius: 8px;
    padding: 16px; text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.rb-aanbevolen-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.rb-aanbevolen-item p { margin: 0; color: #444; font-size: 14px; line-height: 1.5; }

.rb-voorwaarden {
    background: #fff8e1; border-left: 4px solid #c9a84c;
    border-radius: 6px; padding: 14px 18px;
    margin: 0 auto 36px; max-width: 960px;
}
.rb-voorwaarden p { margin: 5px 0; color: #5a4200; font-size: 13px; }

.rb-form-sectie { margin-top: 8px; }
.rb-form-sectie > h2 {
    text-align: center; font-size: 24px;
    color: #1b2a4a; margin-bottom: 24px;
    padding-bottom: 10px;
}
.rb-form-sectie > h2::after {
    content: ''; display: block; width: 50px; height: 3px;
    background: #1e9bb8; margin: 8px auto 0; border-radius: 2px;
}

/* ── FORMULIER CONTAINER ── */
.rb-container { max-width: 680px; margin: 0 auto; font-family: inherit; }

.rb-voortgang {
    background: #f0f4fa; border: 1px solid #c8d4e8;
    border-radius: 8px; padding: 12px 16px;
    font-size: 13px; color: #5a6a80;
    margin-bottom: 16px; line-height: 1.5;
}
.rb-voortgang-ok   { background: #d4edda; border-color: #28a745; color: #155724; font-weight: 600; }
.rb-voortgang-fout { background: #f8d7da; border-color: #dc3545; color: #721c24; font-weight: 600; }

.rb-form { display: flex; flex-direction: column; gap: 0; }

.rb-sectie {
    background: #fff; border: 1px solid #dde4f0;
    border-radius: 10px; padding: 20px 22px;
    margin-bottom: 14px;
    box-shadow: 0 1px 6px rgba(27,42,74,0.05);
}
.rb-sectie-titel {
    margin: 0 0 14px; font-size: 15px;
    font-weight: 700; color: #1b2a4a;
    border-bottom: 2px solid #eef2f8;
    padding-bottom: 10px;
}
.rb-form-rij { margin-bottom: 14px; }
.rb-form-rij:last-child { margin-bottom: 0; }
.rb-form-rij > label {
    display: block; font-weight: 600;
    margin-bottom: 8px; color: #1b2a4a; font-size: 14px;
}
.rb-form-rij input[type="text"],
.rb-form-rij input[type="email"],
.rb-form-rij input[type="tel"],
.rb-form-rij input[type="date"],
.rb-form-rij textarea {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid #c8d4e8; border-radius: 7px;
    font-size: 15px; box-sizing: border-box;
    color: #1b2a4a; background: #f8fafd;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.rb-form-rij input:focus,
.rb-form-rij textarea:focus {
    border-color: #1e9bb8; outline: none;
    box-shadow: 0 0 0 3px rgba(30,155,184,0.15);
    background: #fff;
}

/* ── KLIKBARE OPTIES (radio vervanger) ── */
.rb-klik-groep { display: flex; flex-direction: column; gap: 8px; }
.rb-klik-groep-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }

.rb-klik-optie {
    border: 2px solid #c8d4e8; border-radius: 8px;
    padding: 12px 14px; cursor: pointer;
    background: #f8fafd; transition: all 0.15s;
    user-select: none;
}
.rb-klik-optie:hover { border-color: #1e9bb8; background: #f0fafd; }
.rb-klik-actief { border-color: #1e9bb8 !important; background: #e8f6fa !important; }
.rb-klik-optie input[type="radio"] { display: none; }

.rb-klik-inhoud strong { display: block; color: #1b2a4a; font-size: 14px; }
.rb-klik-inhoud small  { display: block; color: #7a8fa8; font-size: 12px; margin-top: 2px; }

/* Tijdslot (3-koloms) centreert tekst */
.rb-klik-groep-3 .rb-klik-optie { text-align: center; padding: 12px 8px; }
.rb-klik-groep-3 .rb-klik-inhoud strong { font-size: 13px; }

/* ── PAKKET KEUZE IN FORMULIER ── */
.rb-pakket-keuze { display: flex; flex-direction: column; gap: 8px; }
.rb-pk-optie {
    border: 2px solid #c8d4e8; border-radius: 8px;
    cursor: pointer; background: #f8fafd;
    transition: all 0.15s; user-select: none;
}
.rb-pk-optie:hover { border-color: #1e9bb8; background: #f0fafd; }
.rb-pk-optie.rb-klik-actief { border-color: #1e9bb8; background: #e8f6fa; box-shadow: 0 0 0 3px rgba(30,155,184,0.1); }
.rb-pk-optie input[type="radio"] { display: none; }
.rb-pk-kaart { padding: 14px 16px; }
.rb-pk-header { display: flex; justify-content: space-between; align-items: center; }
.rb-pk-naam   { font-size: 15px; font-weight: 700; color: #1b2a4a; }
.rb-pk-prijs  { font-size: 18px; font-weight: 800; color: #1e9bb8; }
.rb-pk-info   { font-size: 12px; color: #7a8fa8; margin-top: 4px; }
.rb-pk-optie.rb-klik-actief .rb-pk-info { color: #2a6070; }

/* Info blok */
.rb-info-blok {
    background: #fff8e1; border-left: 4px solid #c9a84c;
    padding: 10px 14px; border-radius: 4px;
    font-size: 14px; margin-bottom: 12px; color: #5a4200;
}

/* Beschikbaarheid */
.rb-beschikbaarheid {
    margin-top: 10px; padding: 10px 14px;
    border-radius: 6px; font-size: 13px; font-weight: 600;
}
.rb-checking { background: #e8f4f8; color: #1b6a80; border-left: 3px solid #1e9bb8; }
.rb-vrij     { background: #d4edda; color: #155724; border-left: 3px solid #28a745; }
.rb-bezet    { background: #f8d7da; color: #721c24; border-left: 3px solid #dc3545; }

/* Melding */
.rb-melding { padding: 14px 18px; border-radius: 8px; margin-bottom: 16px; font-weight: 600; font-size: 14px; }
.rb-succes   { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.rb-fout     { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }

/* Prijsoverzicht */
.rb-prijsoverzicht {
    background: linear-gradient(135deg, #1b2a4a, #162d52);
    border: 2px solid #1e9bb8; border-radius: 10px;
    padding: 18px; margin-bottom: 14px;
}
.rb-prijsoverzicht h3 { margin: 0 0 12px; color: #7ec8e3; font-size: 15px; }
.rb-prijs-tabel { width: 100%; border-collapse: collapse; }
.rb-prijs-tabel td { padding: 7px 10px; border-bottom: 1px solid #2a3f6a; color: #c8d8f0; font-size: 13px; }
.rb-totaal-rij td { font-size: 17px; font-weight: 700; color: #c9a84c; border-top: 2px solid #1e9bb8; border-bottom: none; padding-top: 10px; }
.rb-prijs-info { font-size: 11px; color: #7ec8e3; margin: 8px 0 0; }

/* Verzendknop */
.rb-knop {
    width: 100%; padding: 16px;
    background: linear-gradient(135deg, #c9a84c, #f0d080);
    color: #1b2a4a; border: none; border-radius: 8px;
    font-size: 16px; font-weight: 800; cursor: pointer;
    transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.5px;
}
.rb-knop:not(:disabled):hover {
    background: linear-gradient(135deg, #f0d080, #c9a84c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201,168,76,0.35);
}
.rb-knop:disabled { background: #dde4f0; color: #9aabb8; cursor: not-allowed; }

/* ── ADMIN ── */
.rb-admin-tabel { margin-top: 0; }
.rb-admin-leeg { padding: 20px; background: #f8f9fc; border: 1px solid #e0e0e0; border-radius: 6px; color: #888; }
.rb-kalender-nav { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.rb-legenda { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.rb-legenda-item { padding: 4px 12px; border-radius: 12px; color: white; font-size: 13px; font-weight: 600; }
.rb-kalender { width: 100%; border-collapse: collapse; table-layout: fixed; }
.rb-kalender th { background: #1b2a4a; color: white; padding: 10px; text-align: center; font-size: 13px; }
.rb-dag { vertical-align: top; padding: 6px; border: 1px solid #e0e0e0; height: 80px; background: white; }
.rb-leeg { background: #f8f9fc; border: 1px solid #e0e0e0; }
.rb-vandaag { background: #fff8e1; }
.rb-dag-nummer { font-size: 11px; font-weight: 700; color: #555; margin-bottom: 3px; }
.rb-vandaag .rb-dag-nummer { color: #c9a84c; }
.rb-event { font-size: 10px; color: white; padding: 2px 5px; border-radius: 3px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── RESPONSIVE TABLET (max 900px) ── */
@media (max-width: 900px) {
    .rb-pakketten-grid   { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
    .rb-pakket-featured  { transform: none; }
    .rb-aanbevolen-grid  { grid-template-columns: 1fr; }
    .rb-klik-groep-3     { grid-template-columns: repeat(3,1fr); }
}

/* ── RESPONSIVE MOBIEL (max 600px) ── */
@media (max-width: 600px) {
    /* Landing */
    .rb-hero            { padding: 28px 14px; border-radius: 8px; }
    .rb-hero h1         { font-size: 18px; }
    .rb-pakketten-grid  { grid-template-columns: 1fr; max-width: 100%; }
    .rb-pakket-kaart    { padding: 18px 14px; }
    .rb-pakket-prijs    { font-size: 26px; }
    .rb-aanbevolen-grid { grid-template-columns: 1fr; }
    .rb-extra-item      { flex-direction: row; }

    /* Formulier */
    .rb-sectie          { padding: 14px; }
    .rb-sectie-titel    { font-size: 14px; }
    .rb-klik-groep-3    { grid-template-columns: 1fr; } /* tijdslots onder elkaar op mobiel */
    .rb-klik-groep-3 .rb-klik-optie { text-align: left; }

    /* Inputs: font 16px voorkomt zoom op iOS Safari */
    .rb-form-rij input[type="text"],
    .rb-form-rij input[type="email"],
    .rb-form-rij input[type="tel"],
    .rb-form-rij input[type="date"],
    .rb-form-rij textarea { font-size: 16px; }

    .rb-pk-naam   { font-size: 14px; }
    .rb-pk-prijs  { font-size: 16px; }
    .rb-pk-info   { font-size: 11px; }
    .rb-knop      { font-size: 14px; padding: 14px; letter-spacing: 0; }
    .rb-prijs-tabel td { font-size: 12px; padding: 6px 8px; }
    .rb-totaal-rij td  { font-size: 15px; }
}

/* ── VELD VALIDATIE ── */
.rb-veld-fout { display: block; color: #dc3545; font-size: 12px; margin-top: 4px; }
.rb-veld-fout-input { border-color: #dc3545 !important; }

/* ── SPINNER ── */
.rb-spinner {
    display: inline-block; width: 12px; height: 12px;
    border: 2px solid #1e9bb8; border-top-color: transparent;
    border-radius: 50%; animation: rb-spin 0.6s linear infinite;
    vertical-align: middle; margin-right: 4px;
}
@keyframes rb-spin { to { transform: rotate(360deg); } }

/* ── WAARSCHUWING ── */
.rb-waarschuwing { background: #fff3cd; color: #856404; border-left: 3px solid #ffc107; }
/* Blokkade in kalender */
.rb-event-blokkade { background: #555 !important; color: white; opacity: 0.85; }

/* ── LABEL/RADIO KEUZESYSTEEM (Elementor-proof) ──────────────── */
.rb-keuze-groep {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rb-keuze-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.rb-keuze-label {
    cursor: pointer;
    display: block;
    margin: 0;
    font-weight: normal;
}
/* Verberg de radio button zelf */
.rb-keuze-label .rb-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
/* De zichtbare kaart */
.rb-keuze-kaart {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 16px;
    border: 2px solid #c8d4e8;
    border-radius: 8px;
    background: #f8fafd;
    transition: border-color 0.15s, background 0.15s;
    cursor: pointer;
}
.rb-keuze-kaart strong {
    font-size: 14px;
    color: #1b2a4a;
    display: block;
}
.rb-keuze-kaart small {
    font-size: 12px;
    color: #7a8fa8;
    display: block;
}
/* CSS-only selected state via :checked */
.rb-keuze-label .rb-radio:checked + .rb-keuze-kaart {
    border-color: #1e9bb8 !important;
    background: #e8f6fa !important;
    box-shadow: 0 0 0 3px rgba(30,155,184,0.15);
}
.rb-keuze-label:hover .rb-keuze-kaart {
    border-color: #1e9bb8;
    background: #f0fafd;
}
/* Pakket kaart header */
.rb-pk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.rb-pk-prijs {
    font-size: 16px;
    font-weight: 800;
    color: #1e9bb8;
}
.rb-keuze-label .rb-radio:checked + .rb-keuze-kaart .rb-pk-prijs {
    color: #1b6a80;
}
/* Tekstveld label */
.rb-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1b2a4a;
    font-size: 14px;
}
/* Input velden */
.rb-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #c8d4e8;
    border-radius: 7px;
    font-size: 15px;
    box-sizing: border-box;
    color: #1b2a4a;
    background: #f8fafd;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.rb-input:focus {
    border-color: #1e9bb8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30,155,184,0.15);
    background: #fff;
}

/* Responsive: tijdslots en pakketten op mobiel */
@media (max-width: 600px) {
    .rb-keuze-3col {
        grid-template-columns: 1fr;
    }
    .rb-keuze-kaart {
        padding: 10px 14px;
    }
    .rb-keuze-kaart strong {
        font-size: 13px;
    }
    /* Prevent iOS zoom */
    .rb-input {
        font-size: 16px !important;
    }
}
@media (max-width: 900px) {
    .rb-keuze-3col {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
