/* ============================================================
   STM Join Us Page — Exact Lovable.app Replica Styles
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

#stm-joinus-wrap {
  font-family: 'Inter', system-ui, sans-serif;
  background: #fff;
  min-height: 100vh;
  padding-bottom: 4rem;
  color: #1a1a2e;
}

/* ── Header ───────────────────────────────────── */
.stm-joinus-header {
  text-align: center;
  padding: 2.5rem 1rem 1rem;
}

.stm-joinus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #1756C5;
  color: #fff;
  border-radius: 50%;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.stm-joinus-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0.25rem 0;
}

.stm-joinus-header p {
  color: #555;
  font-size: 0.95rem;
  margin: 0;
}

/* ── Step Indicators ──────────────────────────── */
.stm-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem 1rem 0.5rem;
  flex-wrap: wrap;
}

.stm-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  opacity: 0.4;
}

.stm-step--active {
  opacity: 1;
}

.stm-step--done {
  opacity: 0.8;
}

.stm-step__star {
  font-size: 1.4rem;
  color: #ccc;
  display: block;
}

.stm-step--active .stm-step__star,
.stm-step--done .stm-step__star {
  color: #F5A623;
}

.stm-step__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #999;
  text-transform: uppercase;
}

.stm-step--active .stm-step__label {
  color: #1756C5;
  border-bottom: 2px solid #F5A623;
  padding-bottom: 2px;
}

.stm-step--done .stm-step__label {
  color: #F5A623;
}

/* ── Panels ───────────────────────────────────── */
.stm-panel {
  display: none;
  max-width: 660px;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
}

.stm-panel--active {
  display: block;
}

.stm-panel__card {
  background: #fff;
  border: 1px solid #e0e8f5;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.stm-panel__welcome {
  text-align: center;
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.75rem;
}

.stm-panel__card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  color: #1a1a2e;
  margin: 0.5rem 0 0.25rem;
}

.stm-panel__sub {
  text-align: center;
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.stm-divider {
  border: none;
  border-top: 2px solid #1756C5;
  width: 40px;
  margin: 0.75rem auto;
}

.stm-gold {
  color: #F5A623;
}

.stm-bold {
  font-weight: 700;
}

.stm-small {
  font-size: 0.85rem;
}

/* Navy header banner inside card */
.stm-panel__navy-header {
  background: #001f5b;
  color: #fff;
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.stm-panel__navy-header p {
  margin: 0.2rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.stm-panel__navy-header .stm-small {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

/* ── Fields ───────────────────────────────────── */
.stm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.stm-row--phone {
  grid-template-columns: auto 1fr 1fr;
  align-items: center;
}

.stm-row--3 {
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
}

@media (max-width: 600px) {

  .stm-row,
  .stm-row--phone,
  .stm-row--3 {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.stm-field {
  margin-bottom: 1rem;
}

.stm-field label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 0.3rem;
}

.req {
  color: #e53e3e;
}

.stm-hint {
  display: block;
  font-size: 0.77rem;
  color: #777;
  margin-bottom: 0.3rem;
}

.stm-input {
  display: block;
  width: 100%;
  padding: 0.6rem 0.875rem;
  font-size: 0.88rem;
  font-family: inherit;
  border: 1px solid #c8d6f0;
  border-radius: 8px;
  background: #fff;
  color: #1a1a2e;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.stm-input:focus {
  outline: none;
  border-color: #1756C5;
  box-shadow: 0 0 0 3px rgba(23, 86, 197, 0.12);
}

.stm-input[disabled] {
  background: #f5f7fa;
  color: #999;
  cursor: not-allowed;
}

.stm-input--err,
.stm-input:invalid:not(:placeholder-shown) {
  border-color: #e53e3e;
}

.stm-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23666' d='M8 11L2 5h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.2rem;
  cursor: pointer;
}

.stm-select--code {
  min-width: 100px;
  max-width: 120px;
}

.stm-err {
  display: block;
  font-size: 0.77rem;
  color: #e53e3e;
  margin-top: 0.2rem;
  min-height: 1em;
}

.stm-age {
  display: block;
  font-size: 0.82rem;
  color: #1756C5;
  font-weight: 600;
  margin-top: 0.25rem;
}

.stm-info {
  cursor: pointer;
  color: #1756C5;
  font-size: 0.8rem;
}

.stm-label-bold {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: #1a1a2e;
}

/* ── Warning boxes ────────────────────────────── */
.stm-warn-box {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.83rem;
  color: #7a5c00;
  margin-bottom: 1rem;
}

.stm-warn-box--gold {
  background: #fff3cd;
  border-color: #F5A623;
  color: #7a5000;
}

/* ── Accordion ────────────────────────────────── */
.stm-accordion {
  border: 1px solid #c8d6f0;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.stm-accordion summary {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a2e;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stm-accordion summary::before {
  content: '›';
  font-size: 1.1rem;
}

.stm-accordion[open] summary::before {
  content: '∨';
}

.stm-accordion__body {
  padding: 0 1rem 1rem;
  font-size: 0.83rem;
  color: #555;
  line-height: 1.65;
  border-top: 1px solid #e0e8f5;
  padding-top: 0.75rem;
}

.stm-accordion__body p {
  margin: 0 0 0.5rem;
}

/* Checkbox label */
.stm-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #1a1a2e;
  margin-bottom: 0.75rem;
  cursor: pointer;
  line-height: 1.5;
}

.stm-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #1756C5;
  flex-shrink: 0;
  cursor: pointer;
}

/* Signature section */
.stm-sig-section {
  margin-top: 1rem;
}

.stm-sig-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.3rem;
}

.stm-sig-section>p {
  font-size: 0.82rem;
  color: #555;
  margin-bottom: 0.75rem;
}

/* ── Program Cards ────────────────────────────── */
.stm-program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

@media (max-width:540px) {
  .stm-program-grid {
    grid-template-columns: 1fr;
  }
}

.stm-prog-card {
  cursor: pointer;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid #dde4f5;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
  min-height: 320px;
}

.stm-prog-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.stm-prog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .15);
}

.stm-prog-card:has(input:checked) {
  border-color: #1756C5;
  box-shadow: 0 0 0 4px rgba(23, 86, 197, .25);
  transform: translateY(-3px);
}

/* ─ Top section ─ */
.stm-prog-card__top {
  flex: 1.6;
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.stm-prog-cat-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stm-prog-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.stm-prog-cat {
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stm-prog-name {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.38;
  text-align: center;
  margin: 0.1rem 0;
}

.stm-prog-abbr {
  display: block;
  font-weight: 800;
}

.stm-prog-desc {
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  text-align: center;
  flex: 1;
}

/* ─ Bottom section ─ */
.stm-prog-card__btm {
  flex: 1;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}

.stm-prog-card__btm em {
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.55;
}

.stm-prog-circle {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

/* ─ Color variants ─ */

/* gold: orange top + cream bottom */
.stm-prog-card--gold .stm-prog-card__top {
  background: #F5A623;
}

.stm-prog-card--gold .stm-prog-cat,
.stm-prog-card--gold .stm-prog-name,
.stm-prog-card--gold .stm-prog-abbr,
.stm-prog-card--gold .stm-prog-desc {
  color: #001f5b;
}

.stm-prog-card--gold .stm-prog-card__btm {
  background: #FFF8ED;
}

.stm-prog-card--gold .stm-prog-card__btm em {
  color: #001f5b;
}

/* periwinkle: light lavender top + deep-blue bottom */
.stm-prog-card--periwinkle .stm-prog-card__top {
  background: #EDF0FF;
}

.stm-prog-card--periwinkle .stm-prog-cat,
.stm-prog-card--periwinkle .stm-prog-name,
.stm-prog-card--periwinkle .stm-prog-abbr,
.stm-prog-card--periwinkle .stm-prog-desc {
  color: #001f5b;
}

.stm-prog-card--periwinkle .stm-prog-card__btm {
  background: #2B52CC;
}

.stm-prog-card--periwinkle .stm-prog-card__btm em {
  color: #fff;
}

/* blue-light: blue top + light periwinkle bottom */
.stm-prog-card--blue-light .stm-prog-card__top {
  background: #1756C5;
}

.stm-prog-card--blue-light .stm-prog-cat,
.stm-prog-card--blue-light .stm-prog-name,
.stm-prog-card--blue-light .stm-prog-abbr,
.stm-prog-card--blue-light .stm-prog-desc {
  color: #fff;
}

.stm-prog-card--blue-light .stm-prog-card__btm {
  background: #EDF0FF;
}

.stm-prog-card--blue-light .stm-prog-card__btm em {
  color: #001f5b;
}

/* blue-gold: blue top + orange/gold bottom */
.stm-prog-card--blue-gold .stm-prog-card__top {
  background: #1756C5;
}

.stm-prog-card--blue-gold .stm-prog-cat,
.stm-prog-card--blue-gold .stm-prog-name,
.stm-prog-card--blue-gold .stm-prog-abbr,
.stm-prog-card--blue-gold .stm-prog-desc {
  color: #fff;
}

.stm-prog-card--blue-gold .stm-prog-card__btm {
  background: #F5A623;
}

.stm-prog-card--blue-gold .stm-prog-card__btm em {
  color: #fff;
}

/* navy-gold: dark navy top + gold bottom */
.stm-prog-card--navy-gold .stm-prog-card__top {
  background: #001f5b;
}

.stm-prog-card--navy-gold .stm-prog-cat,
.stm-prog-card--navy-gold .stm-prog-name,
.stm-prog-card--navy-gold .stm-prog-abbr,
.stm-prog-card--navy-gold .stm-prog-desc {
  color: #fff;
}

.stm-prog-card--navy-gold .stm-prog-card__btm {
  background: #F5A623;
}

.stm-prog-card--navy-gold .stm-prog-card__btm em {
  color: #fff;
}

/* Program selection confirmation */
.stm-prog-confirm {
  display: none;
  margin-top: 1rem;
  background: linear-gradient(135deg, #001f5b, #1756C5);
  color: #fff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  animation: stmFadeIn 0.3s ease;
  line-height: 1.55;
  text-align: center;
}

.stm-prog-confirm.stm-prog-confirm--visible {
  display: block;
}

.stm-prog-confirm strong {
  color: #F5A623;
}

/* ── WHO Cards ────────────────────────────────── */
.stm-who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

@media (max-width:540px) {
  .stm-who-grid {
    grid-template-columns: 1fr;
  }
}

.stm-who-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
  border: 1.5px solid #d1def5;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  gap: 0.3rem;
  position: relative;
}

.stm-who-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.stm-who-card:hover {
  border-color: #1756C5;
  background: #f0f5ff;
}

.stm-who-card input:checked~* {
  color: #1756C5;
}

.stm-who-card:has(input:checked) {
  border-color: #1756C5;
  background: #edf3ff;
  box-shadow: 0 0 0 3px rgba(23, 86, 197, 0.15);
}

.stm-who-card--yellow {
  border-color: #F5A623;
  background: #fffbf0;
}

.stm-who-card--border-blue {
  border-color: #1756C5;
  background: #f5f8ff;
}

.stm-who-card--light-blue {
  border-color: #90b4f5;
  background: #f0f5ff;
}

.stm-who-card--light-green {
  border-color: #5cb85c;
  background: #f5fff5;
}

.stm-who-icon {
  font-size: 1.2rem;
}

.stm-who-card strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.35;
}

.stm-who-card p {
  font-size: 0.78rem;
  color: #555;
  margin: 0;
}

/* ── Summary ──────────────────────────────────── */
.stm-summary-card {
  border: 1.5px solid #b8d0f5;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  background: #f5f9ff;
  margin-bottom: 1rem;
}

.stm-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.84rem;
  color: #333;
}

.stm-signed-box {
  background: #f0fff4;
  border: 1px solid #68d391;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  color: #276749;
  margin-bottom: 1rem;
}

/* ── Navigation ───────────────────────────────── */
.stm-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stm-nav__left {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stm-nav__right {
  display: flex;
  gap: 0.5rem;
}

.stm-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
}

.stm-btn--outline {
  background: transparent;
  border: 1.5px solid #001f5b;
  color: #001f5b;
}

.stm-btn--outline:hover {
  background: #f0f4ff;
}

.stm-btn--primary {
  background: #001f5b;
  color: #fff;
}

.stm-btn--primary:hover {
  background: #003080;
}

.stm-btn--primary:disabled {
  background: #bbb;
  cursor: not-allowed;
}

/* ── Staging banner (mirrors Lovable) ─────────── */
/* ── WHO Sub-forms ────────────────────────────── */
.stm-who-sub {
  margin-top: 1.5rem;
  border: 1.5px solid #c8d6f0;
  border-radius: 10px;
  padding: 1.25rem;
  background: #f9fbff;
  animation: stmFadeIn 0.25s ease;
}

@keyframes stmFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stm-who-sub__header {
  font-size: 0.92rem;
  font-weight: 700;
  color: #001f5b;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #d0e0ff;
}

.stm-who-card--selected {
  border-color: #1756C5 !important;
  box-shadow: 0 0 0 3px rgba(23, 86, 197, 0.2) !important;
}

.stm-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

/* ── Multi-student toggle box ─────────────────── */
.stm-multi-student-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #eef4ff;
  border: 1.5px solid #c8d6f0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  flex-wrap: wrap;
}

.stm-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .45rem 1.4rem;
  border: 1.5px solid #c8d6f0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
  background: #fff;
  color: #333;
  transition: background .2s, border-color .2s, color .2s;
  gap: .4rem;
  user-select: none;
}

.stm-toggle-btn input[type="radio"] {
  display: none;
}

.stm-toggle-btn.active,
.stm-toggle-btn:has(input:checked) {
  background: #001f5b;
  color: #fff;
  border-color: #001f5b;
}

/* ── Learner Question Box (Myself sub-form) ───── */
.stm-learner-box {
  background: #FFF8ED;
  border: 2px solid #001f5b;
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  animation: stmFadeIn 0.25s ease;
}

.stm-learner-box__q {
  font-size: 0.93rem;
  font-weight: 700;
  color: #001f5b;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.stm-learner-opts {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.stm-learner-opt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1.5px solid #c8d6f0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a2e;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  user-select: none;
}

.stm-learner-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.stm-learner-opt__radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #c8d6f0;
  flex-shrink: 0;
  transition: border-color 0.18s, background 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stm-learner-opt:hover {
  border-color: #1756C5;
  background: #f5f8ff;
}

.stm-learner-opt:has(input:checked) {
  border-color: #1756C5;
  background: #f0f5ff;
  box-shadow: 0 0 0 3px rgba(23, 86, 197, .12);
}

.stm-learner-opt:has(input:checked) .stm-learner-opt__radio {
  border-color: #1756C5;
  background: #1756C5;
  box-shadow: inset 0 0 0 3px #fff;
}

/* ── Learner Thank-You Box ────────────────────── */
.stm-learner-thankyou {
  display: none;
  margin-top: 1.1rem;
  background: #EDF0FF;
  border: 2px solid #001f5b;
  border-radius: 16px;
  padding: 1.3rem 1.75rem;
  text-align: center;
  animation: stmFadeIn 0.3s ease;
}

.stm-learner-thankyou p {
  font-size: 0.92rem;
  color: #1a1a2e;
  line-height: 1.6;
  margin: 0;
}

.stm-thankyou-link {
  color: #1756C5;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.stm-thankyou-link:hover {
  color: #0d3fa6;
}

/* ── 3-column row ────────────────────────────── */
.stm-row--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width:600px) {
  .stm-row--3 {
    grid-template-columns: 1fr;
  }
}

/* Section title inside student block */
.stm-field-section-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #001f5b;
  margin: 0 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid #d0e0ff;
}

/* Student block separator (for additional students) */
.stm-stu-block {
  padding: 0.25rem 0 0.5rem;
}

.stm-stu-block+.stm-stu-block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 2px dashed #c8d6f0;
}

/* Remove student button */
.stm-remove-stu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1.5px solid #e53e3e;
  color: #e53e3e;
  border-radius: 8px;
  padding: 0.45rem 1rem;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.75rem;
  transition: background 0.18s, color 0.18s;
}

.stm-remove-stu-btn:hover {
  background: #fff5f5;
}

/* ── Multiple students toggle ──────────────── */
.stm-multi-stu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #EDF0FF;
  border: 1.5px solid #c8d6f0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.stm-multi-stu-toggle__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stm-multi-stu-toggle__text strong {
  font-size: 0.9rem;
  color: #001f5b;
}

.stm-multi-stu-toggle__text span {
  font-size: 0.78rem;
  color: #555;
}

.stm-multi-stu-toggle__btns {
  display: flex;
  gap: 0.4rem;
  background: #fff;
  border: 1.5px solid #c8d6f0;
  border-radius: 100px;
  padding: 3px;
}

.stm-multi-btn {
  padding: 0.38rem 1.2rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  color: #555;
  background: transparent;
  transition: background 0.18s, color 0.18s;
}

.stm-multi-btn--active.stm-multi-btn--no {
  background: #fff;
  color: #333;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}

.stm-multi-btn--active.stm-multi-btn--yes {
  background: #001f5b;
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

/* Add another student bar */
.stm-add-stu-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #f5f8ff;
  border: 1.5px solid #c8d6f0;
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1756C5;
}

.stm-add-stu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  font-size: 0.83rem;
}

body::before {
  content: '⚠ STM Staging — Testing Only — Do Not Enter Real Personal Information.';
  display: block;
  background: #FFF9E6;
  border-bottom: 1px solid #F5A623;
  color: #7a5000;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.5rem 1rem;
  font-family: 'Inter', system-ui, sans-serif;
}

/* ── Guardian Notice Boxes ──────────────────── */
.stm-guardian-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  animation: stmFadeIn 0.25s ease;
}

.stm-guardian-notice span {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.stm-guardian-notice p {
  margin: 0;
}

/* Green — Yes (registrant IS guardian) */
.stm-guardian-notice--yes {
  background: #EDF7ED;
  border: 1.5px solid #4caf50;
  color: #1b5e20;
}

/* Orange — No (registrant is NOT guardian) */
.stm-guardian-notice--no {
  background: #FFF8ED;
  border: 1.5px solid #F5A623;
  color: #7a5000;
}

/* Guardian phone row */
.stm-row--phone {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
}

.stm-select--code {
  width: auto;
  min-width: 110px;
}

/* ── Agreement Panel ──────────────────────────── */

/* Info notice box (blue) */
.stm-agree-info {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #EEF2FF;
  border: 1.5px solid #1756C5;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: #1a1a2e;
  line-height: 1.55;
  animation: stmFadeIn 0.25s ease;
}

.stm-agree-info__icon {
  background: transparent;
  border: 2px solid #F5A623;
  color: #F5A623;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.stm-agree-info p {
  margin: 0;
}

/* Accordion */
details.stm-accordion {
  margin-top: 1rem;
  border: 1.5px solid #c8d6f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

details.stm-accordion summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #001f5b;
  list-style: none;
  user-select: none;
}

details.stm-accordion summary::before {
  content: '›';
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.2s;
  display: inline-block;
  color: #1756C5;
}

details.stm-accordion[open] summary::before {
  transform: rotate(90deg);
}

details.stm-accordion summary::-webkit-details-marker {
  display: none;
}

.stm-accordion__body {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.86rem;
  color: #333;
  line-height: 1.6;
  border-top: 1px solid #e8eef8;
}

.stm-accordion__body p {
  margin: 0.6rem 0;
}

.stm-terms-section {
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e8eef8;
  font-size: 0.85rem;
  line-height: 1.6;
}

.stm-terms-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.stm-terms-section strong {
  display: block;
  color: #001f5b;
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

/* Agreement checkbox box */
.stm-agree-check-box {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1rem;
  background: #EEF2FF;
  border: 1.5px solid #1756C5;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: #1a1a2e;
  line-height: 1.55;
}

.stm-agree-check-box input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: #1756C5;
  cursor: pointer;
}

/* Orange warning box */
.stm-agree-warn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #FFF8ED;
  border: 1.5px solid #F5A623;
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
  margin-top: 0.75rem;
  font-size: 0.86rem;
  color: #7a5000;
  animation: stmFadeIn 0.25s ease;
}

.stm-agree-warn__icon {
  border: 2px solid #F5A623;
  color: #F5A623;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.stm-agree-warn p {
  margin: 0;
}

/* Signature section */
.stm-sig-section {
  margin-top: 1.5rem;
}

.stm-sig-section__title {
  font-size: 1rem;
  font-weight: 700;
  color: #001f5b;
  margin: 0 0 0.35rem;
}

.stm-sig-section__sub {
  font-size: 0.86rem;
  color: #555;
  margin: 0 0 0.5rem;
}

/* Sig input — highlighted when enabled */
.stm-sig-input:not(:disabled) {
  background: #FFFDF0;
  border-color: #1756C5;
}

.stm-sig-input:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}