/* ==========================================================================
   Dr. Muhammad Awais Latif - Orthopedic Surgery Website
   Modern Clinical Luxury Design System
   ========================================================================== */

:root {
  /* Color Palette */
  --navy-950: #060B17;
  --navy-900: #0B1528;
  --navy-850: #0F1D38;
  --navy-800: #172B4D;
  
  --blue-600: #1D4ED8;
  --blue-500: #2563EB;
  --blue-400: #3B82F6;
  --blue-50: #EFF6FF;

  --cyan-500: #06B6D4;
  --cyan-400: #22D3EE;
  --cyan-50: #ECFEFF;

  --emerald-600: #059669;
  --emerald-500: #10B981;
  --emerald-50: #ECFDF5;

  --amber-500: #F59E0B;
  --amber-600: #D97706;
  --amber-50: #FFFBEB;

  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --white:     #FFFFFF;

  /* Semantic Variables */
  --primary: var(--blue-600);
  --primary-hover: #1E40AF;
  --primary-light: var(--blue-50);
  --accent: var(--cyan-500);
  --bg-dark: var(--navy-950);
  --surface-card: var(--white);
  --border-light: #E2E8F0;
  --text-main: var(--slate-900);
  --text-muted: var(--slate-600);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Radius & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(11, 21, 40, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(11, 21, 40, 0.08);
  --shadow-lg: 0 20px 40px -12px rgba(11, 21, 40, 0.12);
  --shadow-glow: 0 0 35px rgba(37, 99, 235, 0.2);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-main);
  background-color: #FAFAFC;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--slate-900);
  line-height: 1.25;
  font-weight: 700;
}

.text-gradient {
  background: linear-gradient(135deg, #0284C7 0%, #0EA5E9 50%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--text-muted) !important; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.justify-center { justify-content: center !important; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1.25rem; }

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Glass Panels */
.glass-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.glass-panel:hover {
  border-color: rgba(37, 99, 235, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 2.2;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600) 0%, #173FB2 100%);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(29, 78, 216, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1E40AF 0%, #142F85 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.45);
}

.btn-secondary {
  background: var(--slate-900);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--navy-850);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--slate-800);
  border: 1.5px solid var(--slate-200);
}

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

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--white);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #1EBE5B;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* Pulse dots */
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.pulse-green {
  background-color: var(--emerald-500);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite;
}

.pulse-cyan {
  background-color: var(--cyan-400);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7);
  animation: pulse-ring 2s infinite;
}

.pulse-amber {
  background-color: var(--amber-500);
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* ==========================================================================
   Header & Top Announcement Bar
   ========================================================================== */

.top-announcement-bar {
  background: var(--navy-950);
  color: var(--slate-200);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.announcement-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
}

.top-contact-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--slate-300);
}

.top-contact-links a:hover {
  color: var(--cyan-400);
}

/* Navigation Bar */
.main-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-normal);
}

.main-navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px -2px rgba(11, 21, 40, 0.06);
}

.main-navbar .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  max-width: 1380px;
  gap: 1.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand-icon-shield {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--cyan-500) 100%);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.brand-icon-shield svg {
  width: 22px;
  height: 22px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-text h1 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -0.01em;
  margin: 0;
}

.brand-text span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-600);
  letter-spacing: 0.02em;
  display: block;
  white-space: nowrap;
  line-height: 1.2;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.nav-links li {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-600);
  position: relative;
  padding: 0.35rem 0;
  white-space: nowrap;
  line-height: 1;
  display: inline-block;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--blue-600);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--blue-600);
  border-radius: var(--radius-full);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.phone-quick-call {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-800);
  background: var(--slate-100);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.phone-quick-call span {
  white-space: nowrap;
}

.phone-quick-call:hover {
  background: var(--blue-50);
  color: var(--blue-600);
}

.phone-quick-call svg {
  width: 16px;
  height: 16px;
  color: var(--blue-600);
  flex-shrink: 0;
}

.nav-cta-group .btn {
  padding: 0.62rem 1.35rem;
  font-size: 0.88rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: none;
  background: var(--slate-100);
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 10px;
  color: var(--slate-800);
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.mobile-menu-btn:hover {
  background: var(--slate-200);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.24) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(14, 165, 233, 0.16) 0%, transparent 50%),
              linear-gradient(180deg, #E0F2FE 0%, #F0F9FF 50%, #FFFFFF 100%);
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

/* Hero Left Column */
.credential-pill-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.cred-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.cred-pill.highlight {
  background: var(--emerald-50);
  color: var(--emerald-600);
  border-color: rgba(16, 185, 129, 0.2);
}

.hero-title {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-bio-lead {
  font-size: 1.12rem;
  color: var(--slate-600);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust-strip {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-200);
}

.avatar-stack {
  display: flex;
}

.avatar-stack span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-left: -10px;
}

.avatar-stack span:first-child {
  margin-left: 0;
}

.trust-stats-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--slate-900);
}

.trust-stats-text span {
  font-size: 0.85rem;
  color: var(--slate-500);
}

/* Hero Right Column - Doctor Card */
.doctor-hero-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.doctor-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #E2E8F0 0%, #CBD5E1 100%);
  aspect-ratio: 1 / 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-normal);
}

.doctor-hero-card:hover .doctor-portrait-img {
  transform: scale(1.03);
}

.avatar-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--blue-600) 100%);
  color: var(--white);
  padding: 2rem;
  text-align: center;
}

.avatar-fallback svg {
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.avatar-fallback h3 {
  color: var(--white);
  font-size: 1.35rem;
}

/* Floating Badges on Doctor Card */
.float-badge-exp {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(11, 21, 40, 0.88);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
  animation: floatBadgeExp 4.5s ease-in-out infinite;
}

.float-badge-satisfaction {
  position: absolute;
  bottom: -15px;
  right: 1.5rem;
  background: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  animation: floatBadgeSat 5s ease-in-out infinite;
}

@keyframes floatBadgeExp {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

@keyframes floatBadgeSat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(6px); }
}

.satisfaction-score {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--emerald-600);
  line-height: 1;
}

.satisfaction-label strong {
  display: block;
  font-size: 0.85rem;
  color: var(--slate-900);
}

.satisfaction-label span {
  font-size: 0.76rem;
  color: var(--slate-500);
}

.doctor-card-caption {
  margin-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.doctor-card-name {
  font-size: 1.25rem;
  color: var(--slate-900);
}

.doctor-card-sub {
  font-size: 0.85rem;
  color: var(--blue-600);
  font-weight: 600;
}

.doctor-hospital-tag {
  font-size: 0.82rem;
  color: var(--slate-500);
  background: var(--slate-100);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Trust Metrics & Credentials Bar
   ========================================================================== */

.trust-stats-section {
  background: var(--navy-950);
  color: var(--white);
  padding: 3rem 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.stat-number.gradient {
  background: linear-gradient(135deg, #60A5FA 0%, var(--cyan-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--slate-400);
  font-weight: 500;
}

/* Accreditation strip */
.accreditation-row {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.accred-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--slate-300);
  font-size: 0.88rem;
  font-weight: 600;
}

.accred-badge svg {
  width: 20px;
  height: 20px;
  color: var(--cyan-400);
}

.accred-badge.highlight-society svg {
  color: #FBBF24;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section-wrapper {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-pill {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}

.section-description {
  font-size: 1.05rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* ==========================================================================
   Institutional Experience & Hospital Affiliations
   ========================================================================== */

.affiliations-section {
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  position: relative;
}

.affiliations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

.affiliation-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.affiliation-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px -12px rgba(15, 23, 42, 0.12);
  border-color: var(--blue-400);
}

.affiliation-image-banner {
  height: 145px;
  position: relative;
  overflow: hidden;
  background: var(--slate-100);
}

.hospital-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.hospital-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.55) 100%);
  pointer-events: none;
}

.affiliation-image-banner .affiliation-type-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
}

.affiliation-card:hover .hospital-banner-img {
  transform: scale(1.08);
}

.affiliation-inner-content {
  padding: 0 1.6rem 1.6rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.affiliation-logo-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: -26px;
  position: relative;
  z-index: 3;
  margin-bottom: 0.85rem;
}

.inst-logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.inst-real-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.affiliation-card:hover .inst-logo-wrap {
  transform: scale(1.06);
  border-color: var(--blue-300);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.inst-code-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  background: var(--slate-100);
  color: var(--slate-700);
  text-transform: uppercase;
}

.inst-code-badge.primary {
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-200);
}

.inst-code-badge.gold {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.affiliation-type-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.affiliation-type-pill.tertiary {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.affiliation-type-pill.academic {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.affiliation-type-pill.teaching {
  background: #FDF2F8;
  color: #BE185D;
  border: 1px solid #FBCFE8;
}

.affiliation-type-pill.trauma {
  background: #EEF2FF;
  color: #4338CA;
  border: 1px solid #C7D2FE;
}

.affiliation-type-pill.active {
  background: #F0FDF4;
  color: #15803D;
  border: 1px solid #86EFAC;
  font-weight: 800;
}

.affiliation-type-pill.surgical {
  background: #F0FDFA;
  color: #0F766E;
  border: 1px solid #99F6E4;
}

.affiliation-type-pill.society {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
  font-weight: 800;
}

.affiliation-card.active-practice-card {
  border-color: #38BDF8;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F9FF 100%);
  box-shadow: 0 14px 30px -6px rgba(2, 132, 199, 0.14);
}

.affiliation-card.active-practice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0284C7, #38BDF8);
  z-index: 4;
}

.affiliation-card.society-card {
  border-color: #FDE68A;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF7 100%);
  box-shadow: 0 14px 30px -6px rgba(245, 158, 11, 0.12);
}

.affiliation-card.society-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
  z-index: 4;
}

.affiliation-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.affiliation-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.affiliation-role {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 0.65rem;
}

.affiliation-desc {
  font-size: 0.88rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.affiliation-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.affiliation-location {
  font-size: 0.82rem;
  color: var(--slate-500);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.affiliation-location svg {
  width: 14px;
  height: 14px;
  color: var(--slate-400);
}

.affiliation-status-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-600);
  background: var(--slate-100);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.affiliation-status-tag.active-opd-link {
  color: #0284C7;
  background: #E0F2FE;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}

.affiliation-status-tag.active-opd-link:hover {
  background: #0284C7;
  color: #FFFFFF;
}

.affiliation-status-tag.gold-verified {
  color: #92400E;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  font-weight: 700;
}

@media (max-width: 768px) {
  .affiliations-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ==========================================================================
   Interactive Anatomical Pain & Joint Navigator
   ========================================================================== */

.pain-navigator-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  position: relative;
}

.joint-tabs-wrapper {
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.joint-tabs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  min-width: max-content;
  margin: 0 auto;
}

.joint-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  color: var(--slate-700);
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.joint-tab-btn:hover {
  border-color: var(--blue-400);
  color: var(--blue-600);
  background: var(--blue-50);
}

.joint-tab-btn.active {
  background: var(--slate-900);
  color: var(--white);
  border-color: var(--slate-900);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
}

.tab-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--slate-300);
  transition: background var(--transition-fast);
}

.joint-tab-btn.active .tab-indicator-dot {
  background: var(--cyan-400);
}

.tab-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--amber-50);
  color: var(--amber-600);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.joint-tab-btn.active .tab-badge {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* Joint Detail Card */
.joint-detail-card {
  padding: 2.75rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.joint-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.joint-badge-pill {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.4rem;
}

.joint-title {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--slate-900);
}

.joint-subtitle {
  font-size: 1rem;
  color: var(--slate-500);
  font-weight: 500;
}

.joint-lead-description {
  font-size: 1.1rem;
  color: var(--slate-700);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.joint-grid-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.info-block-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.info-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warning-icon {
  background: var(--amber-50);
  color: var(--amber-600);
}

.success-icon {
  background: var(--emerald-50);
  color: var(--emerald-600);
}

.info-icon svg {
  width: 20px;
  height: 20px;
}

.info-block-header h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-900);
}

.joint-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.joint-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--slate-700);
}

.check-icon {
  width: 18px;
  height: 18px;
  color: var(--blue-600);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.dot-bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-600);
  flex-shrink: 0;
  margin-top: 0.55rem;
}

.dot-bullet.pulse {
  background: var(--emerald-600);
}

.red-flag-box {
  background: #FFF7ED;
  border-left: 3.5px solid #F97316;
  padding: 1.1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 1rem;
}

.red-flag-box h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #9A3412;
  margin-bottom: 0.4rem;
}

.red-flag-box ul {
  list-style: disc;
  padding-left: 1.25rem;
  font-size: 0.88rem;
  color: #7C2D12;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pathway-group {
  margin-bottom: 1.25rem;
}

.pathway-tag {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.pathway-tag.conservative {
  color: var(--emerald-600);
}

.pathway-tag.surgical {
  color: var(--blue-600);
}

.recovery-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
}

.recovery-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--slate-900);
  margin-bottom: 0.35rem;
}

.recovery-header svg {
  width: 17px;
  height: 17px;
  color: var(--blue-600);
}

.recovery-box p {
  font-size: 0.92rem;
  color: var(--slate-600);
  margin: 0;
}

.joint-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--slate-200);
}

.footer-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--slate-500);
}

.footer-note svg {
  width: 18px;
  height: 18px;
  color: var(--emerald-600);
  flex-shrink: 0;
}

/* ==========================================================================
   Core Clinical Services & Procedures
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-400));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  opacity: 1;
}

.service-top {
  margin-bottom: 1.5rem;
}

.service-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.service-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.service-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--slate-100);
  color: var(--slate-800);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.service-card:hover .service-icon-wrap {
  background: var(--blue-600);
  color: var(--white);
}

.service-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.25rem;
}

.service-subtitle {
  font-size: 0.88rem;
  color: var(--blue-600);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.service-desc {
  font-size: 0.94rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.service-checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--slate-700);
  font-weight: 500;
}

.service-checklist li svg {
  width: 15px;
  height: 15px;
  color: var(--emerald-600);
  flex-shrink: 0;
}

.service-bottom {
  border-top: 1px solid var(--slate-100);
  padding-top: 1.25rem;
}

.link-with-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-600);
  cursor: pointer;
}

.link-with-arrow:hover {
  color: var(--primary-hover);
  gap: 0.6rem;
}

.link-with-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.link-with-arrow:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Interactive Joint Health Assessment (Quiz)
   ========================================================================== */

.quiz-section {
  background: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 60%),
              radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 60%),
              #F8FAFC;
}

.quiz-container-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.quiz-card {
  padding: 3rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.quiz-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.quiz-step-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.quiz-progress-bar-wrap {
  flex-grow: 1;
  max-width: 240px;
  height: 8px;
  background: var(--slate-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-400));
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

.quiz-question-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1.75rem;
  line-height: 1.35;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.quiz-opt-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.5rem;
  text-align: left;
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate-800);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quiz-opt-btn:hover {
  background: var(--blue-50);
  border-color: var(--blue-400);
  transform: translateX(4px);
}

.opt-bullet {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--slate-300);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.quiz-opt-btn:hover .opt-bullet {
  border-color: var(--blue-600);
}

.quiz-opt-btn.selected {
  background: var(--slate-900);
  color: var(--white);
  border-color: var(--slate-900);
}

.quiz-opt-btn.selected .opt-bullet {
  border-color: var(--cyan-400);
  background: var(--cyan-400);
}

.quiz-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--slate-200);
}

.quiz-hint-text {
  font-size: 0.84rem;
  color: var(--slate-400);
}

/* Quiz Result Card */
.quiz-result-card {
  padding: 3.5rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.quiz-status-pill {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 1.15rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.status-mild {
  background: var(--emerald-50);
  color: var(--emerald-600);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-moderate {
  background: var(--amber-50);
  color: var(--amber-600);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-severe {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.result-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.75rem;
}

.result-summary {
  font-size: 1.05rem;
  color: var(--slate-600);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.result-body {
  text-align: left;
  background: var(--slate-50);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  margin-bottom: 2rem;
}

.recom-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1rem;
}

.result-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.result-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--slate-700);
}

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

/* ==========================================================================
   Patient Recovery Milestones Timeline
   ========================================================================== */

.recovery-timeline-section {
  background: var(--white);
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  margin-top: 2rem;
}

.timeline-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 5%;
  width: 90%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-400));
  z-index: 1;
}

.timeline-node {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

.timeline-node:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-400);
}

.timeline-step-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(11, 21, 40, 0.2);
  border: 3px solid var(--white);
}

.timeline-node:first-child .timeline-step-badge {
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
}

.timeline-node-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.65rem;
}

.timeline-node-desc {
  font-size: 0.88rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* ==========================================================================
   Verified Patient Reviews & Satisfaction Breakdown
   ========================================================================== */

.reviews-section {
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  position: relative;
}

.reviews-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.satisfaction-breakdown-card {
  padding: 2.75rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.satisfaction-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--slate-200);
}

.big-percentage {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--emerald-600);
  line-height: 1;
}

.sat-title strong {
  display: block;
  font-size: 1.15rem;
  color: var(--slate-900);
}

.sat-title span {
  font-size: 0.88rem;
  color: var(--slate-500);
}

.criteria-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.criteria-item-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 0.4rem;
}

.criteria-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--slate-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.criteria-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald-600), var(--emerald-500));
  border-radius: var(--radius-full);
}

.external-proof-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--slate-100);
  color: var(--slate-700);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.proof-chip:hover {
  background: var(--blue-50);
  color: var(--blue-600);
}

/* Reviews Carousel */
.reviews-carousel-wrapper {
  overflow: hidden;
  position: relative;
}

.reviews-carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform var(--transition-normal);
}

.review-slide {
  min-width: 100%;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.reviewer-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
}

.reviewer-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--emerald-600);
  font-weight: 600;
}

.reviewer-verified svg {
  width: 14px;
  height: 14px;
}

.star-rating {
  color: var(--amber-500);
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.review-treatment-badge {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.review-quote {
  font-size: 1.05rem;
  color: var(--slate-700);
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.review-tag {
  font-size: 0.78rem;
  color: var(--slate-500);
  background: var(--slate-100);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.carousel-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--slate-200);
  background: var(--white);
  color: var(--slate-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.carousel-nav-btn:hover {
  background: var(--slate-900);
  color: var(--white);
  border-color: var(--slate-900);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slate-300);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  width: 26px;
  border-radius: var(--radius-full);
  background: var(--blue-600);
}

/* ==========================================================================
   Practice Locations, Timings & Directions
   ========================================================================== */

.locations-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
}

.location-card {
  padding: 2.75rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.location-card.featured {
  border: 2px solid var(--blue-600);
  position: relative;
}

.location-card-tag {
  position: absolute;
  top: -14px;
  left: 2.5rem;
  background: var(--blue-600);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
}

.location-header {
  margin-bottom: 1.5rem;
}

.location-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.35rem;
}

.location-tagline {
  font-size: 0.95rem;
  color: var(--blue-600);
  font-weight: 600;
}

.location-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.loc-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.loc-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--slate-100);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.loc-icon svg {
  width: 20px;
  height: 20px;
}

.loc-content strong {
  display: block;
  font-size: 0.85rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}

.loc-content p, .loc-content span {
  font-size: 0.98rem;
  color: var(--slate-800);
  margin: 0;
}

.location-action-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-200);
}

/* ==========================================================================
   Frequently Asked Questions (FAQ) Accordion
   ========================================================================== */

.faq-section {
  background: #F8FAFC;
}

.faq-accordion-wrap {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  transition: all var(--transition-fast);
}

.faq-item.open {
  border-color: var(--blue-400);
  box-shadow: var(--shadow-md);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.75rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.faq-question-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  flex-grow: 1;
}

.faq-icon-cross {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.faq-icon-cross::before, .faq-icon-cross::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--slate-600);
  transform: translate(-50%, -50%);
  transition: transform var(--transition-fast);
}

.faq-icon-cross::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.open .faq-icon-cross::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer-collapse {
  max-height: 500px;
}

.faq-answer-body {
  padding: 0 1.75rem 1.75rem;
  font-size: 0.96rem;
  color: var(--slate-600);
  line-height: 1.7;
}

/* ==========================================================================
   Doctor Biography & Philosophy Section
   ========================================================================== */

.bio-section {
  background: var(--navy-950);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.bio-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.bio-card-frame {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
}

.bio-frame-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.2rem;
  font-weight: 800;
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.bio-card-frame h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.bio-card-frame p {
  color: var(--cyan-400);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.bio-credentials-list {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bio-credentials-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--slate-300);
}

.bio-credentials-list li svg {
  width: 18px;
  height: 18px;
  color: var(--cyan-400);
  flex-shrink: 0;
}

.bio-content .section-pill {
  background: rgba(37, 99, 235, 0.2);
  color: var(--cyan-400);
}

.bio-content .section-title {
  color: var(--white);
}

.bio-quote-highlight {
  font-size: 1.18rem;
  font-style: italic;
  color: var(--slate-200);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  border-left: 3px solid var(--cyan-400);
  padding-left: 1.5rem;
}

.bio-paragraphs {
  font-size: 1rem;
  color: var(--slate-300);
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #030712;
  color: var(--slate-400);
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 1rem 0 1.5rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav-list a {
  font-size: 0.9rem;
  color: var(--slate-400);
}

.footer-nav-list a:hover {
  color: var(--cyan-400);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9rem;
}

.footer-contact-info a {
  color: var(--slate-300);
}

.footer-contact-info a:hover {
  color: var(--cyan-400);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

/* ==========================================================================
   Multi-Step Booking Modal
   ========================================================================== */

.booking-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 1.5rem;
}

.booking-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 11, 23, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-dialog-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 816px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition-normal);
}

.booking-modal.active .modal-dialog-box {
  transform: translateY(0) scale(1);
}

.modal-close-icon-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--slate-100);
  color: var(--slate-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-icon-btn:hover {
  background: var(--slate-200);
  color: var(--slate-900);
}

.modal-close-icon-btn svg {
  width: 18px;
  height: 18px;
}

/* Stepper */
.booking-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--slate-200);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.45;
  transition: opacity var(--transition-fast);
}

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

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--slate-200);
  color: var(--slate-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.step-item.active .step-circle {
  background: var(--blue-600);
  color: var(--white);
}

.step-item.completed .step-circle {
  background: var(--emerald-600);
  color: var(--white);
}

.step-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-800);
}

.step-line {
  flex-grow: 1;
  height: 2px;
  background: var(--slate-200);
  margin: 0 0.75rem;
}

.step-line.active {
  background: var(--blue-600);
}

.modal-step-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.35rem;
}

.modal-step-subtitle {
  font-size: 0.92rem;
  color: var(--slate-500);
  margin-bottom: 1.75rem;
}

/* Step 1: Care Cards */
.care-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.care-type-card {
  padding: 1.5rem;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  background: var(--white);
}

.care-type-card:hover {
  border-color: var(--blue-400);
}

.care-type-card.selected {
  border-color: var(--blue-600);
  background: #F8FAFF;
  box-shadow: 0 0 0 1px var(--blue-600);
}

.care-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}

.care-card-badge.tele-badge {
  color: var(--emerald-600);
  background: var(--emerald-50);
}

.care-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.care-card-icon svg {
  width: 22px;
  height: 22px;
}

.care-type-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.25rem;
}

.care-location {
  font-size: 0.82rem;
  color: var(--slate-500);
  margin-bottom: 0.75rem;
}

.care-perks {
  list-style: disc;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  color: var(--slate-600);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.care-fee {
  font-size: 0.88rem;
  color: var(--slate-800);
  padding-top: 0.75rem;
  border-top: 1px solid var(--slate-200);
}

/* Step 2: Date & Slot Pickers */
.section-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 0.75rem;
}

.date-pills-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
}

.date-pill-btn {
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.4rem;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.date-pill-btn:hover {
  border-color: var(--blue-400);
  background: var(--blue-50);
}

.date-pill-btn.active {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}

.pill-day {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.pill-num {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.pill-month {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.time-slot-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.time-slot-btn svg {
  width: 15px;
  height: 15px;
}

.time-slot-btn:hover {
  border-color: var(--blue-400);
  background: var(--blue-50);
}

.time-slot-btn.active {
  background: var(--slate-900);
  color: var(--white);
  border-color: var(--slate-900);
}

.selected-summary-pill {
  background: var(--blue-50);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--blue-600);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Step 3: Form Controls */
.patient-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 0.4rem;
}

.required {
  color: #DC2626;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--slate-900);
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--blue-600);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.radio-toggle-group {
  display: flex;
  gap: 0.5rem;
}

.radio-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 0.5rem;
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.radio-pill.active {
  background: var(--blue-50);
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.radio-pill input {
  display: none;
}

/* Step 4: Confirmation Ticket */
.success-icon-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--emerald-50);
  color: var(--emerald-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.success-icon-badge svg {
  width: 32px;
  height: 32px;
}

.confirmation-ticket {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.25rem 0;
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--slate-300);
  margin-bottom: 1rem;
}

.doctor-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-600);
}

.ticket-header h4 {
  font-size: 1.15rem;
  color: var(--slate-900);
}

.ticket-status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber-600);
  background: var(--amber-50);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.ticket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.ticket-label {
  display: block;
  font-size: 0.75rem;
  color: var(--slate-500);
  text-transform: uppercase;
}

.ticket-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-900);
}

.ticket-footer-note {
  padding-top: 0.85rem;
  border-top: 1px dashed var(--slate-300);
  font-size: 0.82rem;
  color: var(--slate-600);
}

.dispatch-instructions {
  font-size: 0.92rem;
  color: var(--slate-600);
  margin-bottom: 0.75rem;
}

.helpline-fallback {
  font-size: 0.88rem;
  color: var(--slate-500);
}

.helpline-link {
  color: var(--blue-600);
  font-weight: 700;
  margin-left: 0.35rem;
}

.modal-nav-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--slate-200);
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 0.35s ease forwards;
}

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

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Patient Booking Case Files & Scans Upload Component
   ========================================================================== */
.case-files-group {
  margin-top: 1.25rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.case-files-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.case-files-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  margin: 0;
}

.case-files-counter-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.case-files-hint {
  font-size: 0.82rem;
  color: var(--slate-500);
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.case-files-dropzone {
  border: 2px dashed var(--slate-300);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.35rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.case-files-dropzone:hover,
.case-files-dropzone.drag-active {
  border-color: var(--blue-500);
  background: var(--blue-50);
  transform: scale(1.005);
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dropzone-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.dropzone-icon svg {
  width: 20px;
  height: 20px;
}

.dropzone-text {
  font-size: 0.92rem;
  color: var(--slate-800);
  margin-bottom: 0.15rem;
}

.dropzone-text strong {
  color: var(--blue-600);
}

.dropzone-sub {
  font-size: 0.78rem;
  color: var(--slate-400);
}

.case-files-error {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: var(--radius-md);
  color: #B91C1C;
  font-size: 0.84rem;
  line-height: 1.4;
}

.case-files-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.case-file-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.2s ease forwards;
}

.case-file-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.case-file-icon.icon-pdf {
  background: #FEE2E2;
  color: #DC2626;
}

.case-file-icon.icon-img {
  background: var(--blue-50);
  color: var(--blue-600);
}

.case-file-info {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.case-file-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--slate-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-file-size {
  font-size: 0.76rem;
  color: var(--slate-400);
}

.btn-remove-case-file {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--slate-400);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.btn-remove-case-file:hover {
  background: #FEE2E2;
  color: #DC2626;
}

/* ==========================================================================
   Smooth Scroll Reveal & Interactive Animations
   ========================================================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll.delay-100 {
  transition-delay: 0.1s;
}

.reveal-on-scroll.delay-200 {
  transition-delay: 0.2s;
}

.reveal-on-scroll.delay-300 {
  transition-delay: 0.3s;
}

.reveal-on-scroll.delay-400 {
  transition-delay: 0.4s;
}

/* Subtle Shimmer Effect for Primary Action Buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 70%
  );
  transform: rotate(25deg) translateX(-100%);
  animation: btnShimmer 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btnShimmer {
  0%, 75% {
    transform: rotate(25deg) translateX(-100%);
  }
  100% {
    transform: rotate(25deg) translateX(100%);
  }
}

/* Pulse dot animation enhancements */
.live-dot.pulse-green {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreenDot 2s infinite;
}

@keyframes pulseGreenDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  .float-badge-exp,
  .float-badge-satisfaction,
  .btn-primary::after,
  .live-dot.pulse-green {
    animation: none !important;
  }
}

