/* ================================================
   RxOnDemand Telehealth — Premium Design System
   Healthcare-grade UI: HIPAA-forward, accessible,
   mobile-first, trust-forward design.
   ================================================ */

/* ------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------ */
:root {
  /* Primary — Medical Blue */
  --rx-primary: #1d4ed8;
  --rx-primary-hover: #1e40af;
  --rx-primary-light: #eff6ff;
  --rx-primary-100: #dbeafe;
  --rx-primary-500: #3b82f6;
  --rx-primary-600: #2563eb;
  --rx-primary-700: #1d4ed8;

  /* Accent — Healthcare Teal */
  --rx-teal: #0d9488;
  --rx-teal-light: #f0fdfa;

  /* Semantic */
  --rx-success: #059669;
  --rx-success-light: #ecfdf5;
  --rx-warning: #d97706;
  --rx-warning-light: #fffbeb;
  --rx-danger: #dc2626;
  --rx-danger-light: #fef2f2;

  /* Neutrals */
  --rx-gray-50: #f8fafc;
  --rx-gray-100: #f1f5f9;
  --rx-gray-200: #e2e8f0;
  --rx-gray-300: #cbd5e1;
  --rx-gray-400: #94a3b8;
  --rx-gray-500: #64748b;
  --rx-gray-600: #475569;
  --rx-gray-700: #334155;
  --rx-gray-800: #1e293b;
  --rx-gray-900: #0f172a;

  /* Surfaces */
  --rx-bg: #f1f5f9;
  --rx-surface: #ffffff;

  /* Shadows */
  --rx-shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --rx-shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --rx-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.04);
  --rx-shadow-md: 0 10px 15px -3px rgba(0,0,0,0.06), 0 4px 6px -4px rgba(0,0,0,0.03);
  --rx-shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.06), 0 8px 10px -6px rgba(0,0,0,0.03);
  --rx-shadow-focus: 0 0 0 3px rgba(59,130,246,0.25);
  --rx-shadow-focus-danger: 0 0 0 3px rgba(220,38,38,0.25);

  /* Radii */
  --rx-radius-sm: 8px;
  --rx-radius: 12px;
  --rx-radius-lg: 16px;
  --rx-radius-xl: 20px;
  --rx-radius-full: 9999px;

  /* Motion */
  --rx-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --rx-duration: 200ms;
  --rx-duration-slow: 350ms;

  /* Typography */
  --rx-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, sans-serif;

  /* Content width */
  --rx-content-max: 680px;
}

/* ------------------------------------------------
   2. BASE & TYPOGRAPHY
   ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--rx-font);
  background: var(--rx-bg);
  color: var(--rx-gray-800);
  line-height: 1.6;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--rx-gray-900);
  line-height: 1.3;
  font-weight: 600;
}

/* ------------------------------------------------
   3. TOP ACCENT BAR
   ------------------------------------------------ */
.accent-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--rx-primary-700), var(--rx-teal), var(--rx-primary-500));
  flex-shrink: 0;
}

/* ------------------------------------------------
   4. APP HEADER
   ------------------------------------------------ */
.app-header {
  background: var(--rx-surface);
  border-bottom: 1px solid var(--rx-gray-200);
  padding: 0.65rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: var(--rx-shadow-xs);
}

/* Centre-align header content to match wizard & footer */
.app-header > .container {
  max-width: var(--rx-content-max);
  padding: 0;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--rx-gray-900);
}

.header-brand i {
  font-size: 1.25rem;
  color: var(--rx-primary-700);
}

.header-brand-name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Header badges */
.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: var(--rx-radius-full);
  border: 1px solid var(--rx-gray-200);
  background: var(--rx-gray-50);
  color: var(--rx-gray-500);
  white-space: nowrap;
  line-height: 1;
}

.header-badge i { font-size: 0.65rem; }

.header-badge--hipaa {
  color: var(--rx-teal);
  border-color: rgba(13,148,136,0.2);
  background: var(--rx-teal-light);
}

.header-badge--timer {
  font-variant-numeric: tabular-nums;
}

.header-badge--timer.warning {
  color: var(--rx-warning);
  border-color: rgba(217,119,6,0.25);
  background: var(--rx-warning-light);
}

.header-badge--timer.danger {
  color: var(--rx-danger);
  border-color: rgba(220,38,38,0.25);
  background: var(--rx-danger-light);
  animation: badgePulse 1.5s ease infinite;
}

.header-badge--online {
  color: var(--rx-success);
  border-color: rgba(5,150,105,0.2);
  background: var(--rx-success-light);
}

.header-badge--offline {
  color: var(--rx-danger);
  border-color: rgba(220,38,38,0.2);
  background: var(--rx-danger-light);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ------------------------------------------------
   5. HORIZONTAL STEPPER (Desktop/Tablet)
   ------------------------------------------------ */
.stepper-section {
  background: var(--rx-surface);
  border-bottom: 1px solid var(--rx-gray-100);
  padding: 1rem 1rem 0.75rem;
}

/* Centre-align stepper to match header & footer */
.stepper-section > .container {
  max-width: var(--rx-content-max);
  padding: 0;
}

.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  flex-shrink: 0;
  cursor: default;
}

.stepper-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  background: var(--rx-gray-100);
  color: var(--rx-gray-400);
  border: 2px solid var(--rx-gray-200);
  transition: all var(--rx-duration) var(--rx-ease);
  position: relative;
  z-index: 2;
}

.stepper-label {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--rx-gray-400);
  text-align: center;
  transition: color var(--rx-duration) var(--rx-ease);
  letter-spacing: 0.02em;
  max-width: 64px;
  line-height: 1.2;
  text-transform: uppercase;
}

.stepper-connector {
  flex: 1;
  height: 2px;
  background: var(--rx-gray-200);
  margin-top: 18px;
  min-width: 16px;
  transition: background var(--rx-duration-slow) var(--rx-ease);
}

/* Active step */
.stepper-step.active .stepper-icon {
  background: var(--rx-primary-light);
  color: var(--rx-primary-700);
  border-color: var(--rx-primary-500);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
}

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

/* Completed step */
.stepper-step.completed .stepper-icon {
  background: var(--rx-success);
  color: white;
  border-color: var(--rx-success);
}

.stepper-step.completed .stepper-label {
  color: var(--rx-success);
}

.stepper-connector.completed {
  background: var(--rx-success);
}

/* ------------------------------------------------
   6. MOBILE STEPPER
   ------------------------------------------------ */
.stepper-mobile {
  padding: 0.75rem 0;
}

.stepper-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.stepper-mobile-step {
  font-size: 0.7rem;
  color: var(--rx-gray-400);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stepper-mobile-name {
  font-size: 0.8rem;
  color: var(--rx-gray-800);
  font-weight: 600;
}

.stepper-mobile-track {
  height: 4px;
  background: var(--rx-gray-200);
  border-radius: var(--rx-radius-full);
  overflow: hidden;
}

.stepper-mobile-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rx-primary-700), var(--rx-primary-500));
  border-radius: var(--rx-radius-full);
  transition: width var(--rx-duration-slow) var(--rx-ease);
}

/* ------------------------------------------------
   7. WIZARD CONTENT AREA
   ------------------------------------------------ */
.wizard-content {
  max-width: var(--rx-content-max);
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.step-card {
  background: var(--rx-surface);
  border-radius: var(--rx-radius-lg);
  box-shadow: var(--rx-shadow-sm);
  padding: 2rem;
  border: 1px solid var(--rx-gray-100);
}

.step-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--rx-gray-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-card h2 i {
  color: var(--rx-primary-500);
}

.step-card .step-description {
  color: var(--rx-gray-500);
  margin-bottom: 1.5rem;
  font-size: 0.925rem;
}

.step-card .card {
  border: 1px solid var(--rx-gray-200);
  border-radius: var(--rx-radius);
  box-shadow: none;
  background: var(--rx-surface);
}

.step-card .card h6 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rx-gray-700);
}

/* ------------------------------------------------
   8. NAVIGATION BUTTONS
   ------------------------------------------------ */
.wizard-nav {
  max-width: var(--rx-content-max);
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.wizard-nav .btn-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--rx-radius);
  background: var(--rx-surface);
  color: var(--rx-gray-600);
  border: 1px solid var(--rx-gray-300);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--rx-duration) var(--rx-ease);
  cursor: pointer;
}

.wizard-nav .btn-nav-back:hover {
  background: var(--rx-gray-50);
  border-color: var(--rx-gray-400);
  color: var(--rx-gray-800);
}

.wizard-nav .btn-nav-next {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 2rem;
  border-radius: var(--rx-radius);
  background: linear-gradient(135deg, var(--rx-primary-600), var(--rx-primary-700));
  color: white;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(29,78,216,0.25);
  transition: all var(--rx-duration) var(--rx-ease);
  cursor: pointer;
}

.wizard-nav .btn-nav-next:hover {
  background: linear-gradient(135deg, var(--rx-primary-700), var(--rx-primary-hover));
  box-shadow: 0 4px 12px rgba(29,78,216,0.35);
  transform: translateY(-1px);
}

.wizard-nav .btn-nav-next:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(29,78,216,0.3);
}

/* ------------------------------------------------
   9. FORMS & INPUTS
   ------------------------------------------------ */
.form-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--rx-gray-700);
  margin-bottom: 0.35rem;
}

.form-control,
.form-select {
  border-radius: var(--rx-radius-sm);
  border: 1.5px solid var(--rx-gray-300);
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  color: var(--rx-gray-800);
  background: var(--rx-surface);
  transition: all var(--rx-duration) var(--rx-ease);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--rx-primary-500);
  box-shadow: var(--rx-shadow-focus);
  outline: none;
}

.form-control::placeholder {
  color: var(--rx-gray-400);
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
  border-color: var(--rx-danger);
}

.form-control.is-invalid:focus,
.was-validated .form-control:invalid:focus {
  box-shadow: var(--rx-shadow-focus-danger);
}

.form-check-input {
  border-color: var(--rx-gray-300);
  width: 1.1em;
  height: 1.1em;
}

.form-check-input:checked {
  background-color: var(--rx-primary-600);
  border-color: var(--rx-primary-600);
}

.form-check-input:focus {
  box-shadow: var(--rx-shadow-focus);
}

.form-check-label {
  font-size: 0.875rem;
  color: var(--rx-gray-700);
}

.input-group-text {
  border-radius: var(--rx-radius-sm);
  background: var(--rx-gray-50);
  border: 1.5px solid var(--rx-gray-300);
  color: var(--rx-gray-500);
}

/* ------------------------------------------------
   10. BUTTONS
   ------------------------------------------------ */
.btn-primary {
  background: var(--rx-primary-600);
  border-color: var(--rx-primary-600);
  border-radius: var(--rx-radius-sm);
  font-weight: 500;
  transition: all var(--rx-duration) var(--rx-ease);
}

.btn-primary:hover {
  background: var(--rx-primary-700);
  border-color: var(--rx-primary-700);
  box-shadow: 0 2px 6px rgba(29,78,216,0.2);
}

.btn-outline-primary {
  color: var(--rx-primary-600);
  border-color: var(--rx-gray-300);
  border-radius: var(--rx-radius-sm);
  font-weight: 500;
  background: var(--rx-surface);
  transition: all var(--rx-duration) var(--rx-ease);
}

.btn-outline-primary:hover {
  background: var(--rx-primary-light);
  color: var(--rx-primary-700);
  border-color: var(--rx-primary-500);
}

.btn-outline-primary.active,
.btn-outline-primary:active {
  background: var(--rx-primary-100) !important;
  color: var(--rx-primary-700) !important;
  border-color: var(--rx-primary-500) !important;
  box-shadow: inset 0 1px 2px rgba(29,78,216,0.1) !important;
}

.btn-outline-secondary {
  border-radius: var(--rx-radius-sm);
  border-color: var(--rx-gray-300);
  color: var(--rx-gray-600);
}

.btn-outline-secondary:hover {
  background: var(--rx-gray-50);
  color: var(--rx-gray-800);
}

.btn-link {
  color: var(--rx-primary-600);
  font-weight: 500;
  text-decoration: none;
}

.btn-link:hover {
  color: var(--rx-primary-700);
  text-decoration: underline;
}

/* ------------------------------------------------
   11. PROVIDER CARDS
   ------------------------------------------------ */
.provider-card {
  cursor: pointer;
  transition: all var(--rx-duration) var(--rx-ease);
  border: 2px solid transparent;
  border-radius: var(--rx-radius) !important;
  background: var(--rx-surface);
}

.provider-card:hover {
  border-color: var(--rx-primary-500);
  box-shadow: var(--rx-shadow);
  transform: translateY(-2px);
}

.provider-card.selected {
  border-color: var(--rx-primary-600);
  background: var(--rx-primary-light);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.provider-card .card-body {
  padding: 1.25rem;
}

/* ------------------------------------------------
   12. TIME SLOT BUTTONS
   ------------------------------------------------ */
.slot-btn {
  min-width: 95px;
  padding: 0.45rem 0.85rem;
  border-radius: var(--rx-radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: all var(--rx-duration) var(--rx-ease);
}

.slot-btn.selected {
  background: var(--rx-primary-600) !important;
  color: white !important;
  border-color: var(--rx-primary-600) !important;
  box-shadow: 0 2px 6px rgba(29,78,216,0.3);
}

/* ------------------------------------------------
   13. CALENDAR
   ------------------------------------------------ */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--rx-radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--rx-duration) var(--rx-ease);
  color: var(--rx-gray-700);
}

.calendar-day:hover:not(.disabled):not(.empty) {
  background: var(--rx-primary-light);
  color: var(--rx-primary-700);
}

.calendar-day.selected {
  background: var(--rx-primary-600);
  color: white;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(29,78,216,0.25);
}

.calendar-day.today {
  border: 2px solid var(--rx-primary-500);
  font-weight: 700;
  color: var(--rx-primary-700);
}

/* When today is also the selected day, keep the text white on the blue fill
   (otherwise the .today dark-blue color wins and the number is unreadable). */
.calendar-day.selected.today {
  color: white;
}

.calendar-day.disabled {
  color: var(--rx-gray-300);
  cursor: default;
}

.calendar-day.empty {
  cursor: default;
}

/* Compact calendar variant for schedule step */
.calendar-grid--compact {
  gap: 2px;
}
.calendar-grid--compact .calendar-day {
  aspect-ratio: auto;
  height: 30px;
  font-size: 0.75rem;
  border-radius: 4px;
}
.calendar-grid--compact .cal-hdr {
  text-align: center;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--rx-gray-400);
  padding: 2px 0;
}
.schedule-cal-card {
  border: 1px solid var(--rx-gray-200);
  box-shadow: none;
}

/* Wider layout when schedule columns are present */
@media (min-width: 768px) {
  .wizard-content:has(.schedule-columns) {
    max-width: 860px;
  }
}

/* Compact slot buttons */
.schedule-columns .slot-btn {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
}

/* ------------------------------------------------
   14. ALERTS
   ------------------------------------------------ */
.alert {
  border-radius: var(--rx-radius);
  font-size: 0.875rem;
  border: 1px solid;
}

.alert-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.alert-success {
  background: var(--rx-success-light);
  border-color: #a7f3d0;
  color: #065f46;
}

.alert-warning {
  background: var(--rx-warning-light);
  border-color: #fde68a;
  color: #92400e;
}

.alert-danger {
  background: var(--rx-danger-light);
  border-color: #fecaca;
  color: #991b1b;
}

/* ------------------------------------------------
   15. BADGES
   ------------------------------------------------ */
.badge {
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--rx-radius-full);
}

/* ------------------------------------------------
   16. TELEHEALTH VIDEO
   ------------------------------------------------ */
.video-container {
  background: #0f172a;
  border-radius: var(--rx-radius-lg) var(--rx-radius-lg) 0 0;
  overflow: hidden;
  position: relative;
}

.video-remote {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.video-local {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 180px;
  border-radius: var(--rx-radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.15);
}

.video-local video {
  width: 100%;
  display: block;
}

.video-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: linear-gradient(180deg, rgba(15,23,42,0.8), #0f172a);
}

.video-controls .btn {
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--rx-duration) var(--rx-ease);
}

.video-controls .btn-light:hover {
  background: rgba(255,255,255,0.95);
  transform: scale(1.05);
}

.video-controls .btn-danger {
  box-shadow: 0 2px 8px rgba(220,38,38,0.4);
}

.video-controls .btn-danger:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(220,38,38,0.5);
}

/* ------------------------------------------------
   17. QUEUE ANIMATION
   ------------------------------------------------ */
.pulse {
  animation: pulse 2s var(--rx-ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.97); }
}

/* ------------------------------------------------
   18. LOADING & SKELETON
   ------------------------------------------------ */
.skeleton {
  background: linear-gradient(90deg, var(--rx-gray-100) 25%, var(--rx-gray-200) 50%, var(--rx-gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.spinner-border { --bs-spinner-border-width: 2.5px; }

/* ------------------------------------------------
   19. TRANSITIONS
   ------------------------------------------------ */
.fade-in {
  animation: fadeIn var(--rx-duration-slow) var(--rx-ease);
}

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

/* ------------------------------------------------
   20. TRUST FOOTER
   ------------------------------------------------ */
.trust-footer {
  padding: 0.65rem 1rem;
  text-align: center;
  border-top: 1px solid var(--rx-gray-200);
  background: var(--rx-surface);
}

/* Centre-align footer content to match wizard & header */
.trust-footer > .container {
  max-width: var(--rx-content-max);
  padding: 0;
}

.trust-footer-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.trust-footer-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  color: var(--rx-gray-400);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.trust-footer-item i {
  font-size: 0.7rem;
  color: var(--rx-teal);
}

.trust-footer-divider {
  width: 1px;
  height: 12px;
  background: var(--rx-gray-200);
}

/* ------------------------------------------------
   21. MODAL
   ------------------------------------------------ */
.modal-content {
  border-radius: var(--rx-radius-lg);
  border: none;
  box-shadow: var(--rx-shadow-lg);
  overflow: hidden;
}

.modal-header { border-bottom: 1px solid var(--rx-gray-100); }
.modal-footer { border-top: 1px solid var(--rx-gray-100); }

/* ------------------------------------------------
   22. TOAST
   ------------------------------------------------ */
.toast {
  border-radius: var(--rx-radius);
  box-shadow: var(--rx-shadow-md);
  border: none;
}

/* ------------------------------------------------
   23. PROGRESS BAR
   ------------------------------------------------ */
.progress {
  border-radius: var(--rx-radius-full);
  background: var(--rx-gray-200);
}

.progress-bar {
  background: linear-gradient(90deg, var(--rx-primary-700), var(--rx-primary-500));
  border-radius: var(--rx-radius-full);
  transition: width var(--rx-duration-slow) var(--rx-ease);
}

/* ------------------------------------------------
   24. CARD VARIANTS
   ------------------------------------------------ */
.card.border-success {
  border-color: #a7f3d0 !important;
  background: var(--rx-success-light);
}

.card.border-primary {
  border-color: #bfdbfe !important;
  background: var(--rx-primary-light);
}

/* ------------------------------------------------
   25. ACCESSIBILITY
   ------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--rx-primary-500);
  outline-offset: 2px;
}

.btn:focus-visible {
  box-shadow: var(--rx-shadow-focus);
}

input[autocomplete="off"] {
  -webkit-text-security: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------
   26. RESPONSIVE — TABLET
   ------------------------------------------------ */
@media (max-width: 768px) {
  .stepper { gap: 0; }

  .stepper-icon {
    width: 30px;
    height: 30px;
    font-size: 0.7rem;
  }

  .stepper-connector {
    margin-top: 15px;
    min-width: 8px;
  }

  .stepper-label {
    font-size: 0.5rem;
    max-width: 48px;
  }

  .step-card { padding: 1.5rem; }
}

/* ------------------------------------------------
   27. RESPONSIVE — MOBILE
   ------------------------------------------------ */
@media (max-width: 576px) {
  .wizard-content {
    margin: 1rem auto;
    padding: 0 0.75rem;
  }

  .step-card {
    padding: 1.25rem;
    border-radius: var(--rx-radius);
  }

  .step-card h2 { font-size: 1.15rem; }
  .step-card .step-description { font-size: 0.85rem; }

  .video-local {
    width: 110px;
    bottom: 10px;
    right: 10px;
  }

  .header-badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
  }

  .wizard-nav .btn-nav-next { padding: 0.6rem 1.5rem; }

  .trust-footer-items { gap: 0.5rem; }
  .trust-footer-divider { display: none; }
  .trust-footer-item { font-size: 0.6rem; }
  .provider-card:hover { transform: none; }
}

/* ------------------------------------------------
   28. DETAIL ROWS
   ------------------------------------------------ */
.step-card .row .small.text-muted {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rx-gray-400) !important;
  margin-bottom: 0.15rem;
}

.step-card .row .fw-semibold {
  font-size: 0.875rem;
  color: var(--rx-gray-800);
}

/* ------------------------------------------------
   29. SECTION DIVIDERS
   ------------------------------------------------ */
.step-card hr {
  border-color: var(--rx-gray-100);
  opacity: 1;
}

/* ------------------------------------------------
   30. HIPAA TRUST BANNER
   ------------------------------------------------ */
.hipaa-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--rx-teal-light);
  border-radius: var(--rx-radius-sm);
  border: 1px solid rgba(13, 148, 136, 0.15);
  font-size: 0.75rem;
  color: var(--rx-gray-600);
}

.hipaa-banner i {
  color: var(--rx-teal);
  font-size: 0.8rem;
}

/* ------------------------------------------------
   31. PRINT
   ------------------------------------------------ */
@media print {
  .app-header, .stepper-section, .wizard-nav,
  .trust-footer, .accent-bar {
    display: none !important;
  }

  .step-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
