/* VO4U Boekingen v1.0.0 */

.vo4u-bk {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
    line-height: 1.6;
}

.vo4u-bk__header {
    text-align: center;
    margin-bottom: 40px;
}
.vo4u-bk__title {
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a2e !important;
}
.vo4u-bk__subtitle {
    color: #666;
    margin: 0;
}

/* === STEPS === */
.vo4u-bk__step {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
}
.vo4u-bk__step-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    font-size: 1.2em;
    font-weight: 700;
    color: #1a1a2e !important;
}
.vo4u-bk__step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}
.vo4u-bk__back {
    margin-left: auto;
    background: none;
    border: none;
    color: #2271b1;
    cursor: pointer;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background .15s;
}
.vo4u-bk__back:hover {
    background: #f0f6ff;
}

/* === RESOURCES === */
.vo4u-bk__resources {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.vo4u-bk__resource-card {
    text-align: left;
    background: #fff !important;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #1a1a2e !important;
}
.vo4u-bk__resource-card:hover {
    background: #fff !important;
    border-color: var(--accent, #2271b1);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    color: #1a1a2e !important;
}
.vo4u-bk__resource-card.selected {
    background: #f8fbff !important;
    border-color: var(--accent, #2271b1);
}
.vo4u-bk__resource-icon {
    width: 48px;
    height: 48px;
    background: rgba(34, 113, 177, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent, #2271b1);
}
.vo4u-bk__resource-info h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e !important;
}
.vo4u-bk__resource-type {
    margin: 0 0 6px;
    font-size: 13px;
    color: #666;
}
.vo4u-bk__resource-desc {
    margin: 0;
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* === DATE PICKER === */
.vo4u-bk__date-picker input[type="date"] {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
}
.vo4u-bk__date-picker input[type="date"]:focus {
    outline: none;
    border-color: #2271b1;
}

/* === SELECTED INFO === */
.vo4u-bk__selected-info {
    background: #f0f6ff;
    border-left: 4px solid #2271b1;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}
.vo4u-bk__selected-info strong {
    color: #1a1a2e;
}

/* === INFO BOX === */
.vo4u-bk__info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff9e6;
    border: 1px solid #ffe8a1;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #5a4a00;
}
.vo4u-bk__info-box svg {
    flex-shrink: 0;
    color: #d4a000;
    margin-top: 2px;
}

/* === SLOTS === */
.vo4u-bk__slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
}
.vo4u-bk__slot {
    padding: 12px 8px;
    background: #f8f9fa;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    transition: all .15s;
    font-family: inherit;
}
.vo4u-bk__slot:hover:not(:disabled) {
    border-color: #2271b1;
    background: #f0f6ff;
}
.vo4u-bk__slot.selected {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}
.vo4u-bk__slot.in-range {
    background: #d0e4f7;
    border-color: #2271b1;
    color: #1a1a2e;
}
.vo4u-bk__slot:disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
}
.vo4u-bk__loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: #999;
}

.vo4u-bk__selection {
    margin-top: 20px;
    padding: 14px 16px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
}
.vo4u-bk__selection h4 {
    margin: 0 0 6px;
    color: #00a676;
    font-size: 14px;
}
.vo4u-bk__selection p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

/* === SUMMARY === */
.vo4u-bk__summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.vo4u-bk__summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}
.vo4u-bk__summary-row strong {
    color: #1a1a2e;
}

/* === FIELDS === */
.vo4u-bk__field {
    margin-bottom: 16px;
}
.vo4u-bk__field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}
.vo4u-bk__field textarea,
.vo4u-bk__field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}
.vo4u-bk__field textarea:focus,
.vo4u-bk__field input:focus {
    outline: none;
    border-color: #2271b1;
}

/* === BUTTONS === */
.vo4u-bk__btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    text-align: center;
}
.vo4u-bk__btn--primary {
    background: #2271b1;
    color: #fff;
}
.vo4u-bk__btn--primary:hover {
    background: #135e96;
}
.vo4u-bk__btn--secondary {
    background: #f0f0f1;
    color: #1a1a2e;
}
.vo4u-bk__btn--secondary:hover {
    background: #e0e0e1;
}
.vo4u-bk__btn--danger {
    background: #e74c3c;
    color: #fff;
}
.vo4u-bk__btn--danger:hover {
    background: #c0392b;
}
.vo4u-bk__btn--small {
    padding: 6px 12px;
    font-size: 13px;
}
.vo4u-bk__btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* === SUCCESS === */
.vo4u-bk__success {
    text-align: center;
    padding: 40px 20px;
}
.vo4u-bk__success svg {
    margin-bottom: 16px;
}
.vo4u-bk__success h3 {
    font-size: 1.5em;
    margin: 0 0 8px;
    color: #00a676;
}
.vo4u-bk__success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

/* === NOTICES === */
.vo4u-bk-notice {
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
}
.vo4u-bk-notice--warning {
    background: #fff9e6;
    border: 1px solid #ffe8a1;
    color: #5a4a00;
}
.vo4u-bk-notice--error {
    background: #fee;
    border: 1px solid #fbb;
    color: #c00;
}
.vo4u-bk-notice--success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #00a676;
}

/* === MY BOOKINGS === */
.vo4u-bk--my h3 {
    font-size: 1.1em;
    margin: 24px 0 12px;
    color: #666;
}
.vo4u-bk__empty {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}
.vo4u-bk__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.vo4u-bk__list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 16px 20px;
    gap: 16px;
}
.vo4u-bk__list-item--past {
    opacity: .7;
}
.vo4u-bk__list-main {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}
.vo4u-bk__list-indicator {
    width: 4px;
    height: 40px;
    border-radius: 2px;
    flex-shrink: 0;
}
.vo4u-bk__list-content h4 {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e !important;
}
.vo4u-bk__list-datetime {
    margin: 0;
    font-size: 13px;
    color: #666;
}
.vo4u-bk__list-notes {
    margin: 4px 0 0;
    font-size: 12px;
    color: #888;
    font-style: italic;
}
.vo4u-bk__list-side {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.vo4u-bk__status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}
.vo4u-bk__status--confirmed { background: #e8f5e9; color: #00a676; }
.vo4u-bk__status--pending { background: #fff9e6; color: #d4a000; }
.vo4u-bk__status--cancelled { background: #fee; color: #c00; }
.vo4u-bk__status--rejected { background: #fee; color: #c00; }
.vo4u-bk__cancel-locked {
    font-size: 11px;
    color: #999;
    font-style: italic;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .vo4u-bk { padding: 20px 12px; }
    .vo4u-bk__step { padding: 20px; }
    .vo4u-bk__resources { grid-template-columns: 1fr; }
    .vo4u-bk__list-item { flex-direction: column; align-items: flex-start; }
    .vo4u-bk__success-actions { flex-direction: column; }
}

/* === v1.1.0: Reschedule modal + actions === */

.vo4u-bk__list-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.vo4u-bk__btn--secondary {
    background: #fff;
    color: #333d43;
    border: 1px solid #d4dce0;
}
.vo4u-bk__btn--secondary:hover {
    background: #f6f8f9;
    border-color: #333d43;
}

.vo4u-bk__btn--ghost {
    background: transparent;
    color: #666;
    border: 1px solid transparent;
}
.vo4u-bk__btn--ghost:hover {
    background: #f0f0f0;
    color: #333;
}

/* Modal */
.vo4u-bk-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vo4u-bk-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}
.vo4u-bk-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 92%;
    max-width: 560px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: vo4u-bk-modal-in 0.2s ease;
}
@keyframes vo4u-bk-modal-in {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.vo4u-bk-modal__header {
    padding: 20px 24px;
    border-bottom: 1px solid #eef0f2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.vo4u-bk-modal__header h3 {
    margin: 0;
    font-size: 18px;
    color: #333d43;
}
.vo4u-bk-modal__close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.15s;
}
.vo4u-bk-modal__close:hover {
    background: #f0f0f0;
    color: #333;
}
.vo4u-bk-modal__body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}
.vo4u-bk-modal__info {
    background: #f6f8f9;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 0 0 20px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}
.vo4u-bk-modal__field {
    margin-bottom: 20px;
}
.vo4u-bk-modal__field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333d43;
    font-size: 14px;
}
.vo4u-bk-modal__field input[type="date"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d4dce0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
}
.vo4u-bk-modal__field input[type="date"]:focus {
    outline: none;
    border-color: #61CE70;
    box-shadow: 0 0 0 3px rgba(97, 206, 112, 0.15);
}
.vo4u-bk-modal__hint {
    color: #999;
    font-style: italic;
    font-size: 13px;
    margin: 0;
    padding: 16px 0;
    text-align: center;
}
.vo4u-bk-modal__slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    padding: 4px;
}
.vo4u-bk-slot {
    background: #fff;
    border: 1px solid #d4dce0;
    border-radius: 8px;
    padding: 10px 8px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    color: #333d43;
}
.vo4u-bk-slot:hover {
    border-color: #61CE70;
    background: #f1fbf3;
}
.vo4u-bk-slot.selected {
    background: linear-gradient(180deg, #DCF763 0%, #CEEC8E 100%);
    border-color: #333d43;
    color: #333d43;
    font-weight: 600;
}
.vo4u-bk-modal__error {
    background: #fee;
    color: #c00;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-top: 12px;
}
.vo4u-bk-modal__footer {
    padding: 16px 24px;
    border-top: 1px solid #eef0f2;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #fafbfc;
}

@media (max-width: 640px) {
    .vo4u-bk-modal__dialog { width: 96%; max-height: 96vh; }
    .vo4u-bk-modal__slots-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .vo4u-bk__list-actions { justify-content: flex-start; }
}
