.kb-booking {
    --kb-acc: #F43301;
    --kb-acc-soft: rgba(244, 51, 1, .08);
    --kb-fg: #26211e;
    --kb-muted: #9a938c;
    --kb-line: #ece7e2;
    --kb-soft: #faf7f4;
    max-width: 940px;
    margin: 30px auto;
    background: #fff;
    border: 1px solid var(--kb-line);
    border-radius: 14px;
    box-shadow: 0 18px 50px -28px rgba(60, 30, 20, .35);
    color: var(--kb-fg);
    overflow: hidden;
    animation: kb-rise .5s ease both;
}
.kb-booking * { box-sizing: border-box; }

.kb-booking-grid { display: grid; grid-template-columns: minmax(0, 400px) 1fr; }

/* ---- Colonne gauche : calendrier ---- */
.kb-cal {
    padding: 30px 30px 34px;
    border-right: 1px solid var(--kb-line);
    background: var(--kb-soft);
}
.kb-cal-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 22px;
}
.kb-cal-title {
    font-size: 20px; font-weight: 600; letter-spacing: .2px;
    text-transform: capitalize;
}
.kb-cal-nav {
    width: 34px !important; height: 34px !important;
    border: 1px solid var(--kb-line) !important;
    background: #fff !important; border-radius: 9px !important; cursor: pointer !important;
    font-size: 18px; line-height: 1; color: var(--kb-fg) !important;
    transition: all .15s ease;
}
.kb-cal-nav:hover:not(:disabled) { background: #fff !important; border-color: var(--kb-acc) !important; color: var(--kb-acc) !important; }
.kb-cal-nav:disabled { opacity: .3 !important; cursor: default !important; }

.kb-cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 8px; }
.kb-cal-weekdays span {
    text-align: center; font-size: 11px; text-transform: uppercase;
    letter-spacing: .08em; color: var(--kb-muted); font-weight: 600;
}

.kb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.kb-day {
    aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
    font-size: 14px; border: 0 !important; background: transparent !important; border-radius: 9px !important;
    cursor: pointer !important; color: var(--kb-fg) !important; position: relative;
    transition: all .15s ease;
}
.kb-day.is-empty { visibility: hidden; }
.kb-day:disabled { color: #cdc6bf !important; cursor: default !important; }
.kb-day:not(:disabled):hover { background: var(--kb-acc-soft) !important; color: var(--kb-acc) !important; }
.kb-day.is-today::after {
    content: ""; position: absolute; bottom: 6px;
    width: 4px; height: 4px; border-radius: 50%; background: var(--kb-acc);
}
.kb-day.is-selected { background: var(--kb-acc) !important; color: #fff !important; }
.kb-day.is-selected.is-today::after { background: #fff; }

/* ---- Colonne droite : panneau ---- */
.kb-panel { padding: 30px 34px 34px; display: flex; flex-direction: column; min-width: 0; }
.kb-panel-title {
    font-size: 22px; font-weight: 600; margin: 0 0 4px;
}
.kb-panel-date { margin: 0 0 22px; font-size: 14px; color: var(--kb-muted); }
.kb-panel-date::first-letter { text-transform: uppercase; }

.kb-slots {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 10px;
}
.kb-slot {
    border: 1px solid var(--kb-line) !important; background: #fff !important; color: var(--kb-fg) !important;
    padding: 10px 6px; font-size: 14px; cursor: pointer !important; border-radius: 9px !important;
    transition: all .15s ease; text-align: center;
    animation: kb-rise .35s ease both;
}
.kb-slot:hover { border-color: var(--kb-acc) !important; color: var(--kb-acc) !important; background: #fff !important; }
.kb-slot.is-active { background: var(--kb-acc) !important; color: #fff !important; border-color: var(--kb-acc) !important; }

.kb-booking-hint { color: var(--kb-muted); font-size: 14px; margin: 6px 0 0; }

/* ---- Formulaire ---- */
.kb-booking-form { margin-top: 22px; border-top: 1px solid var(--kb-line); padding-top: 20px; }
.kb-booking-selected { font-size: 14px; font-weight: 600; color: var(--kb-acc); margin-bottom: 16px; }
.kb-field { margin-bottom: 12px; }
.kb-booking-form input,
.kb-booking-form textarea {
    width: 100%; border: 1px solid var(--kb-line); background: #fff;
    padding: .7em .85em; font-size: 14px; color: var(--kb-fg);
    outline: none; border-radius: 9px; font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.kb-booking-form textarea { min-height: 84px; resize: vertical; }
.kb-booking-form input:focus,
.kb-booking-form textarea:focus { border-color: var(--kb-acc); box-shadow: 0 0 0 3px var(--kb-acc-soft); }

.kb-booking-submit {
    width: 100%; margin-top: 4px; background: var(--kb-acc) !important; color: #fff !important;
    border: none !important; padding: 13px 24px; font-size: 15px; font-weight: 600;
    cursor: pointer !important; border-radius: 9px !important; transition: opacity .15s ease;
}
.kb-booking-submit:hover { background: var(--kb-acc) !important; color: #fff !important; opacity: .92; }
.kb-booking-submit:disabled { opacity: .5; cursor: not-allowed !important; }

.kb-hp { position: absolute !important; left: -9999px !important; }
.kb-booking-message { margin-top: 14px; font-size: 14px; font-weight: 600; }
.kb-booking-message.is-error { color: var(--kb-acc); }
.kb-booking-message.is-ok { color: #166534; }

/* ---- État de succès ---- */
.kb-success { padding: 54px 34px; text-align: center; animation: kb-rise .4s ease both; }
.kb-success-mark {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--kb-acc-soft); color: var(--kb-acc);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin: 0 auto 18px;
}
.kb-success h3 { font-size: 22px; margin: 0 0 8px; }
.kb-success p { color: var(--kb-muted); font-size: 15px; margin: 0 auto; max-width: 420px; line-height: 1.5; }

@keyframes kb-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- Responsive ---- */
@media (max-width: 680px) {
    .kb-booking-grid { grid-template-columns: 1fr; }
    .kb-cal { border-right: 0; border-bottom: 1px solid var(--kb-line); }
}
