.rsvp-booking-widget {
    max-width: 560px;
    margin: 0 auto;
    font-family: inherit;
}
.rsvp-step { margin-bottom: 28px; }
.rsvp-step h3 { margin-bottom: 12px; font-size: 17px; }

.rsvp-type-options, .rsvp-payment-options { display:flex; gap:12px; flex-wrap:wrap; }
.rsvp-radio-card {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    display:flex;
    align-items:center;
    gap:8px;
    transition: border-color .15s ease;
}
.rsvp-radio-card input { accent-color: #1d2327; }
.rsvp-radio-card:has(input:checked) { border-color: #1d2327; background:#f7f7f7; }

.rsvp-slots-list { display:grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap:10px; }
.rsvp-slot-option {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align:center;
    cursor:pointer;
}
.rsvp-slot-option.selected { border-color:#1d2327; background:#f7f7f7; font-weight:600; }

.rsvp-field { display:flex; flex-direction:column; gap:6px; margin-bottom:16px; font-weight:600; }
.rsvp-field input { padding:10px; border-radius:8px; border:1px solid #ccc; font-weight:400; font-size:15px; }
.rsvp-field small { font-weight:400; color:#666; }

.rsvp-price-box {
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#f2f2f2;
    padding:16px;
    border-radius:10px;
    font-size:18px;
    margin-top:10px;
}

.rsvp-submit-btn {
    width:100%;
    padding:14px;
    background:#1d2327;
    color:#fff;
    border:none;
    border-radius:8px;
    font-size:16px;
    cursor:pointer;
    margin-top:10px;
}
.rsvp-submit-btn:hover { background:#000; }
.rsvp-submit-btn:disabled { opacity:.6; cursor:not-allowed; }

.rsvp-notice { margin-top:10px; padding:10px; border-radius:6px; }
.rsvp-notice.error { background:#fdeaea; color:#a10000; }
.rsvp-notice.success { background:#eafaf0; color:#0a6b32; }

.rsvp-balance-options { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:8px; }

/* ---- Écran de confirmation final ---- */
.rsvp-confirm { text-align:center; padding:14px 6px; }
.rsvp-confirm-check {
    width:56px; height:56px; margin:0 auto 12px; border-radius:50%;
    background:#25d366; color:#fff; font-size:30px; line-height:56px;
}
.rsvp-confirm h3 { margin:0 0 8px; font-size:18px; }
.rsvp-confirm p { margin:6px 0; color:#444; }
.rsvp-confirm-home { display:inline-block; margin-top:8px; color:#1d2327; text-decoration:underline; }

/* ---- Validation : feedback visuel ---- */
.rsvp-field-error input,
.rsvp-field-error select,
.rsvp-field-error .rsvp-phone-group {
    border-color:#e02b2b !important;
    background:#fff6f6;
}
.rsvp-field-error-msg { display:none; color:#c00; font-weight:400; font-size:13px; margin-top:4px; }
.rsvp-field-error .rsvp-field-error-msg { display:block; }

/* ---- Champ téléphone avec indicatif ---- */
.rsvp-phone-group { display:flex; gap:8px; }
.rsvp-phone-country {
    flex:0 0 auto;
    max-width:45%;
    padding:10px;
    border-radius:8px;
    border:1px solid #ccc;
    font-weight:400;
    font-size:15px;
    background:#fff;
}
.rsvp-phone-group input { flex:1 1 auto; }

/* ---- Récapitulatif final ---- */
.rsvp-recap {
    border:1px solid #e2e2e2;
    border-radius:12px;
    padding:18px;
    margin-top:18px;
    background:#fafafa;
}
.rsvp-recap-banner {
    background:#fff4e5;
    border:1px solid #ffd8a8;
    color:#8a5300;
    border-radius:8px;
    padding:12px 14px;
    margin-bottom:16px;
    font-size:14px;
    line-height:1.45;
}
.rsvp-recap-title { margin:0 0 12px; font-size:16px; }
.rsvp-recap-grid { display:flex; flex-direction:column; gap:6px; }
.rsvp-recap-row {
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:6px 0;
    border-bottom:1px dashed #e6e6e6;
    font-size:14px;
}
.rsvp-recap-lbl { color:#666; font-weight:400; }
.rsvp-recap-val { font-weight:600; text-align:right; }
.rsvp-recap-total { border-bottom:none; margin-top:6px; font-size:16px; }
.rsvp-recap-total .rsvp-recap-lbl,
.rsvp-recap-total .rsvp-recap-val { color:#1d2327; font-weight:700; }

.rsvp-cgv {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    margin-top:14px;
    font-size:14px;
    font-weight:400;
}
.rsvp-cgv input { accent-color:#1d2327; }
.rsvp-cgv.rsvp-field-error span:first-of-type { color:#c00; }

/* ---- Actions finales : Téléphone / WhatsApp / Confirmer ---- */
.rsvp-final-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:stretch; margin-top:14px; }
.rsvp-final-actions .rsvp-submit-btn { flex:1 1 100%; margin-top:0; }
.rsvp-btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:12px 16px;
    border-radius:8px;
    border:none;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    text-decoration:none;
}
.rsvp-btn-phone { background:#1d2327; color:#fff; flex:1 1 45%; }
.rsvp-btn-phone:hover { background:#000; color:#fff; }
.rsvp-btn-whatsapp { background:#25d366; color:#fff; flex:1 1 45%; }
.rsvp-btn-whatsapp:hover { background:#1ebe5b; }

/* ---- Wizard : sous-étapes et titres ---- */
.rsvp-step-title { margin:4px 0 14px; font-size:18px; }
.rsvp-substep { margin-bottom:22px; }
.rsvp-substep h4 { margin:0 0 10px; font-size:15px; }

/* ---- Indicateurs de progression ---- */
.rsvp-progress { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:24px; }
.rsvp-progress-item { display:flex; align-items:center; gap:8px; opacity:.5; }
.rsvp-progress-item.active, .rsvp-progress-item.done { opacity:1; }
.rsvp-progress-num {
    width:26px; height:26px; border-radius:50%;
    display:inline-flex; align-items:center; justify-content:center;
    background:#ddd; color:#333; font-size:13px; font-weight:700;
}
.rsvp-progress-item.active .rsvp-progress-num,
.rsvp-progress-item.done .rsvp-progress-num { background:#1d2327; color:#fff; }
.rsvp-progress-label { font-size:13px; font-weight:600; }
.rsvp-progress-sep { width:36px; height:2px; background:#ddd; }

/* ---- Wizard : navigation ---- */
.rsvp-wizard-nav { margin-top:18px; }
.rsvp-next-btn {
    width:100%; padding:14px; background:#1d2327; color:#fff; border:none;
    border-radius:8px; font-size:16px; cursor:pointer;
}
.rsvp-next-btn:hover { background:#000; }
.rsvp-next-btn:disabled { opacity:.5; cursor:not-allowed; }
.rsvp-back-btn {
    background:none; border:none; color:#555; cursor:pointer;
    font-size:14px; text-decoration:underline; padding:6px 0;
}

/* ---- Calendrier visuel ---- */
.rsvp-calendar { border:1px solid #e2e2e2; border-radius:12px; padding:12px; }
.rsvp-cal-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.rsvp-cal-title { font-weight:700; font-size:15px; text-transform:capitalize; }
.rsvp-cal-nav {
    width:34px; height:34px; border:1px solid #ccc; background:#fff;
    border-radius:8px; font-size:18px; line-height:1; cursor:pointer;
}
.rsvp-cal-nav:hover { background:#f2f2f2; }
.rsvp-cal-nav:disabled { opacity:.35; cursor:not-allowed; }
.rsvp-cal-weekdays, .rsvp-cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.rsvp-cal-weekdays { margin-bottom:4px; }
.rsvp-cal-weekdays span { text-align:center; font-size:12px; color:#888; font-weight:600; }
.rsvp-cal-loading { grid-column:1 / -1; text-align:center; color:#888; padding:24px 0; }

.rsvp-cal-day {
    position:relative; aspect-ratio:1 / 1; min-height:40px;
    border:1px solid #e2e2e2; border-radius:8px; background:#fff;
    display:flex; align-items:center; justify-content:center;
    font-size:14px; cursor:pointer; padding:0; color:#1d2327;
}
.rsvp-cal-day.empty { border:none; background:transparent; cursor:default; }
.rsvp-cal-day.available:hover { border-color:#1d2327; background:#f7f7f7; }
.rsvp-cal-day.selected { border-color:#1d2327; background:#1d2327; color:#fff; font-weight:700; }
.rsvp-cal-day.full, .rsvp-cal-day.closed { cursor:not-allowed; color:#bbb; background:#fafafa; }
.rsvp-cal-day.full { background:#fdf3f3; }
.rsvp-cal-day.closed { background:#f3f3f3; }
.rsvp-cal-day:disabled { pointer-events:none; }
.rsvp-cal-num { line-height:1; }
.rsvp-cal-icon { position:absolute; bottom:2px; right:3px; font-size:11px; line-height:1; }

.rsvp-cal-legend { display:flex; flex-wrap:wrap; gap:12px; margin-top:12px; font-size:12px; color:#666; }
.rsvp-leg { display:inline-flex; align-items:center; gap:5px; }
.rsvp-dot { width:12px; height:12px; border-radius:50%; display:inline-block; border:1px solid #ccc; }
.rsvp-dot-available { background:#fff; }
.rsvp-dot-full { background:#fdf3f3; border-color:#e6b0b0; }
.rsvp-dot-closed { background:#e6e6e6; }

/* ---- Nombre de personnes (2 + supplément) ---- */
.rsvp-persons-options { display:flex; flex-direction:column; gap:8px; }
.rsvp-persons-options .rsvp-radio-card { justify-content:flex-start; }
.rsvp-persons-supplement { margin-top:8px; font-weight:600; color:#0a6b32; }

.rsvp-field-label { font-weight:600; }

@media (max-width: 480px) {
    .rsvp-slots-list { grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); }
    .rsvp-btn-phone, .rsvp-btn-whatsapp { flex:1 1 100%; }
    .rsvp-progress-label { display:none; }
    .rsvp-progress-sep { width:24px; }
    .rsvp-cal-day { min-height:36px; font-size:13px; }
}
