/* Coworking Booking — Frontend styles */
.cwb-booking-wrap { max-width: 640px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

/* Steps bar */
.cwb-steps-bar { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 28px; }
.cwb-step-dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #ddd; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #aaa; background: #fff; position: relative; z-index: 1; }
.cwb-step-dot::after { content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%); width: 28px; height: 2px; background: #ddd; z-index: 0; }
.cwb-step-dot:last-child::after { display: none; }
.cwb-step-dot.active { border-color: #1D9E75; color: #1D9E75; }
.cwb-step-dot.done   { border-color: #1D9E75; background: #1D9E75; color: #fff; }

.cwb-step-title { font-size: 17px; font-weight: 600; margin: 0 0 18px; color: #222; }

/* Room cards */
.cwb-rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cwb-room-card { border: 2px solid #e0e0e0; border-radius: 10px; padding: 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s; position: relative; overflow: hidden; }
.cwb-room-card:hover { border-color: #aaa; }

/* Badge par défaut : couleur de la salle (via style inline) */
.cwb-room-badge { width: 100%; height: 4px; border-radius: 2px; margin-bottom: 10px; }

/* Première carte (Grand Bureau) : badge bleu foncé */
.cwb-rooms > .cwb-room-card:nth-child(1) .cwb-room-badge { background: #1A3A5C !important; }

/* Deuxième carte (Petit Bureau) : badge vert pâle */
.cwb-rooms > .cwb-room-card:nth-child(2) .cwb-room-badge { background: #5BA888 !important; }

/* Carte sélectionnée : badge vert, bordure + ombre rouge #DD3757 */
.cwb-room-card.selected { border-color: #DD3757; box-shadow: 0 0 0 3px rgba(221,55,87,.13); }
.cwb-room-card.selected .cwb-room-badge { background: #5BA888 !important; }

/* Boutons de durée sélectionnés : couleur #DD3757 */
.cwb-dur-btn.selected { border-color: #DD3757; background: #fff6f8; }
.cwb-dur-btn.selected .cwb-dur-name { color: #DD3757; }
.cwb-dur-price-display { font-size: 20px; font-weight: 700; color: #DD3757; text-align: center; margin: 4px 0 16px; min-height: 28px; }

/* Focus champs : #DD3757 */
.cwb-field input:focus, .cwb-field select:focus, .cwb-field textarea:focus { outline: none; border-color: #DD3757; }

/* Résumé total : #DD3757 */
.cwb-sum-total-price { color: #DD3757; }

/* Steps actifs/done : garder vert pour la progression */
.cwb-room-info strong { display: block; font-size: 14px; margin-bottom: 4px; }
.cwb-capacity { font-size: 12px; color: #888; display: block; margin-bottom: 10px; }
.cwb-room-prices { font-size: 12px; color: #555; line-height: 1.9; }
.cwb-room-prices span { font-weight: 700; color: #222; font-size: 14px; }

/* Duration buttons */
.cwb-durations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.cwb-dur-btn { border: 2px solid #e0e0e0; border-radius: 8px; padding: 12px 8px; cursor: pointer; background: #fff; text-align: center; transition: all .12s; display: flex; flex-direction: column; gap: 4px; }
.cwb-dur-btn:hover { border-color: #aaa; }
.cwb-dur-name { font-size: 13px; font-weight: 600; color: #333; }
.cwb-dur-hint { font-size: 11px; color: #888; line-height: 1.3; }

/* GCal notice */
.cwb-gcal-notice { background: #e8f4fd; border-left: 3px solid #185FA5; border-radius: 4px; padding: 8px 12px; font-size: 12px; color: #185FA5; margin-top: 8px; }

/* Fields */
.cwb-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.cwb-fields-2 { }
.cwb-field { display: flex; flex-direction: column; gap: 5px; }
.cwb-full { grid-column: 1 / -1; }
.cwb-field label { font-size: 12px; font-weight: 600; color: #555; }
.cwb-field-note { font-size: 11px; color: #aaa; margin-top: 2px; }
.cwb-field input, .cwb-field select, .cwb-field textarea {
  border: 1.5px solid #ddd; border-radius: 6px; padding: 8px 10px;
  font-size: 14px; font-family: inherit; transition: border-color .12s;
}

/* Summary */
.cwb-summary { background: #f8f8f8; border-radius: 10px; padding: 18px 20px; }
.cwb-sum-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.cwb-sum-row:last-of-type { border-bottom: none; }
.cwb-sum-label { color: #666; }
.cwb-sum-val { font-weight: 600; color: #222; }
.cwb-sum-total { display: flex; justify-content: space-between; padding: 14px 0 0; font-size: 18px; font-weight: 700; border-top: 2px solid #DD3757; margin-top: 8px; }

/* Nav buttons */
.cwb-nav { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; }
.cwb-btn { padding: 11px 22px; border-radius: 7px; border: none; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .12s; }
.cwb-btn-prev   { background: #f0f0f0; color: #444; }
.cwb-btn-prev:hover { background: #e0e0e0; }
.cwb-btn-next   { background: #1D9E75; color: #fff; }
.cwb-btn-next:hover { background: #0F6E56; }
.cwb-btn-next:disabled { background: #ccc; cursor: default; }
.cwb-btn-submit { background: #1D9E75; color: #fff; }
.cwb-btn-submit:hover { background: #0F6E56; }

/* Notices */
.cwb-error   { background: #fff3cd; border-left: 4px solid #f59e0b; padding: 10px 14px; border-radius: 4px; font-size: 13px; margin-top: 12px; color: #856404; }
.cwb-loading { text-align: center; padding: 10px; color: #888; font-size: 13px; }
.cwb-slot-blocked { color: #ccc; font-style: italic; pointer-events: none; }

/* Slot selector */
.cwb-field select#cwb-start-time { width: 100%; }
option.cwb-slot-blocked { color: #c0392b; background: #fdf0f0; }

/* Availability legend */
.cwb-avail-legend { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: #666; }
.cwb-avail-legend span { display: flex; align-items: center; gap: 5px; }
.cwb-avail-dot { width: 10px; height: 10px; border-radius: 50%; }
.cwb-avail-dot.free   { background: #1D9E75; }
.cwb-avail-dot.busy   { background: #e74c3c; }

/* GCal notice */
.cwb-gcal-notice { background: #e8f4fd; border-left: 3px solid #185FA5; border-radius: 4px; padding: 8px 12px; font-size: 12px; color: #185FA5; margin-top: 8px; }
/* HT note in summary */
.cwb-ht-note { font-size: 11px; color: #aaa; margin: 4px 0 0; text-align: right; font-style: italic; }

/* Success screen */
.cwb-success { text-align: center; padding: 32px 20px; }
.cwb-success-icon { font-size: 52px; margin-bottom: 12px; }
.cwb-success h3 { font-size: 22px; margin: 0 0 10px; color: #1D9E75; }
.cwb-success p { color: #555; margin-bottom: 20px; }

@media (max-width: 480px) {
  .cwb-rooms, .cwb-durations, .cwb-fields { grid-template-columns: 1fr; }
  .cwb-full { grid-column: 1; }
}
