/* ═══════════════════════════════════════════════════════════════════════════
   RALLY ATL — GROUP LESSONS STYLESHEET (Mobile-First)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Base Overrides ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-l) 60%, #10b981 100%);
}

#upcomingLessonGrid {
  margin-bottom: 20px;
  background-color: #fbd3d3;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
}

/* ── 2. Lesson Grid & Cards (Mobile Base) ── */
.lesson-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 2px;
  margin: 10px auto 10px;
}

.lesson-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 0px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.lesson-header {
  padding: 14px 18px;

  border-bottom: 1px solid #f1f5f9;
  background: #eaf5ff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.lesson-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

.lesson-header-badges {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.lesson-body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── 3. Tags and Badges (Inherited from elements.css) ── */

/* ── 4. Info Rows & Progress Bar ── */
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.info-row .icon {
  font-size: 16px;
  flex-shrink: 0;
}

.info-row .label-text {
  font-weight: 600;
  color: var(--navy);
}

.info-row .sub-text {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.card-waitlist-row .label-text {
  color: #b45309;
}

.card-waitlist-row .sub-text {
  color: #92400e;
  font-weight: 500;
}

.spots-container {
  margin-top: 4px;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.spots-text {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.progress-bar-bg {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--green);
  transition: width 0.3s ease;
}

.progress-bar-fill.full {
  background: #ef4444;
}

/* ── 5. Buttons & Form Controls (Mobile Base) ── */
.btn-register {
  width: 100%;
  padding: 12px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s;
  margin-top: 8px;
}

.btn-register:hover {
  background: var(--navy-l);
}

.btn-register.btn-waitlist {
  background: #d97706;
}

.btn-register.btn-waitlist:hover {
  background: #b45309;
}

.btn-register:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
}

.modal-waitlist-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-top: 10px;
  line-height: 1.45;
}

.level-radio-group {
  width: 100%;
  gap: 8px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 6px;
}

.level-radio-item {
  position: relative;
  cursor: pointer;
  display: block;
}

.level-radio-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.level-btn-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 8px;
  background: var(--white);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-weight: 600;
  color: var(--navy);
  transition: all 0.2s ease;
  text-align: center;
  user-select: none;
  font-size: 11px;
  white-space: nowrap;
}

.level-radio-item:hover .level-btn-label {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Level Color Variants */
.level-radio-item.red input[type="radio"]:checked+.level-btn-label {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.level-radio-item.orange input[type="radio"]:checked+.level-btn-label {
  background: #fff7ed;
  border-color: #ffedd5;
  color: #c2410c;
  box-shadow: 0 0 0 3px rgba(244, 113, 6, 0.08);
}

.level-radio-item.green input[type="radio"]:checked+.level-btn-label {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
}

.level-radio-item.yellow input[type="radio"]:checked+.level-btn-label {
  background: #fefce8;
  border-color: #fef08a;
  color: #854d0e;
  box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.08);
}

.level-radio-item.pickleball input[type="radio"]:checked+.level-btn-label {
  background: #fff7ed;
  border-color: #ffedd5;
  color: #c2410c;
  box-shadow: 0 0 0 3px rgba(244, 113, 6, 0.08);
}

.form-row-duo {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── 6. Modal Overlay & Components ── */
.app-tabbar,
.modal-drag-area {
  display: none;
}

.modal {
  max-width: 580px;
}

.modal-body {
  grid-template-columns: 1fr;
}

.modal-header.group-modal {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-l) 100%);
}

/* ── 7. Progressive Enhancements (Mobile-First Media Queries) ── */
@media (min-width: 768px) {
  #upcomingLessonGrid {
    width: 460px;
  }

  .lesson-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding-top: 10px;
  }

  .lesson-card {
    flex: 1 1 360px;
    max-width: 460px;
  }

  .lesson-header {
    padding: 20px 24px;
  }

  .lesson-body {
    padding: 24px;
    gap: 16px;
  }

  .spots-container {
    margin-top: auto;
    padding: 16px 0 0;
    border-radius: 0;
    background: transparent;
    border: none;
    border-top: 1px solid #f1f5f9;
  }

  .btn-register {
    margin-top: 14px;
  }

  .level-radio-group {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .radio-btn-label {
    font-size: 13px;
  }

  .level-btn-label {
    font-size: 12px;
    padding: 10px;
  }

  .form-row-trio {
    grid-template-columns: 2fr 80px 1.5fr;
    gap: 14px;
  }

  .form-row-trio>.form-group:first-child {
    grid-column: auto;
  }
}

/* ── 8. Student Verification Banner Styles ── */
.student-verify-status {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.student-verify-status.prompt {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-weight: 500;
}

.student-verify-status.verified {
  background-color: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #166534;
}

.student-verify-status.not-found {
  background-color: #fff1f2;
  border: 1.5px solid #fca5a5;
  color: #991b1b;
}

.student-verify-status .verified-title {
  font-weight: 700;
  font-size: 14px;
  color: #15803d;
  margin-bottom: 4px;
}

.student-verify-status .verified-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #bbf7d0;
  font-size: 12px;
  color: #166534;
}

.student-verify-status .not-found-title {
  font-weight: 700;
  font-size: 14px;
  color: #b91c1c;
  margin-bottom: 4px;
}

.student-verify-status .btn-register-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #0284c7;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.student-verify-status .btn-register-link:hover {
  background-color: #0369a1;
  text-decoration: none;
  transform: translateY(-1px);
}