/**
 * Español con Sabor - Booking Wizard Stylesheet
 * File: booking.css
 * Guaranteed 100% Standalone & Mobile Optimized
 */

/* ===================================================
   RESET & BASE SETUP
   =================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #FFF3D6;
  color: #1e293b;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 12px 48px;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* ===================================================
   MAIN CARD WRAPPER
   =================================================== */
.booking-wrapper {
  width: 100%;
  max-width: 880px;
  background: #FFFFFF;
  border-radius: 28px;
  box-shadow: 0 16px 48px rgba(14, 90, 96, 0.12);
  border: 1px solid rgba(14, 90, 96, 0.1);
  overflow: hidden;
  margin: 0 auto;
}

/* ===================================================
   HEADER & TOP BANNER
   =================================================== */
.booking-header {
  background: linear-gradient(135deg, #0E5A60 0%, #166B72 50%, #2A9D8F 100%);
  padding: 28px 20px 24px;
  color: #FFFFFF;
  text-align: center;
  position: relative;
}

.booking-brand-pill {
  display: inline-block;
  background: #F2B705;
  color: #0E5A60;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.booking-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #FFFFFF;
}

.booking-sub {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.45;
}

/* ===================================================
   STEPPER PROGRESS BAR
   =================================================== */
.stepper-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-circle {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.75);
}

.step-circle.active,
.step-item[data-active="true"] .step-circle {
  background: #F2B705 !important;
  color: #0E5A60 !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3) !important;
}

.step-circle.completed {
  background: #2A9D8F !important;
  color: #FFFFFF !important;
}

.step-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}

.step-label.active {
  color: #F2C94C !important;
  font-weight: 800 !important;
}

.step-divider {
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 1px;
}

.mobile-step-indicator {
  display: none;
  font-size: 13px;
  font-weight: 800;
  color: #F2C94C;
  margin-top: 12px;
  letter-spacing: 0.5px;
}

/* ===================================================
   STEP BODY & INNER SECTIONS
   =================================================== */
.booking-body {
  padding: 28px 24px;
  background: rgba(255, 243, 214, 0.2);
  box-sizing: border-box;
}

.step-heading-group {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 22px;
}

.step-heading {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0E5A60;
  margin: 0 0 4px;
}

.step-description {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* ===================================================
   STEP 1: TEACHER SELECTION
   =================================================== */
.any-tutor-card {
  padding: 16px 18px;
  border-radius: 20px;
  border: 2px solid #e2e8f0;
  background: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 4px 12px rgba(14, 90, 96, 0.04);
  transition: all 0.25s ease;
  margin-bottom: 18px;
  position: relative;
}

.any-tutor-card:hover {
  border-color: #2A9D8F;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 90, 96, 0.1);
}

.any-tutor-card.selected {
  border: 3px solid #0E5A60 !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #E6F4F5 100%) !important;
  box-shadow: 0 0 0 3px rgba(14, 90, 96, 0.25), 0 10px 24px rgba(14, 90, 96, 0.15) !important;
  transform: translateY(-2px);
}

.any-icon-wrap {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0E5A60 0%, #2A9D8F 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #FFFFFF;
}

.any-text-group h3 {
  margin: 0 0 2px;
  font-size: 1rem;
  font-weight: 800;
  color: #0E5A60;
}

.any-text-group p {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
}

.badge-recommended {
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  background: rgba(42, 157, 143, 0.18);
  color: #0E5A60;
  border-radius: 20px;
  white-space: nowrap;
}

/* Tutor Grid */
.tutor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.tutor-card {
  padding: 20px 16px;
  border-radius: 20px;
  border: 2px solid #e2e8f0;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  text-align: center;
}

.tutor-card:hover {
  border-color: #2A9D8F;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(14, 90, 96, 0.1);
}

.tutor-card.selected {
  border: 3px solid #0E5A60 !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #E6F4F5 100%) !important;
  box-shadow: 0 0 0 3px rgba(14, 90, 96, 0.25), 0 12px 28px rgba(14, 90, 96, 0.22) !important;
  transform: translateY(-4px);
}

.tutor-card.selected .tutor-photo {
  border-color: #0E5A60 !important;
  box-shadow: 0 0 0 4px rgba(14, 90, 96, 0.35) !important;
}

.tutor-card.selected .tutor-name {
  color: #0E5A60 !important;
  font-weight: 800 !important;
}

.tutor-selected-badge {
  display: none;
  background: #0E5A60;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 50px;
  box-shadow: 0 3px 8px rgba(14, 90, 96, 0.35);
  align-items: center;
  gap: 4px;
  z-index: 2;
  animation: fadeIn 0.2s ease-out;
}

.tutor-grid .tutor-card .tutor-selected-badge {
  position: absolute;
  top: 12px;
  right: 12px;
}

.any-tutor-card .tutor-selected-badge {
  position: static;
}

.any-tutor-card.selected .badge-recommended {
  display: none !important;
}

.tutor-card.selected .tutor-selected-badge {
  display: inline-flex !important;
}

.tutor-photo-wrap {
  position: relative;
  margin: 0 auto 12px;
  width: 92px;
  height: 92px;
}

.tutor-photo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(14, 90, 96, 0.15);
  display: block;
}

.tutor-stars-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: #F2B705;
  color: #0E5A60;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.tutor-name {
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
  margin: 4px 0 2px;
}

.tutor-headline {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2A9D8F;
  margin: 0 0 6px;
}

.tutor-bio {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* ===================================================
   STEP 2: DATE & TIME
   =================================================== */
.schedule-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 16px;
}

.timezone-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
}

.timezone-select {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  background: #FFFFFF;
  outline: none;
}

.carousel-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.carousel-nav-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b;
}

.carousel-arrows {
  display: flex;
  gap: 6px;
}

.carousel-arrow-btn-small {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #FFFFFF;
  color: #0E5A60;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.carousel-arrow-btn-small:hover {
  background: #f1f5f9;
}

.days-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.day-btn {
  flex: 0 0 68px;
  width: 68px;
  height: 80px;
  min-width: 68px;
  border-radius: 18px;
  border: 2px solid #e2e8f0;
  background: #FFFFFF;
  color: #334155;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  scroll-snap-align: start;
  padding: 0;
  box-sizing: border-box;
}

.day-btn:hover {
  border-color: #2A9D8F;
}

.day-btn.selected,
.day-btn.border-\[\#0E5A60\] {
  border-color: #0E5A60 !important;
  background: #0E5A60 !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(14, 90, 96, 0.3) !important;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.time-slot-btn {
  padding: 12px 10px;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  background: #FFFFFF;
  color: #1e293b;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.time-slot-btn:hover {
  border-color: #2A9D8F;
}

.time-slot-btn.selected,
.time-slot-btn.border-\[\#0E5A60\] {
  border-color: #0E5A60 !important;
  background: #0E5A60 !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(14, 90, 96, 0.25) !important;
}

/* ===================================================
   STEP 3: FORM INPUTS & DETAILS
   =================================================== */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.form-required {
  color: #FC2C54;
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  font-size: 16px; /* Prevents auto-zoom on iOS Safari */
  color: #1e293b;
  box-sizing: border-box;
  outline: none;
  background: #FFFFFF;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #0E5A60;
  box-shadow: 0 0 0 3px rgba(14, 90, 96, 0.12);
}

.goals-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.goal-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  background: #FFFFFF;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s ease;
}

.goal-option:hover {
  border-color: #0E5A60;
  background: #fffdf9;
}

.goal-radio {
  width: 18px;
  height: 18px;
  accent-color: #0E5A60;
  margin: 0;
}

/* ===================================================
   STEP 4: SUMMARY & PAYMENT
   =================================================== */
.summary-card {
  background: rgba(255, 243, 214, 0.55);
  border: 1.5px solid rgba(14, 90, 96, 0.18);
  border-radius: 20px;
  padding: 20px 18px;
  margin-bottom: 18px;
}

.summary-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(14, 90, 96, 0.12);
  margin-bottom: 12px;
}

.summary-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  font-size: 13px;
}

.payment-modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.payment-mode-btn {
  padding: 16px 14px;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  background: #FFFFFF;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-mode-btn.active {
  border-color: #0E5A60 !important;
  box-shadow: 0 4px 14px rgba(14, 90, 96, 0.12) !important;
}

/* ===================================================
   NAV BUTTONS & FOOTER ACTIONS
   =================================================== */
.nav-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  margin-top: 20px;
}

.btn-primary-action {
  background: #0E5A60;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(14, 90, 96, 0.25);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary-action:hover:not(:disabled) {
  background: #093c40;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 90, 96, 0.35);
}

.btn-primary-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary-action {
  background: #FFFFFF;
  color: #475569;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary-action:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

/* ===================================================
   STEP 5: CONFIRMATION SUCCESS
   =================================================== */
.success-box {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
  padding: 12px 0;
}

.success-icon-badge {
  width: 64px;
  height: 64px;
  background: rgba(42, 157, 143, 0.15);
  color: #2A9D8F;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 14px;
}

.meet-highlight-card {
  background: linear-gradient(135deg, #0E5A60 0%, #2A9D8F 100%);
  border-radius: 20px;
  padding: 24px 20px;
  color: #FFFFFF;
  text-align: left;
  box-shadow: 0 10px 30px rgba(14, 90, 96, 0.2);
  margin: 20px 0;
}

.btn-join-meet {
  width: 100%;
  padding: 14px;
  background: #F2B705;
  color: #0E5A60;
  font-weight: 900;
  font-size: 16px;
  border-radius: 14px;
  text-align: center;
  display: block;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}

.btn-join-meet:hover {
  transform: translateY(-2px);
}

.calendar-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.calendar-export-btn {
  padding: 10px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #FFFFFF;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  display: block;
  cursor: pointer;
}

/* ===================================================
   MOBILE RESPONSIVE OVERRIDES (DOWN TO 320PX)
   =================================================== */
@media (max-width: 680px) {
  body {
    padding: 12px 8px 36px !important;
  }

  .booking-wrapper {
    border-radius: 22px !important;
  }

  .booking-header {
    padding: 20px 14px 18px !important;
  }

  .booking-title {
    font-size: 1.35rem !important;
  }

  .booking-sub {
    font-size: 0.8rem !important;
  }

  /* Compact Stepper on Mobile */
  .stepper-container {
    gap: 6px !important;
    margin-top: 14px !important;
    padding-top: 12px !important;
  }

  .step-label {
    display: none !important;
  }

  .step-circle {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 12px !important;
  }

  .step-divider {
    width: 14px !important;
  }

  .mobile-step-indicator {
    display: block !important;
  }

  .booking-body {
    padding: 18px 14px !important;
  }

  .step-heading {
    font-size: 1.25rem !important;
  }

  /* 1-column mobile tutor cards */
  .tutor-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .tutor-card {
    padding: 16px 14px !important;
  }

  /* 2-column mobile time slots */
  .slots-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .time-slot-btn {
    padding: 10px 6px !important;
    font-size: 13px !important;
    min-height: 48px !important;
  }

  /* Single column payment modes */
  .payment-modes-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* Full-width responsive navigation buttons */
  .nav-actions-row {
    flex-direction: column-reverse !important;
    gap: 10px !important;
  }

  .btn-primary-action,
  .btn-secondary-action {
    width: 100% !important;
    padding: 14px !important;
  }

  /* Calendar export buttons on mobile */
  .calendar-buttons-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}

/* ===================================================
   MEMBER PORTAL & RECURRING SUBSCRIPTION STYLES
   =================================================== */
.member-portal-bar {
  background: linear-gradient(135deg, rgba(14, 90, 96, 0.08) 0%, rgba(42, 157, 143, 0.12) 50%, rgba(242, 183, 5, 0.12) 100%);
  border: 1.5px solid rgba(14, 90, 96, 0.2);
  border-radius: 18px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.member-portal-bar-text {
  font-size: 13px;
  color: #0E5A60;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.member-portal-bar-btn {
  background: #0E5A60;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(14, 90, 96, 0.2);
}

.member-portal-bar-btn:hover {
  background: #093c40;
  transform: translateY(-1px);
}

.member-active-card {
  background: #ecfdf5;
  border: 2px solid #10b981;
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease-out;
}

.member-active-card h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #065f46;
}

.member-active-card p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #047857;
}

.member-active-badge {
  background: #10b981;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.member-declined-card {
  background: #fff1f2;
  border: 2px solid #f43f5e;
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease-out;
}

.member-declined-card h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #9f1239;
}

.member-declined-card p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #be123c;
}

.member-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.member-modal-box {
  background: #FFFFFF;
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  padding: 24px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(14, 90, 96, 0.15);
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .member-portal-bar,
  .member-active-card,
  .member-declined-card {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .member-portal-bar-btn {
    width: 100% !important;
    text-align: center !important;
    padding: 12px !important;
  }
}

/* ===================================================
   STEP 1 TOP BAR (Fast Continue & Teacher Display)
   =================================================== */
.step-1-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 90, 96, 0.05);
  border: 1.5px solid rgba(14, 90, 96, 0.15);
  border-radius: 18px;
  padding: 12px 18px;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 8px;
}

.step-1-top-pill {
  font-size: 13px;
  color: #0E5A60;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

.btn-top-continue {
  background: #0E5A60;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(14, 90, 96, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-top-continue:hover {
  background: #093c40;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .step-1-top-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center;
  }
  .step-1-top-pill {
    justify-content: center;
  }
  .btn-top-continue {
    width: 100% !important;
    justify-content: center;
    padding: 12px !important;
  }
}

/* ===================================================
   MULTI-CLASS SCHEDULER TABS (Modern Cards)
   =================================================== */
.class-tabs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.class-tab-card {
  position: relative;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 18px;
  padding: 14px 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 82px;
  outline: none;
  font-family: inherit;
  width: 100%;
}

.class-tab-card:hover {
  border-color: #2A9D8F;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14, 90, 96, 0.08);
}

/* Active Class (currently selected to pick date/time) */
.class-tab-card.active {
  border: 2.5px solid #0E5A60 !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF9EC 100%) !important;
  box-shadow: 0 8px 22px rgba(14, 90, 96, 0.18) !important;
  transform: translateY(-2px);
}

/* Scheduled Class (has assigned date & time) */
.class-tab-card.scheduled {
  border: 2px solid #10B981 !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #ECFDF5 100%) !important;
}

.class-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 6px;
}

.class-tab-title {
  font-size: 13px;
  font-weight: 800;
  color: #1E293B;
  margin: 0;
}

.class-tab-card.active .class-tab-title {
  color: #0E5A60;
}

.class-tab-card.scheduled .class-tab-title {
  color: #065F46;
}

/* Status Pill */
.class-tab-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 50px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.class-tab-pill.active {
  background: #F2B705;
  color: #0E5A60;
}

.class-tab-pill.scheduled {
  background: #D1FAE5;
  color: #047857;
}

.class-tab-pill.pending {
  background: #F1F5F9;
  color: #64748B;
}

.class-tab-meta {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  margin: 0;
  line-height: 1.35;
}

.class-tab-card.active .class-tab-meta {
  color: #0E5A60;
  font-weight: 700;
}

.class-tab-card.scheduled .class-tab-meta {
  color: #047857;
  font-weight: 700;
}

@media (max-width: 768px) {
  .class-tabs-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .class-tab-card {
    padding: 10px 10px !important;
    min-height: 72px !important;
  }
}


