/**
 * Healthcare Pharma With AI SUMMIT 2026 — ASIA HEALTHCARE & LIFESCIENCES IDEATION SPRINT
 * Unified Registration Portal Stylesheet
 * Strictly powered by shared tokens from css/theme.css
 * Full Light & Dark Mode Parity, WCAG AA Contrast, Responsive (375px - 1440px), Motion Safe
 */

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES MAPPING TO SHARED THEME TOKENS
   -------------------------------------------------------------------------- */
:root {
  --sr-bg: var(--bg);
  --sr-bg-alt: var(--bg-alt);
  --sr-surface: var(--surface);
  --sr-surface-hover: var(--surface-hover);
  --sr-surface-2: var(--surface-2);
  --sr-card: var(--card);
  --sr-card-alt: var(--card-alt);
  --sr-border: var(--border);
  --sr-border-subtle: var(--border-subtle);
  --sr-text: var(--text);
  --sr-text-secondary: var(--text-secondary);
  --sr-text-muted: var(--text-muted);
  --sr-primary: var(--primary);
  --sr-primary-hover: var(--primary-hover);
  --sr-primary-light: var(--primary-light);
  --sr-accent: var(--accent);
  --sr-accent-soft: var(--accent-soft);
  --sr-ring: var(--ring);
  --sr-shadow-sm: var(--shadow-sm);
  --sr-shadow-md: var(--shadow-md);
  --sr-shadow-lg: var(--shadow-lg);
  --sr-error: var(--error);
  --sr-success: var(--success);
  --sr-warning: var(--warning);
  --sr-grid-line: var(--grid-line);
  --sr-navbar-bg: var(--navbar-bg);
  --sr-navbar-border: var(--navbar-border);
  --sr-overlay: var(--overlay);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background-color: var(--sr-bg) !important;
  color: var(--sr-text) !important;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Technical Grid */
.sr-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--sr-bg);
  background-image:
    linear-gradient(var(--sr-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--sr-grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   3. UNIFIED HEADER (MATCHING MAIN SITE)
   -------------------------------------------------------------------------- */
.sr-portal-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 68px;
  background: var(--sr-navbar-bg) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sr-navbar-border);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  box-shadow: var(--sr-shadow-sm);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.sr-brand-wrap {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.sr-brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Theme-adaptive logo switching */
[data-theme="dark"] .sr-brand-logo--light,
:root:not([data-theme="light"]) .sr-brand-logo--light {
  display: none !important;
}

[data-theme="dark"] .sr-brand-logo--dark,
:root:not([data-theme="light"]) .sr-brand-logo--dark {
  display: block !important;
}

[data-theme="light"] .sr-brand-logo--light {
  display: block !important;
}

[data-theme="light"] .sr-brand-logo--dark {
  display: none !important;
}

/* Navigation items */
.sr-portal-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sr-nav-link {
  color: var(--sr-text-secondary) !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 6px 4px;
}

.sr-nav-link:hover {
  color: var(--sr-primary) !important;
}

[data-theme="light"] .sr-nav-link {
  color: var(--sr-text) !important;
  font-weight: 600;
}

[data-theme="light"] .sr-nav-link:hover {
  color: var(--sr-primary) !important;
}

/* Summit Database Connected Status Chip */
.sr-database-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--sr-accent-soft);
  border: 1px solid var(--sr-border);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sr-text);
  white-space: nowrap;
}

.sr-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--sr-success);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.25);
  display: inline-block;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .sr-live-dot {
    animation: srPulseDot 2s infinite ease-in-out;
  }
  @keyframes srPulseDot {
    0%, 100% {
      transform: scale(1);
      box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.25);
    }
    50% {
      transform: scale(1.15);
      box-shadow: 0 0 0 6px rgba(46, 204, 113, 0.1);
    }
  }
}

/* Header Back Button */
.sr-btn-back-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: var(--sr-surface-2);
  border: 1.5px solid var(--sr-border);
  color: var(--sr-text) !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}

.sr-btn-back-header:hover {
  background: var(--sr-accent-soft);
  border-color: var(--sr-primary);
  color: var(--sr-primary) !important;
  transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.sr-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.sr-nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--sr-text);
  border-radius: 4px;
  transition: all 0.25s ease;
}

.sr-mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  width: 100%;
  background: var(--sr-surface);
  border-bottom: 1px solid var(--sr-border);
  padding: 20px 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
  box-shadow: var(--sr-shadow-lg);
}

.sr-mobile-menu.open {
  display: flex;
}

.sr-mobile-menu .sr-nav-link {
  font-size: 16px;
  padding: 8px 0;
}

/* --------------------------------------------------------------------------
   4. HERO BANNER
   -------------------------------------------------------------------------- */
.sr-hero {
  position: relative;
  padding: 56px 6% 84px;
  text-align: center;
  background: var(--sr-bg);
  overflow: hidden;
}

.sr-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 460px;
  background: radial-gradient(ellipse at 50% 10%, var(--sr-accent-soft) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.sr-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .sr-hero-inner {
    animation: srHeroFadeRise 400ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  @keyframes srHeroFadeRise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.sr-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sr-accent-soft);
  border: 1px solid var(--sr-border);
  color: var(--sr-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 7px 18px;
  border-radius: 9999px;
  margin-bottom: 20px;
  box-shadow: var(--sr-shadow-sm);
}

.sr-hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sr-primary);
  box-shadow: 0 0 8px var(--sr-primary);
}

.sr-hero h1 {
  font-size: clamp(28px, 4.8vw, 50px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--sr-text);
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}

.sr-hero h1 span.sr-hero-highlight {
  color: var(--sr-primary);
  background: linear-gradient(135deg, var(--sr-primary) 0%, var(--sr-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sr-hero p {
  font-size: clamp(15px, 2vw, 17.5px);
  color: var(--sr-text-secondary);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   5. FORM CARD & CONTAINER
   -------------------------------------------------------------------------- */
.sr-container {
  max-width: 960px;
  margin: -48px auto 80px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
  width: 100%;
}

.sr-card {
  background: var(--sr-surface);
  border: 1px solid var(--sr-border);
  border-radius: 20px;
  box-shadow: var(--sr-shadow-lg);
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* --------------------------------------------------------------------------
   6. STEPPER COMPONENT
   -------------------------------------------------------------------------- */
.sr-stepper-wrap {
  position: relative;
  background: var(--sr-surface-2);
  border-bottom: 1px solid var(--sr-border);
  padding: 24px 20px;
}

/* Progress track line */
.sr-stepper-track {
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--sr-border-subtle);
  border-radius: 3px;
  z-index: 1;
}

.sr-stepper-progress {
  height: 100%;
  width: 0%;
  background: var(--sr-primary);
  border-radius: 3px;
  transition: width 350ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .sr-stepper-progress {
    transition: none !important;
  }
}

.sr-stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  z-index: 2;
  list-style: none;
}

.sr-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  user-select: none;
  cursor: default;
}

.sr-step-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sr-card);
  border: 2px solid var(--sr-border);
  color: var(--sr-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: var(--sr-shadow-sm);
}

.sr-step-badge svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.sr-step-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--sr-text-muted);
  transition: color 0.25s ease;
  white-space: nowrap;
}

/* Active Step */
.sr-step.active .sr-step-badge {
  background: var(--sr-primary);
  border-color: var(--sr-primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--sr-ring);
}

.sr-step.active .sr-step-label {
  color: var(--sr-primary);
  font-weight: 700;
}

/* Completed Step */
.sr-step.completed .sr-step-badge {
  background: var(--sr-accent-soft);
  border-color: var(--sr-primary);
  color: var(--sr-primary);
}

.sr-step.completed .sr-step-label {
  color: var(--sr-text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. FORM CONTENT AREA & SECTIONS
   -------------------------------------------------------------------------- */
.sr-form-area {
  padding: 40px 36px;
  position: relative;
}

.sr-section {
  display: none;
  opacity: 0;
}

.sr-section.active {
  display: block;
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .sr-section.active {
    animation: srStepSlideFade 250ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  @keyframes srStepSlideFade {
    from {
      opacity: 0;
      transform: translateX(12px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

.sr-section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--sr-text);
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}

.sr-section-subtitle {
  font-size: 15px;
  color: var(--sr-text-secondary);
  margin-bottom: 30px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   8. FORM FIELDS, INPUTS, LABELS & VALIDATION
   -------------------------------------------------------------------------- */
.sr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.sr-grid.single-col {
  grid-template-columns: 1fr;
}

.sr-field {
  margin-bottom: 22px;
  position: relative;
}

.sr-field.full-width {
  grid-column: 1 / -1;
}

.sr-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--sr-text);
  margin-bottom: 8px;
}

.sr-req {
  color: var(--sr-error);
  margin-left: 3px;
  font-weight: 700;
}

.sr-input,
.sr-select,
.sr-textarea {
  width: 100%;
  border: 1.5px solid var(--sr-border);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--sr-text);
  background: var(--sr-card-alt);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

[data-theme="light"] .sr-input,
[data-theme="light"] .sr-select,
[data-theme="light"] .sr-textarea {
  background: var(--sr-surface);
}

.sr-input::placeholder,
.sr-textarea::placeholder {
  color: var(--sr-text-muted);
}

.sr-input:focus,
.sr-select:focus,
.sr-textarea:focus {
  border-color: var(--sr-primary);
  box-shadow: 0 0 0 3.5px var(--sr-ring);
}

.sr-textarea {
  min-height: 120px;
  resize: vertical;
}

.sr-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Invalid / Error Input State */
.sr-input.sr-input-error,
.sr-select.sr-input-error,
.sr-textarea.sr-input-error {
  border-color: var(--sr-error) !important;
  box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.22) !important;
}

/* Inline Validation Message */
.sr-field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--sr-error);
  font-size: 13px;
  font-weight: 500;
  margin-top: 6px;
  line-height: 1.4;
}

.sr-field-error svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: var(--sr-error);
}

@media (prefers-reduced-motion: no-preference) {
  .sr-field-error {
    animation: srFadeIn 200ms ease;
  }
  @keyframes srFadeIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Browser Autofill Styling Override */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--sr-text) !important;
  -webkit-box-shadow: 0 0 0px 1000px var(--sr-card-alt) inset !important;
  box-shadow: 0 0 0px 1000px var(--sr-card-alt) inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

[data-theme="light"] input:-webkit-autofill,
[data-theme="light"] input:-webkit-autofill:hover,
[data-theme="light"] input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px var(--sr-surface) inset !important;
  box-shadow: 0 0 0px 1000px var(--sr-surface) inset !important;
}

/* --------------------------------------------------------------------------
   9. TRACK SELECTION CARDS
   -------------------------------------------------------------------------- */
.sr-track-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.sr-track-card {
  position: relative;
  background: var(--sr-card-alt);
  border: 2px solid var(--sr-border);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .sr-track-card {
  background: var(--sr-surface);
}

.sr-track-card:hover {
  border-color: var(--sr-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--sr-shadow-sm);
}

.sr-track-card.selected {
  border-color: var(--sr-primary);
  background: var(--sr-accent-soft);
  box-shadow: 0 0 0 1px var(--sr-primary), 0 8px 24px var(--sr-ring);
}

.sr-track-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.sr-track-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--sr-text);
  line-height: 1.3;
}

.sr-track-desc {
  font-size: 14px;
  color: var(--sr-text-secondary);
  line-height: 1.5;
}

.sr-track-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--sr-border);
  background: var(--sr-surface);
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.sr-track-card.selected .sr-track-check {
  background: var(--sr-primary);
  border-color: var(--sr-primary);
  color: #ffffff;
}

.sr-track-check svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

/* Hidden accessible radio */
.sr-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --------------------------------------------------------------------------
   10. MEMBERS STEP SUB-CARDS
   -------------------------------------------------------------------------- */
.sr-member-card {
  background: var(--sr-card-alt);
  border: 1.5px solid var(--sr-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
}

[data-theme="light"] .sr-member-card {
  background: var(--sr-surface-2);
}

.sr-member-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--sr-border);
}

.sr-member-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--sr-text);
}

.sr-member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sr-accent-soft);
  color: var(--sr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sr-member-avatar svg {
  width: 18px;
  height: 18px;
}

.sr-leader-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--sr-accent-soft);
  color: var(--sr-primary);
  border: 1px solid var(--sr-primary-light);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
}

.sr-btn-remove {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--sr-error);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sr-btn-remove:hover {
  background: var(--sr-error);
  color: #ffffff;
}

.sr-btn-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: var(--sr-accent-soft);
  border: 1.5px dashed var(--sr-primary);
  color: var(--sr-primary);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 24px;
}

.sr-btn-add:hover {
  background: var(--sr-primary);
  color: #ffffff;
  border-style: solid;
}

/* --------------------------------------------------------------------------
   11. FILE UPLOAD BOX (DRAG & DROP)
   -------------------------------------------------------------------------- */
.sr-upload-box {
  border: 2px dashed var(--sr-border);
  border-radius: 18px;
  padding: 36px 24px;
  text-align: center;
  background: var(--sr-card-alt);
  cursor: pointer;
  transition: all 0.25s ease;
}

[data-theme="light"] .sr-upload-box {
  background: var(--sr-surface-2);
}

.sr-upload-box:hover,
.sr-upload-box.dragover {
  border-color: var(--sr-primary);
  background: var(--sr-accent-soft);
}

.sr-upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: var(--sr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sr-upload-icon svg {
  width: 44px;
  height: 44px;
}

.sr-upload-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--sr-text);
  margin-bottom: 4px;
}

.sr-upload-subtitle {
  font-size: 13.5px;
  color: var(--sr-text-muted);
  margin-bottom: 18px;
}

.sr-upload-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  background: var(--sr-primary);
  color: #ffffff;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px var(--sr-ring);
}

.sr-upload-btn-label:hover {
  background: var(--sr-primary-hover);
  transform: translateY(-1px);
}

.sr-file-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: var(--sr-accent-soft);
  color: var(--sr-primary);
  font-weight: 600;
  font-size: 13.5px;
  border: 1px solid var(--sr-primary-light);
}

/* --------------------------------------------------------------------------
   12. REVIEW STEP CARDS
   -------------------------------------------------------------------------- */
.sr-review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.sr-review-card {
  background: var(--sr-card-alt);
  border: 1px solid var(--sr-border);
  border-radius: 16px;
  padding: 22px;
}

[data-theme="light"] .sr-review-card {
  background: var(--sr-surface-2);
}

.sr-review-card.full-width {
  grid-column: 1 / -1;
}

.sr-review-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sr-border);
}

.sr-review-card-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--sr-primary);
}

.sr-review-edit-btn {
  background: var(--sr-surface);
  border: 1px solid var(--sr-border);
  border-radius: 9999px;
  color: var(--sr-text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sr-review-edit-btn:hover {
  border-color: var(--sr-primary);
  color: var(--sr-primary);
  background: var(--sr-accent-soft);
}

.sr-review-item {
  margin-bottom: 14px;
}

.sr-review-item:last-child {
  margin-bottom: 0;
}

.sr-review-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--sr-text-muted);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sr-review-val {
  font-size: 15px;
  font-weight: 600;
  color: var(--sr-text);
  line-height: 1.45;
}

.sr-review-member-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sr-review-member-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--sr-surface);
  border: 1px solid var(--sr-border);
  border-radius: 10px;
}

/* --------------------------------------------------------------------------
   13. BUTTONS (PRIMARY, SECONDARY, ACTION BARS)
   -------------------------------------------------------------------------- */
.sr-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--sr-border);
  gap: 14px;
}

/* Shared Primary Pill Button (Matches Apply Now) */
.sr-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 9999px;
  background: var(--sr-primary);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 30px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 14px var(--sr-ring);
}

.sr-btn-primary:hover {
  background: var(--sr-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--sr-ring);
  color: #ffffff !important;
}

.sr-btn-primary:active {
  transform: translateY(0);
}

.sr-btn-primary:focus-visible {
  outline: 2px solid var(--sr-primary);
  outline-offset: 3px;
}

.sr-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Shared Secondary Pill Button (Matches Explore The Challenge) */
.sr-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid var(--sr-border);
  border-radius: 9999px;
  background: var(--sr-surface-hover);
  color: var(--sr-text) !important;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s ease;
}

.sr-btn-secondary:hover {
  border-color: var(--sr-primary);
  color: var(--sr-primary) !important;
  background: var(--sr-accent-soft);
}

.sr-btn-secondary:active {
  transform: translateY(0);
}

.sr-btn-secondary:focus-visible {
  outline: 2px solid var(--sr-primary);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   14. SUCCESS SCREEN
   -------------------------------------------------------------------------- */
.sr-success {
  text-align: center;
  padding: 56px 24px;
}

.sr-success-icon-tile {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.15);
  color: var(--sr-success);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 10px rgba(46, 204, 113, 0.08);
}

.sr-success-icon-tile svg {
  width: 46px;
  height: 46px;
  stroke-width: 2.2;
}

@media (prefers-reduced-motion: no-preference) {
  .sr-success-icon-tile {
    animation: srSuccessScaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
               srRippleCelebration 2s 0.5s infinite ease-out;
  }
  @keyframes srSuccessScaleIn {
    0% { transform: scale(0.4); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
  }
  @keyframes srRippleCelebration {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
    70% { box-shadow: 0 0 0 18px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
  }
}

.sr-success h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--sr-text);
  margin-bottom: 10px;
}

.sr-success p {
  color: var(--sr-text-secondary);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 20px;
}

.sr-reg-id-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--sr-accent-soft);
  border: 1.5px solid var(--sr-primary-light);
  color: var(--sr-primary);
  padding: 14px 26px;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin: 16px 0 24px;
}

.sr-btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sr-primary);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sr-btn-copy:hover {
  background: var(--sr-primary-hover);
}

.sr-download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sr-primary);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  margin-bottom: 24px;
}

.sr-download-link:hover {
  text-decoration: underline;
}

.sr-success-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   15. LOADING OVERLAY
   -------------------------------------------------------------------------- */
.sr-loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--sr-overlay);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.sr-loading-overlay.show {
  display: flex;
}

.sr-loading-card {
  background: var(--sr-surface);
  border: 1px solid var(--sr-border);
  border-radius: 20px;
  padding: 38px 32px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: var(--sr-shadow-lg);
}

.sr-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--sr-border);
  border-top-color: var(--sr-primary);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: srSpin 0.8s linear infinite;
}

@keyframes srSpin {
  to { transform: rotate(360deg); }
}

.sr-loading-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--sr-text);
  margin-bottom: 8px;
}

.sr-loading-text {
  font-size: 14.5px;
  color: var(--sr-text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   16. TOASTER NOTIFICATION STYLES (THEMED)
   -------------------------------------------------------------------------- */
.sr-toaster-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 420px;
  width: calc(100% - 48px);
}

.sr-toast {
  pointer-events: auto;
  position: relative;
  background: var(--sr-surface);
  border: 1.5px solid var(--sr-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--sr-shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sr-toast.sr-toast-show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sr-toast.sr-toast-hide {
  opacity: 0;
  transform: translateY(12px) scale(0.97);
}

.sr-toast-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sr-toast-content {
  flex: 1;
}

.sr-toast-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--sr-text);
  margin-bottom: 2px;
}

.sr-toast-message {
  font-size: 13.5px;
  color: var(--sr-text-secondary);
  line-height: 1.45;
}

.sr-toast-close {
  background: transparent;
  border: none;
  color: var(--sr-text-muted);
  cursor: pointer;
  padding: 2px;
}

.sr-toast-close:hover {
  color: var(--sr-text);
}

.sr-toast-warning .sr-toast-icon-wrap { color: var(--sr-warning); }
.sr-toast-error .sr-toast-icon-wrap { color: var(--sr-error); }
.sr-toast-success .sr-toast-icon-wrap { color: var(--sr-success); }
.sr-toast-info .sr-toast-icon-wrap { color: var(--sr-primary); }

/* --------------------------------------------------------------------------
   17. RESPONSIVE BREAKPOINTS (1440px, 768px, 375px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .sr-container {
    padding: 0 16px;
  }
  .sr-portal-nav .sr-nav-link {
    display: none;
  }
  .sr-nav-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .sr-portal-header {
    padding: 0 16px;
    height: 62px;
  }
  .sr-hero {
    padding: 42px 18px 72px;
  }
  .sr-container {
    margin-top: -36px;
    padding: 0 12px;
  }
  .sr-form-area {
    padding: 28px 20px;
  }
  .sr-grid,
  .sr-track-grid,
  .sr-review-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sr-stepper-wrap {
    padding: 20px 12px;
  }
  .sr-step-label {
    font-size: 13px;
  }
  .sr-database-chip {
    display: none; /* Shown in mobile drawer instead */
  }
}

@media (max-width: 640px) {
  .sr-stepper-track {
    top: 36px;
  }
  /* On mobile: show step number for all steps, label only for active step */
  .sr-step:not(.active) .sr-step-label {
    display: none;
  }
  .sr-step.active .sr-step-label {
    display: block;
    font-size: 12.5px;
  }
  .sr-step-badge {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .sr-actions {
    flex-direction: column-reverse;
    gap: 12px;
  }
  .sr-actions .sr-btn-primary,
  .sr-actions .sr-btn-secondary {
    width: 100%;
  }
  .sr-reg-id-card {
    flex-direction: column;
    font-size: 18px;
    gap: 10px;
    width: 100%;
  }
}

@media (max-width: 375px) {
  .sr-hero h1 {
    font-size: 26px;
  }
  .sr-form-area {
    padding: 22px 14px;
  }
  .sr-card {
    border-radius: 16px;
  }
}
