/* ══════════════════════════════════════════════════════════════
   RISPRI EDGE · TRAINING PORTAL
   Page-specific layer for the training catalogue, official schedule
   showcase, and enrollment wizard. Extends the shared .ind-page
   industrial system (navy/orange/teal, Barlow display type,
   cut-corner panels) defined in styles.css + styles-industrial.css.
   Load AFTER both.
   ══════════════════════════════════════════════════════════════ */

/* ── Hero certification strip ────────────────────────────────── */
.trn-hero-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.trn-hero-certs img {
  height: 26px;
  background: rgba(255, 255, 255, 0.94);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
}

/* ── Course catalogue grid ───────────────────────────────────── */
.trn-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.trn-course-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.trn-course-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.trn-course-card.active-card {
  border-color: var(--accent);
  background: var(--accent-light);
}

.trn-course-figure { position: relative; height: 168px; overflow: hidden; }
.trn-course-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }

.trn-course-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.trn-course-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}
.trn-course-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.trn-course-title {
  font-size: 1.12rem;
  line-height: 1.3;
  margin-bottom: 0.9rem;
}

.trn-course-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 0.7rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
}
.trn-course-dur {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.trn-course-fee {
  font-family: "Barlow", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
}

.trn-course-params {
  list-style: none;
  padding: 0;
  margin: 0 0 1.3rem;
  font-size: 0.84rem;
  color: var(--gray-600);
  line-height: 1.55;
  flex: 1;
}
.trn-course-params li { position: relative; padding-left: 15px; margin-bottom: 4px; }
.trn-course-params li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}
.trn-course-params strong { color: var(--text); }

.trn-course-actions { margin-top: auto; }
.trn-course-syllabus-link {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.75rem;
  padding: 0.4rem;
  cursor: pointer;
  transition: color 0.15s ease;
}
.trn-course-syllabus-link:hover { color: var(--accent); }

/* ── Official schedule document showcase ─────────────────────── */
.trn-docs-section {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  margin: 3rem 0;
}
.trn-docs-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.trn-docs-head h3 { margin-top: 0.35rem; }
.trn-docs-note { font-size: 0.82rem; color: var(--gray-600); }

.trn-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.trn-doc-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.trn-doc-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.trn-doc-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  cursor: pointer;
  display: block;
  border-bottom: 1px solid var(--gray-200);
}
.trn-doc-info { padding: 0.9rem 1.1rem; }
.trn-doc-info strong { font-size: 0.9rem; display: block; }
.trn-doc-info span { font-size: 0.78rem; color: var(--gray-600); }

/* ── Enrollment wizard ────────────────────────────────────────── */
.trn-wizard-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-sm);
  margin: 2rem 0 4rem;
}

.trn-steps-bar {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2.2rem;
  padding: 0 10px;
}
.trn-steps-bar::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--gray-200);
  z-index: 1;
}
.trn-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  background: var(--white);
}
.trn-step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gray-200);
  color: var(--gray-400);
  font-family: "Barlow", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.trn-step-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.trn-step.active .trn-step-circle {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 0 0 4px var(--accent-light);
}
.trn-step.active .trn-step-label { color: var(--accent); }
.trn-step.completed .trn-step-circle { border-color: var(--teal); background: var(--teal); color: var(--white); }
.trn-step.completed .trn-step-label { color: var(--teal); }

.trn-pane { display: none; }
.trn-pane.active { display: block; animation: trnPaneIn 0.2s ease; }
@keyframes trnPaneIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.trn-pane-title { margin-bottom: 0.3rem; }
.trn-pane-sub { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 1.2rem; }

.trn-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 0.6rem 0 1.3rem;
}
.trn-choice {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: all 0.15s ease;
}
.trn-choice:hover { border-color: var(--gray-400); }
.trn-choice.selected { border-color: var(--accent); background: var(--accent-light); }
.trn-choice-dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.trn-choice.selected .trn-choice-dot { border-color: var(--accent); background: var(--accent); }
.trn-choice-dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0;
}
.trn-choice.selected .trn-choice-dot::after { opacity: 1; }
.trn-choice-title { font-weight: 600; font-size: 0.88rem; color: var(--text); display: block; }
.trn-choice-sub { font-size: 0.76rem; color: var(--gray-600); display: block; }

.trn-fee-table {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin: 1.2rem 0;
  font-size: 0.88rem;
}
.trn-fee-table.trn-fee-review { background: var(--primary-light); border-color: rgba(1, 58, 110, 0.16); }
.trn-fee-row { display: flex; justify-content: space-between; padding: 0.4rem 0; color: var(--gray-600); }
.trn-fee-row.total {
  border-top: 1px solid var(--gray-200);
  padding-top: 0.65rem;
  margin-top: 0.3rem;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
}
.trn-fee-row.discount { color: var(--teal); }
.trn-fee-row strong.trn-accent { color: var(--accent); }
.trn-fee-row strong.trn-primary { color: var(--primary); }

.trn-field { margin-bottom: 1.2rem; }
.trn-field > label {
  display: block;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.trn-field > label .req { color: var(--accent-dark); }
.trn-field input[type="text"],
.trn-field input[type="email"],
.trn-field input[type="tel"],
.trn-field input[type="date"],
.trn-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.trn-field input:focus, .trn-field textarea:focus {
  outline: none;
  border-color: var(--primary-mid);
  box-shadow: 0 0 0 3px rgba(27, 94, 160, 0.1);
}
.trn-field textarea { resize: vertical; min-height: 84px; }
.trn-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.9rem; }

.trn-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--gray-200);
}

.trn-terms-box {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  font-size: 0.8rem;
  color: var(--gray-600);
  max-height: 120px;
  overflow-y: auto;
  line-height: 1.6;
}
.trn-terms-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.trn-terms-check input { accent-color: var(--accent); width: 16px; height: 16px; }

.trn-alert { padding: 1.1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-size: 0.88rem; }
.trn-alert-success { background: var(--teal-light); border: 1px solid rgba(0, 129, 138, 0.3); color: #045c62; text-align: center; }
.trn-alert-success h4 { color: #045c62; margin-bottom: 0.3rem; font-size: 1.05rem; }
.trn-alert-success p { color: #0a5359; max-width: none; }
.trn-alert-error { background: #fdecec; border: 1px solid rgba(191, 63, 63, 0.35); color: #8a2c2c; }

/* ── Modals ───────────────────────────────────────────────────── */
.trn-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 24, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 100000 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}
.trn-modal-overlay.active { display: flex; }
.trn-modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.8rem;
  position: relative;
}
.trn-modal-content.trn-modal-wide { max-width: 800px; text-align: center; }
.trn-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--gray-400);
  line-height: 1;
}
.trn-modal-close:hover { color: var(--text); }
.trn-modal-tag { font-size: 0.7rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.trn-modal-title { margin: 0.4rem 0 0.9rem; font-size: 1.25rem; }
.trn-modal-block { margin-bottom: 1rem; }
.trn-modal-block strong { font-size: 0.85rem; color: var(--text); display: block; margin-bottom: 0.2rem; }
.trn-modal-block p { font-size: 0.84rem; color: var(--gray-600); margin: 0; line-height: 1.55; max-width: none; }
.trn-modal-doc-title { margin-bottom: 0.9rem; font-size: 1.1rem; }
.trn-modal-doc-img { width: 100%; max-height: 75vh; object-fit: contain; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); }
.trn-modal-actions { text-align: right; }

/* ── Course detail pages ──────────────────────────────────────── */
.trn-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.trn-detail-main { min-width: 0; }
.trn-detail-block { margin-bottom: 2.75rem; }
.trn-detail-block:last-child { margin-bottom: 0; }
.trn-detail-block h2 { margin-bottom: 1rem; font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.trn-detail-lede { font-size: 1rem; color: var(--gray-600); max-width: 62ch; }

.trn-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.6rem 1.5rem;
}
.trn-detail-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.trn-detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.trn-detail-list strong { color: var(--text); }

.trn-detail-equip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.trn-detail-equip-row span {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
}

.trn-outcome-card {
  background: var(--primary-light);
  border: 1px solid rgba(1, 58, 110, 0.14);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
}
.trn-outcome-card p { color: var(--text); max-width: none; margin: 0; line-height: 1.65; }

.trn-detail-schedule-img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  cursor: zoom-in;
  display: block;
}
.trn-detail-schedule-note {
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-top: 0.6rem;
}

.trn-detail-sidebar { position: sticky; top: 7.5rem; }
.trn-enroll-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.trn-enroll-card-head {
  background: var(--ind-black, var(--primary));
  padding: 1.4rem 1.5rem;
}
.trn-enroll-card-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem; display: block; }
.trn-enroll-card-title { color: var(--white); font-size: 1.05rem; margin: 0; line-height: 1.3; }
.trn-enroll-card-body { padding: 1.4rem 1.5rem 1.6rem; }
.trn-enroll-fee-row { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 0.9rem; margin-bottom: 0.9rem; border-bottom: 1px solid var(--gray-100); }
.trn-enroll-fee-row .dur { font-size: 0.8rem; font-weight: 700; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.04em; }
.trn-enroll-fee-row .fee { font-family: "Barlow", sans-serif; font-size: 1.35rem; font-weight: 800; color: var(--accent); }
.trn-enroll-perk-list { list-style: none; padding: 0; margin: 0 0 1.3rem; font-size: 0.84rem; color: var(--gray-600); }
.trn-enroll-perk-list li { position: relative; padding-left: 20px; margin-bottom: 0.5rem; }
.trn-enroll-perk-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.trn-enroll-card .ind-btn { width: 100%; justify-content: center; }
.trn-enroll-card-note { font-size: 0.74rem; color: var(--gray-400); text-align: center; margin-top: 0.75rem; }

.trn-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.trn-related-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.trn-related-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.trn-related-card .trn-course-eyebrow { margin-bottom: 0.5rem; }
.trn-related-card strong { display: block; color: var(--text); font-size: 0.95rem; margin-bottom: 0.3rem; }
.trn-related-card span { font-size: 0.8rem; color: var(--gray-600); }

/* ── Standalone enrollment page chrome ───────────────────────────
   Minimal header/footer for training-enroll.html: no site nav,
   just a way back. "Only the form on screen."
   ════════════════════════════════════════════════════════════ */
.trn-bare-header {
  border-bottom: 1px solid var(--gray-200);
  padding: 1.1rem 0;
}
.trn-bare-header .container { display: flex; align-items: center; justify-content: space-between; }
.trn-bare-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gray-600);
  text-decoration: none;
}
.trn-bare-back:hover { color: var(--accent); }

.trn-bare-intro { text-align: center; max-width: 620px; margin: 0 auto; }
.trn-bare-intro .overline { display: block; }

.trn-bare-footer {
  border-top: 1px solid var(--gray-200);
  padding: 1.4rem 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-400);
}
.trn-bare-footer a { color: var(--gray-400); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .trn-steps-bar { padding: 0; }
  .trn-step-label { display: none; }
  .trn-docs-head { align-items: flex-start; }
}
@media (max-width: 980px) {
  .trn-detail-layout { grid-template-columns: 1fr; }
  .trn-detail-sidebar { position: static; }
}

/* ── Quick Registration Modal & High Visibility CTAs ───────────────── */

/* Mobile Header CTA Button */
.mobile-header-cta {
  display: none;
  background: #f97316 !important;
  color: #ffffff !important;
  padding: 0.4rem 0.8rem !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.4) !important;
  white-space: nowrap !important;
  margin-left: auto;
  margin-right: 0.5rem;
}
@media (max-width: 900px) {
  .mobile-header-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* Floating Quick Register Button (Desktop) */
.trn-floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.75rem 1.35rem;
  border-radius: 50px;
  border: none;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.trn-floating-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.6);
}

/* Sticky Bottom Registration Bar (Mobile) */
.trn-mobile-sticky-bar {
  display: none;
}
@media (max-width: 768px) {
  .trn-floating-cta {
    display: none !important;
  }
  .trn-mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #0f172a;
    border-top: 2px solid #f97316;
    padding: 0.65rem 1rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .trn-sticky-info {
    display: flex;
    flex-direction: column;
  }
  .trn-sticky-info strong {
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
  }
  .trn-sticky-info span {
    color: #f97316;
    font-size: 0.72rem;
    font-weight: 600;
  }
  .trn-sticky-btn {
    padding: 0.5rem 0.95rem !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    background: #f97316 !important;
    color: #ffffff !important;
    text-decoration: none;
  }
  body.ind-page {
    padding-bottom: 60px;
  }
}

/* Quick Register Modal Card Styling */
.qreg-modal-card {
  max-width: 540px !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3) !important;
}
@media (max-width: 640px) {
  .qreg-modal-card {
    padding: 1.35rem 1.1rem !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    border-radius: 14px !important;
  }
}
.qreg-header {
  margin-bottom: 1.25rem;
}
.qreg-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #f97316;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(249, 115, 22, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  margin-bottom: 0.4rem;
}
.qreg-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
}
.qreg-sub {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}
.qreg-field {
  margin-bottom: 1rem;
  text-align: left;
}
.qreg-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.35rem;
}
.qreg-field input,
.qreg-field select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #0f172a;
  background: #fff;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}
.qreg-field input:focus,
.qreg-field select:focus {
  outline: none;
  border-color: #f97316;
}
.qreg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 520px) {
  .qreg-grid {
    grid-template-columns: 1fr;
  }
}
.qreg-submit-btn {
  width: 100%;
  padding: 0.75rem 1rem !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  justify-content: center;
  border-radius: 8px !important;
  margin-top: 0.5rem;
  border: none;
  cursor: pointer;
}
.qreg-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.qreg-divider::before,
.qreg-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}
.qreg-divider span {
  padding: 0 0.75rem;
}
.qreg-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 1rem;
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
  box-sizing: border-box;
}
.qreg-wa-btn:hover {
  background: #1da851;
}
.qreg-footer-link {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}
.qreg-footer-link a {
  color: #ea580c;
  font-weight: 700;
  text-decoration: none;
}
.qreg-alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}
.qreg-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.qreg-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  text-align: center;
}
.qreg-alert-success h4 {
  margin: 0 0 0.3rem 0;
  font-size: 1rem;
}
.qreg-wa-confirm-btn {
  display: inline-block;
  margin-top: 0.75rem;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
}

/* ── Compact Stats Strip Overrides ──────────────────────────────── */
.stats-strip {
  padding: clamp(0.75rem, 1.8vw, 1.25rem) 0 !important;
}
.stat-item {
  padding: 0.4rem 1rem !important;
}

/* ── WhatsApp QA/QC Career Community Banner Section ────────────── */
.wa-community-section {
  padding: clamp(2.5rem, 4vw, 3.5rem) 0;
  background: #091322;
  position: relative;
  overflow: hidden;
}
.wa-community-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.wa-community-card {
  background: linear-gradient(135deg, #0d1e36 0%, #0b2820 100%);
  border: 1.5px solid rgba(37, 211, 102, 0.3);
  border-radius: 20px;
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
@media (max-width: 860px) {
  .wa-community-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.wa-community-badge {
  display: inline-block;
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.35);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.wa-community-card h2 {
  color: #ffffff;
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  font-weight: 800;
  margin: 0 0 0.6rem 0;
  line-height: 1.25;
}
.wa-community-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  max-width: 60ch;
}
@media (max-width: 860px) {
  .wa-community-sub {
    margin-left: auto;
    margin-right: auto;
  }
}
.wa-community-perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.8rem;
}
@media (max-width: 768px) {
  .wa-community-perks {
    grid-template-columns: 1fr;
    text-align: left;
  }
}
.wa-perk-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.wa-perk-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.wa-perk-item strong {
  display: block;
  color: #ffffff;
  font-size: 0.84rem;
  margin-bottom: 0.2rem;
}
.wa-perk-item p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  margin: 0;
  line-height: 1.35;
}
.wa-community-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}
@media (max-width: 860px) {
  .wa-community-actions {
    align-items: center;
  }
}
.wa-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.wa-join-btn:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}
.wa-community-note {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.2rem;
}
.wa-community-brand {
  display: flex;
  justify-content: center;
}
.wa-qr-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  max-width: 210px;
  width: 100%;
}
.wa-qr-head {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.wa-qr-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  display: block;
  border-radius: 8px;
}
.wa-qr-sub {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 0.4rem;
  font-weight: 600;
}

/* ── Interactive Student Helpdesk Chat Widget (Clean, Resizable & Mobile-Optimized) ─── */
.schat-trigger-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9990;
  background: #0f172a;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  padding: 0.6rem 1.1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}
@media (max-width: 768px) {
  .schat-trigger-btn {
    bottom: 80px; /* Sits nicely above the sticky bottom mobile bar */
    left: 16px;
    padding: 0.5rem 0.9rem;
    font-size: 0.78rem;
  }
}
.schat-trigger-btn:hover {
  transform: translateY(-2px);
  background: #1e293b;
}
.schat-trigger-icon {
  font-size: 1rem;
}

/* Chat Window Container (Resizable) */
.schat-window {
  position: fixed;
  bottom: 80px;
  left: 24px;
  width: 360px;
  min-width: 300px;
  max-width: calc(100vw - 32px);
  height: 490px;
  min-height: 380px;
  max-height: calc(100vh - 100px);
  resize: both;
  overflow: hidden;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border: 1px solid #cbd5e1;
  z-index: 9995;
  display: none;
  flex-direction: column;
  animation: schatSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 768px) {
  .schat-window {
    bottom: 75px;
    left: 16px;
    right: 16px;
    width: auto;
    height: 80vh;
    max-height: calc(100vh - 90px);
  }
}
.schat-window.active {
  display: flex;
}

.schat-header {
  background: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e293b;
  flex-shrink: 0;
}
.schat-header-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.schat-avatar {
  width: 32px;
  height: 32px;
  background: #1e293b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.schat-header-info strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.2;
}
.schat-header-info span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #94a3b8;
}
.schat-status-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
}
.schat-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}
.schat-close-btn:hover {
  color: #ffffff;
}

/* Chat Action Bar (Top Join WhatsApp Group & Register Buttons) */
.schat-action-bar {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.5rem 0.75rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-shrink: 0;
}
.schat-top-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}
.schat-top-btn:hover {
  opacity: 0.9;
}
.schat-top-wa {
  background: #25d366;
  color: #ffffff !important;
}
.schat-top-reg {
  background: #ea580c;
  color: #ffffff !important;
}

/* Chat Body */
.schat-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.schat-msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}
.schat-msg-bot {
  align-self: flex-start;
}
.schat-msg-user {
  align-self: flex-end;
}
.schat-msg-bot .schat-bubble {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 12px 12px 12px 2px;
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
  line-height: 1.5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.schat-msg-user .schat-bubble {
  background: #0f172a;
  color: #ffffff;
  border-radius: 12px 12px 2px 12px;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.4;
}

/* Chat FAQ Chips */
.schat-chips {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.3rem;
}
.schat-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.schat-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}
.schat-chip-accent {
  background: #ea580c !important;
  color: #ffffff !important;
  border-color: #c2410c !important;
}

.schat-inline-btn {
  display: inline-block;
  background: #ea580c;
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border: none;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: none !important;
}
.schat-wa-btn {
  background: #25d366 !important;
}

/* Chat Footer */
.schat-footer {
  padding: 0.65rem 0.85rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}
#schat-input-form {
  display: flex;
  gap: 0.4rem;
}
#schat-input-text {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.82rem;
  outline: none;
}
#schat-input-text:focus {
  border-color: #0f172a;
}
.schat-send-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

/* Visual Resizer Icon Indicator */
.schat-resize-handle {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 0.65rem;
  color: #94a3b8;
  pointer-events: none;
  user-select: none;
}
