/* ================================================
   THE FRENCH COMPANY LONDON — Widget de réservation
   Inspiré de l'UX FareHarbor
   ================================================ */

/* ——— WIDGET CONTAINER ——— */
.booking-widget {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.11);
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 20px;
}

.booking-widget-header {
  background: #222222;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.booking-widget-header h3 {
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

.booking-badge-test {
  background: #f59e0b;
  color: #000;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
}

/* ——— STEPS INDICATOR ——— */
.booking-steps {
  display: flex;
  background: #f5f5f5;
  border-bottom: 1px solid #eee;
}

.booking-step-dot {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #aaa;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.booking-step-dot::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.3s;
}

.booking-step-dot.active {
  color: #C8102E;
}

.booking-step-dot.active::after {
  background: #C8102E;
}

.booking-step-dot.done {
  color: #2E7D32;
}

.booking-step-dot.done::after {
  background: #2E7D32;
}

/* ——— WIDGET BODY ——— */
.booking-body {
  padding: 20px 22px;
}

/* ——— PRIX AFFICHÉ ——— */
.booking-price-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #fff5f5;
  border: 1px solid rgba(200,16,46,0.15);
  border-radius: 4px;
  margin-bottom: 18px;
}

.booking-price-from {
  font-size: 11px;
  color: #888;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.booking-price-value {
  font-size: 22px;
  font-weight: 800;
  color: #C8102E;
  line-height: 1;
}

.booking-price-person {
  font-size: 10px;
  color: #888;
  font-weight: 500;
}

/* ——— FORM ELEMENTS ——— */
.bw-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 6px;
}

.bw-input,
.bw-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #222;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.bw-input:focus,
.bw-select:focus {
  border-color: #C8102E;
  box-shadow: 0 0 0 3px rgba(200,16,46,0.10);
}

.bw-input::placeholder { color: #aaa; }

.bw-form-group {
  margin-bottom: 14px;
}

/* ——— DATE PICKER ——— */
input[type="date"].bw-input {
  cursor: pointer;
}

/* ——— CRÉNEAUX ——— */
.slots-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.slot-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}

.slot-btn:hover:not(:disabled) {
  border-color: #C8102E;
  background: #fff5f5;
  color: #C8102E;
}

.slot-btn.selected {
  border-color: #C8102E;
  background: #C8102E;
  color: #fff;
}

.slot-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f5f5f5;
}

.slot-time {
  font-weight: 700;
}

.slot-avail {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.75;
}

.slot-avail.low {
  color: #f59e0b;
}

.slot-btn.selected .slot-avail {
  color: rgba(255,255,255,0.8);
}

/* ——— PARTICIPANTS ——— */
.participants-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.participants-row:last-child {
  border-bottom: none;
}

.participants-label {
  flex: 1;
}

.participants-label-main {
  font-size: 13px;
  font-weight: 700;
  color: #222;
}

.participants-label-sub {
  font-size: 11px;
  color: #888;
  font-weight: 500;
}

.participants-price {
  font-size: 13px;
  font-weight: 700;
  color: #C8102E;
  margin-right: 12px;
}

.counter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.counter-btn {
  width: 28px;
  height: 28px;
  border: 1.5px solid #ddd;
  border-radius: 50%;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
  padding: 0;
}

.counter-btn:hover:not(:disabled) {
  border-color: #C8102E;
  color: #C8102E;
}

.counter-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.counter-value {
  font-size: 15px;
  font-weight: 800;
  color: #222;
  min-width: 20px;
  text-align: center;
}

/* ——— RÉCAPITULATIF PRIX ——— */
.booking-total-box {
  background: #f8f8f8;
  border-radius: 4px;
  padding: 14px 16px;
  margin: 14px 0;
}

.booking-total-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

.booking-total-line:last-child {
  margin-bottom: 0;
  font-size: 15px;
  font-weight: 800;
  color: #222;
  padding-top: 8px;
  border-top: 1px solid #e0e0e0;
  margin-top: 6px;
}

.booking-total-line strong {
  color: #C8102E;
}

/* ——— STRIPE ELEMENT ——— */
#stripe-payment-element {
  padding: 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 14px;
  min-height: 44px;
  background: #fff;
}

/* ——— BOUTONS ——— */
.btn-book-primary {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: #C8102E;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-align: center;
  margin-top: 6px;
}

.btn-book-primary:hover:not(:disabled) {
  background: #9E0A22;
}

.btn-book-primary:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-book-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-book-secondary {
  display: block;
  width: 100%;
  padding: 10px 20px;
  background: transparent;
  color: #666;
  border: 1.5px solid #ddd;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  margin-top: 8px;
}

.btn-book-secondary:hover {
  border-color: #C8102E;
  color: #C8102E;
}

/* ——— ÉTATS SPÉCIAUX ——— */
.bw-loading {
  text-align: center;
  padding: 30px 20px;
  color: #888;
}

.bw-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f0f0f0;
  border-top-color: #C8102E;
  border-radius: 50%;
  animation: bw-spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes bw-spin {
  to { transform: rotate(360deg); }
}

.bw-error {
  background: #fff5f5;
  border: 1px solid rgba(200,16,46,0.25);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #C8102E;
  margin-bottom: 12px;
  display: none;
}

.bw-error.visible {
  display: block;
}

.bw-success {
  text-align: center;
  padding: 24px 20px;
}

.bw-success-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.bw-success h4 {
  color: #2E7D32;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.bw-success p {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
  line-height: 1.6;
}

.bw-success .conf-code {
  display: inline-block;
  background: #f0f0f0;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 14px;
  color: #C8102E;
  letter-spacing: 1px;
  margin: 8px 0;
}

/* ——— SÉCURITÉ STRIPE ——— */
.booking-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10px;
  color: #aaa;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-top: 10px;
  text-transform: uppercase;
}

.booking-secure-note svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ——— CAPACITÉ BADGE ——— */
.capacity-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.capacity-badge.available {
  background: #e8f5e9;
  color: #2E7D32;
}

.capacity-badge.low {
  background: #fff3e0;
  color: #E65100;
}

.capacity-badge.full {
  background: #fce4ec;
  color: #C62828;
}

/* ——— RESPONSIVE ——— */
@media (max-width: 991px) {
  .booking-widget {
    margin-top: 30px;
  }
}
