/* Miami Master Pools Appointments - Frontend base */

/* Wrapper general */
.mmp-booking-widget {
  max-width: 980px;
  margin: 40px auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Card principal */
.mmp-booking-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

/* Header de pasos */
.mmp-booking-steps {
  display: flex;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  background: #f9fafb;
}

.mmp-booking-step {
  flex: 1;
  padding: 14px 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  position: relative;
}

.mmp-booking-step-number {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.mmp-booking-step-label {
  white-space: nowrap;
}

/* Estados de los pasos */
.mmp-booking-step.is-active {
  color: #111827;
  background: #ffffff;
}

.mmp-booking-step.is-active .mmp-booking-step-number {
  border-color: #0ea5e9;
  background: #0ea5e9;
  color: #ffffff;
}

.mmp-booking-step.is-complete .mmp-booking-step-number {
  border-color: #22c55e;
  background: #22c55e;
  color: #ffffff;
}

/* Body (contenido de pasos) */
.mmp-booking-body {
  padding: 22px 24px 24px;
}

/* Pasos */
.mmp-step {
  display: none;
}

.mmp-step.is-active {
  display: block;
}

/* Step 1: servicios */
.mmp-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .mmp-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .mmp-services-grid {
    grid-template-columns: 1fr;
  }
}

.mmp-service-card {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 14px 14px 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease, background 0.2s ease;
  background: #ffffff;
}

.mmp-service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.mmp-service-name {
  font-weight: 600;
  font-size: 14px;
  color: #111827;
}

.mmp-service-duration {
  font-size: 12px;
  color: #6b7280;
}

.mmp-service-price {
  font-weight: 600;
  font-size: 14px;
  color: #0ea5e9;
}

.mmp-service-desc {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.mmp-service-card:hover {
  border-color: #0ea5e9;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
  transform: translateY(-1px);
}

.mmp-service-card.is-selected {
  border-color: #0ea5e9;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
  box-shadow: 0 12px 28px rgba(8, 47, 73, 0.25);
}

/* Step footer (botones siguiente/anterior) */
.mmp-step-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 10px;
}

.mmp-btn {
  border-radius: 999px;
  border: none;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease, color 0.2s ease;
}

.mmp-btn-primary {
  background: #0ea5e9;
  color: #ffffff;
}

.mmp-btn-primary:hover {
  background: #0284c7;
  box-shadow: 0 8px 18px rgba(8, 47, 73, 0.35);
}

.mmp-btn-secondary {
  background: #f3f4f6;
  color: #111827;
}

.mmp-btn-secondary:hover {
  background: #e5e7eb;
}

.mmp-btn:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

/* Step 2: calendario */
.mmp-calendar-layout {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.mmp-calendar-card {
  flex: 1 1 340px;
}

.mmp-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mmp-calendar-month {
  font-weight: 600;
  font-size: 16px;
  color: #1f2937;
}

.mmp-calendar-nav-btn {
  border: none;
  background: transparent;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.mmp-calendar-nav-btn:hover {
  background: #e0f2fe;
  color: #0ea5e9;
}

.mmp-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-bottom: 6px;
}

.mmp-calendar-weekdays span {
  text-align: center;
}

.mmp-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.mmp-day-placeholder {
  width: 32px;
  height: 32px;
}

.mmp-day {
  border-radius: 999px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.mmp-day.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.mmp-day:hover {
  background: rgba(14, 165, 233, 0.1);
}

.mmp-day.is-today {
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.45);
}

.mmp-day.is-selected {
  background: #0ea5e9;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.35);
}

.mmp-day.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.mmp-timezone-label {
  margin-top: 10px;
  font-size: 11px;
  color: #9ca3af;
}

/* Step 3: horarios */
.mmp-slots-card {
  flex: 1 1 260px;
}

.mmp-selected-date-label {
  font-weight: 600;
  font-size: 14px;
  color: #111827;
  margin-bottom: 8px;
}

.mmp-slots-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mmp-slot-btn {
  border-radius: 999px;
  border: 1px solid #0ea5e9;
  background: #ffffff;
  padding: 6px 12px;
  font-size: 13px;
  color: #0369a1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease;
}

.mmp-slot-btn.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.mmp-slot-btn:hover {
  background: rgba(14, 165, 233, 0.06);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.mmp-slot-btn.is-selected {
  background: #0ea5e9;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

/* Step 4: datos */
.mmp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

@media (max-width: 768px) {
  .mmp-form-grid {
    grid-template-columns: 1fr;
  }
}

.mmp-form-group label {
  display: block;
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 4px;
}

.mmp-form-group input,
.mmp-form-group textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mmp-form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.mmp-form-group input:focus,
.mmp-form-group textarea:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.25);
  outline: none;
}

/* Step 5: resumen */
.mmp-summary {
  background: #f9fafb;
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 14px;
  color: #374151;
}

.mmp-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 12px;
}

.mmp-summary-label {
  font-weight: 500;
  color: #6b7280;
}

.mmp-summary-value {
  font-weight: 600;
}

/* Mensajes */
.mmp-message {
  margin-top: 10px;
  font-size: 13px;
}

.mmp-message.is-error {
  color: #b91c1c;
}

.mmp-message.is-success {
  color: #15803d;
}

/* Loading */
.mmp-booking-loading {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
  font-size: 14px;
}