/* =============================================
   Restaurant Reservations – Public Styles
   ============================================= */
#rr-booking-wrapper {
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Steps */
.rr-step { animation: rrFadeIn .3s ease; }
@keyframes rrFadeIn { from {opacity:0;transform:translateY(8px)} to {opacity:1;transform:none} }

.rr-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #1a1a2e;
}
.rr-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: #e63946;
  color: #fff;
  border-radius: 50%;
  font-size: .85rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Form */
.rr-form-row { display: flex; gap: 16px; flex-wrap: wrap; border: 1px solid #cccccc; padding: 25px; }
.rr-form-group { flex: 1; min-width: 200px; margin-bottom: 16px; }
.rr-form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #444;
}
.rr-form-group input,
.rr-form-group select,
.rr-form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: .95rem;
  transition: border-color .2s;
  box-sizing: border-box;
  height: 40px;
}
.rr-form-group input:focus,
.rr-form-group select:focus,
.rr-form-group textarea:focus {
  outline: none;
  border-color: #e63946;
  box-shadow: 0 0 0 3px rgba(230,57,70,.12);
}

/* Shift radio buttons */
.rr-radio-group { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.rr-radio-card {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
  font-weight: 600;
  font-size: .9rem;
}
.rr-radio-card:hover { border-color: #e63946; }
.rr-radio-card.active { border-color: #e63946; background: #e63946; color: #fff; }

/* Buttons */
.rr-btn {
  display: inline-block;
  padding: 11px 26px;
  border: none;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  margin-top: 8px;
}
.rr-btn-primary { background: #e63946; color: #fff; }
.rr-btn-primary:hover:not(:disabled) { background: #c1121f; }
.rr-btn-primary:disabled { background: #ccc; cursor: not-allowed; }
.rr-btn-secondary { background: #f0f0f0; color: #333; }
.rr-btn-secondary:hover { background: #ddd; }

.rr-step-nav { display: flex; gap: 12px; margin-top: 12px; }

/* Map */
#rr-map-container { margin-bottom: 16px; }
#rr-map-canvas-wrap {
  position: relative;
  overflow: auto;
  border: 2px solid #eee;
  border-radius: 8px;
  background: #fafafa;
}
#rr-map-canvas {
  position: relative;
}
#rr-map-canvas img.rr-map-bg {
  display: block;
  width: 100%;
  pointer-events: none;
}
.rr-table-marker {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-sizing: border-box;
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  border: 2px solid rgba(0,0,0,.2);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  color: #fff;
}
.rr-table-marker.available  { background: rgba(39,174,96,.85); }
.rr-table-marker.reserved   { background: rgba(231,76,60,.75); cursor: not-allowed; }
.rr-table-marker.unavailable{ background: rgba(180,180,180,.75); cursor: not-allowed; }
.rr-table-marker.selected   { background: #1a1a2e; box-shadow: 0 0 0 3px #e63946, 0 4px 12px rgba(0,0,0,.3); transform: scale(1.08); }
.rr-table-marker.circle     { border-radius: 50%; }

.rr-selected-info {
  margin: 8px 0 0;
  font-weight: 600;
  color: #1a1a2e;
  min-height: 20px;
}

/* Legend */
.rr-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.rr-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: #555;
}
.rr-legend-item::before {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 3px;
}
.rr-avail::before    { background: rgba(39,174,96,.85); }
.rr-reserved::before { background: rgba(231,76,60,.75); }
.rr-selected::before { background: #1a1a2e; }

/* Summary box */
.rr-summary-box {
  background: #f8f8f8;
  border-left: 4px solid #e63946;
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: .9rem;
  line-height: 1.8;
}
.rr-summary-box strong { color: #1a1a2e; }

/* Success */
.rr-success { text-align: center; padding: 40px 20px; }
.rr-success-icon { font-size: 3.5rem; margin-bottom: 10px; }
.rr-success h3 { font-size: 1.5rem; color: #1a1a2e; margin-bottom: 8px; }
.rr-success p { color: #666; margin-bottom: 20px; }

/* Loading */
#rr-loading { text-align: center; padding: 20px; }
.rr-spinner {
  display: inline-block;
  width: 36px; height: 36px;
  border: 4px solid #eee;
  border-top-color: #e63946;
  border-radius: 50%;
  animation: rrSpin .7s linear infinite;
}
@keyframes rrSpin { to { transform: rotate(360deg); } }

/* Error */
.rr-error {
  background: #fde;
  border: 1.5px solid #e63946;
  border-radius: 6px;
  padding: 12px 16px;
  color: #c1121f;
  font-weight: 600;
  margin-top: 10px;
}

/* No-map fallback */
#rr-no-map {
  padding: 20px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  text-align: center;
  color: #888;
}
#rr-no-map select { max-width: 300px; margin-top: 8px; }

@media (max-width: 500px) {
  .rr-step-nav { flex-direction: column; }
  .rr-btn { width: 100%; text-align: center; }
}
