/* WP Agenda Booking — Public CSS v1.9.4
   Alle selectors beginnen met .wab-booking-wrapper om thema-conflicten te voorkomen */

.wab-booking-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100%;
    box-sizing: border-box;
    color: #1d2327;
}
.wab-booking-wrapper * { box-sizing: border-box; }
.wab-booking-wrapper .wab-hidden { display: none !important; }

/* ── Stap-header ── */
.wab-booking-wrapper .wab-step-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.wab-booking-wrapper .wab-step-num {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: #2271b1; color: #fff !important;
    font-size: 14px; font-weight: 700; flex-shrink: 0;
    text-decoration: none;
}
.wab-booking-wrapper .wab-step-header strong {
    font-size: 16px; color: #1d2327; font-weight: 600;
}

/* ── Services grid ── */
.wab-booking-wrapper .wab-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}
.wab-booking-wrapper .wab-service-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    font-size: 14px;
    color: #1d2327 !important;
    text-align: center;
    background: #fff;
    transition: border-color .15s, background .15s;
    font-family: inherit;
    line-height: 1.4;
}
.wab-booking-wrapper .wab-service-card:hover {
    border-color: #93c5fd;
    background: #f0f7ff;
    color: #1d2327 !important;
}
.wab-booking-wrapper .wab-service-card.selected {
    border-color: #2271b1;
    background: #eff6ff;
    font-weight: 600;
    color: #1d2327 !important;
}

/* ── Kalender navigatie ── */
.wab-booking-wrapper .wab-calendar-nav {
    display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.wab-booking-wrapper .wab-month-label {
    font-size: 15px; font-weight: 600; min-width: 150px;
    text-align: center; text-transform: capitalize; color: #1d2327;
}
.wab-booking-wrapper .wab-nav-btn {
    background: #f6f7f7; border: 1px solid #ddd; border-radius: 4px;
    padding: 5px 14px; cursor: pointer; font-size: 16px; color: #1d2327 !important;
    font-family: inherit;
}
.wab-booking-wrapper .wab-nav-btn:hover { background: #e0e0e0; }

/* ── Kalender grid ── */
.wab-booking-wrapper .wab-calendar-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 24px;
}
.wab-booking-wrapper .wab-cal-header {
    text-align: center; font-size: 11px; font-weight: 700;
    color: #777; padding: 4px 0; text-transform: uppercase; letter-spacing: .5px;
}
.wab-booking-wrapper .wab-cal-cell {
    border: 1px solid #e0e0e0; border-radius: 6px; padding: 8px 4px;
    text-align: center; font-size: 13px; cursor: pointer;
    transition: background .1s; min-height: 38px;
    display: flex; align-items: center; justify-content: center;
    color: #1d2327 !important; background: #fff;
}
.wab-booking-wrapper .wab-cal-cell:hover:not(.disabled):not(.empty) {
    background: #f0f7ff; border-color: #93c5fd;
}
.wab-booking-wrapper .wab-cal-cell.empty {
    border-color: transparent; cursor: default; background: transparent;
}
.wab-booking-wrapper .wab-cal-cell.disabled {
    color: #ccc !important; cursor: not-allowed; background: #fafafa;
}
.wab-booking-wrapper .wab-cal-cell.blocked {
    background: #fef2f2 !important; color: #991b1b !important;
    cursor: not-allowed; border-color: #fca5a5;
}
.wab-booking-wrapper .wab-cell-tag {
    display: block; font-size: 9px; color: #dc2626;
    margin-top: 2px; line-height: 1.2; font-weight: 600;
}
.wab-booking-wrapper .wab-notice-unavail {
    color: #777; font-size: 14px; padding: 12px 0;
}
.wab-booking-wrapper .wab-cal-cell.today {
    border-color: #2271b1; font-weight: 700;
}
.wab-booking-wrapper .wab-cal-cell.selected {
    background: #2271b1 !important; border-color: #2271b1; color: #fff !important;
}

/* ── Tijdsloten ── */
.wab-booking-wrapper .wab-slots-list {
    display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px;
}
.wab-booking-wrapper .wab-slot-btn {
    border: 1px solid #e0e0e0; border-radius: 8px; padding: 12px 16px;
    background: #fff; cursor: pointer; text-align: left; font-size: 14px;
    display: flex; align-items: center; justify-content: space-between;
    transition: border-color .15s; font-family: inherit; color: #1d2327 !important;
    width: 100%;
}
.wab-booking-wrapper .wab-slot-btn:hover {
    border-color: #93c5fd; background: #f0f7ff;
}
.wab-booking-wrapper .wab-slot-btn.selected {
    border-color: #2271b1; background: #eff6ff; font-weight: 600;
}
.wab-booking-wrapper .wab-slot-time { font-weight: 600; color: #1d2327; }
.wab-booking-wrapper .wab-slot-avail { font-size: 12px; color: #777; }

/* ── Formulier ── */
.wab-booking-wrapper .wab-form { margin-bottom: 24px; }
.wab-booking-wrapper .wab-fields-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    margin-bottom: 16px;
}
/* Textarea en select altijd volle breedte */
.wab-booking-wrapper .wab-field-group:has(textarea),
.wab-booking-wrapper .wab-field-group:has(select) {
    grid-column: 1 / -1;
}
.wab-booking-wrapper .wab-field-group { margin-bottom: 0; }
.wab-booking-wrapper .wab-field-group label {
    display: block; font-size: 14px; font-weight: 600;
    margin-bottom: 6px; color: #1d2327;
}
.wab-booking-wrapper .wab-field-group input,
.wab-booking-wrapper .wab-field-group select,
.wab-booking-wrapper .wab-field-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #c0c0c0; border-radius: 5px;
    font-size: 14px; color: #1d2327; background: #fff;
    font-family: inherit; line-height: 1.4;
    box-sizing: border-box;
}
.wab-booking-wrapper .wab-field-group input:focus,
.wab-booking-wrapper .wab-field-group select:focus,
.wab-booking-wrapper .wab-field-group textarea:focus {
    border-color: #2271b1; outline: none;
    box-shadow: 0 0 0 2px rgba(34,113,177,.15);
}
.wab-booking-wrapper .wab-field-group textarea { min-height: 80px; resize: vertical; }
.wab-booking-wrapper .wab-required { color: #d63638; }
@media (max-width: 600px) {
    .wab-booking-wrapper .wab-fields-container { grid-template-columns: 1fr; }
}

.wab-booking-wrapper .wab-submit-btn {
    background: #2271b1; color: #fff !important; border: none; border-radius: 6px;
    padding: 12px 30px; font-size: 15px; font-weight: 600; cursor: pointer;
    margin-top: 8px; font-family: inherit;
}
.wab-booking-wrapper .wab-submit-btn:hover { background: #135e96; }
.wab-booking-wrapper .wab-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Bevestiging ── */
.wab-booking-wrapper .wab-confirmation {
    text-align: center; padding: 36px 20px;
}
.wab-booking-wrapper .wab-confirmation-icon {
    font-size: 52px; color: #22c55e; margin-bottom: 14px; line-height: 1;
}
.wab-booking-wrapper .wab-confirmation h3 {
    font-size: 22px; color: #1d2327; margin: 0 0 16px;
}
.wab-booking-wrapper .wab-confirmation-details {
    font-size: 14px; color: #555; margin-bottom: 24px; line-height: 1.8;
}
.wab-booking-wrapper .wab-new-booking-btn {
    background: #f6f7f7; border: 1px solid #ddd; border-radius: 6px;
    padding: 10px 24px; font-size: 14px; cursor: pointer;
    color: #1d2327 !important; font-family: inherit;
}
.wab-booking-wrapper .wab-new-booking-btn:hover { background: #e0e0e0; }

/* ── Terug-knop ── */
.wab-booking-wrapper .wab-back-btn {
    background: none; border: none; color: #2271b1 !important;
    font-size: 13px; cursor: pointer; padding: 0; margin-bottom: 16px;
    text-decoration: underline; font-family: inherit;
}

/* ── Laad-indicator ── */
.wab-booking-wrapper .wab-loading {
    display: flex; align-items: center; gap: 8px; color: #777; font-size: 13px; padding: 14px 0;
}
.wab-booking-wrapper .wab-spinner {
    width: 16px; height: 16px; border: 2px solid #ddd;
    border-top-color: #2271b1; border-radius: 50%;
    animation: wab-spin .6s linear infinite; flex-shrink: 0;
}
@keyframes wab-spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 480px) {
    .wab-booking-wrapper .wab-services-grid { grid-template-columns: 1fr 1fr; }
    .wab-booking-wrapper .wab-field-group input,
    .wab-booking-wrapper .wab-field-group select,
    .wab-booking-wrapper .wab-field-group textarea { max-width: 100%; }
}
