/* ==========================================================================
   SHUBHAKRUTH MEDICAL GENETICS PVT. LTD. - CUSTOM STYLES & TAILWIND LAYER
   Predict | Prevent | Treat Disease
   Incorporated April 2022 | Health City, Visakhapatnam | VFSTR TBI Council
   ========================================================================== */

/* --- Custom CSS Variables (Synchronized with Tailwind Brand Tokens) --- */
:root {
  --color-primary-orange: #FF6F00;
  --color-orange-hover: #E65100;
  --color-orange-tint: #FFF3E8;
  --color-deep-black: #000000;
  --color-dark-gray: #333333;
  --color-light-gray: #F5F5F5;
  --color-pure-white: #FFFFFF;
}

/* --- Base Enhancements --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  background-color: var(--color-light-gray);
  color: var(--color-deep-black);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F1F1;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF6F00;
}

/* --- Preloader --- */
.site-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #FFFFFF;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.site-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-img {
  width: 120px;
  height: auto;
  animation: preloaderPulse 1.8s ease-in-out infinite alternate;
}

@keyframes preloaderPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 8px 16px rgba(255, 111, 0, 0.35)); }
}

/* --- Hero Animations & Typography --- */
.hero-script-font {
  font-family: 'Caveat', 'Playpen Sans', cursive;
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.animate-float-badge {
  animation: floatBadge 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 111, 0, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(255, 111, 0, 0); }
}

.pulse-glow-orange {
  animation: pulseGlow 2.5s infinite;
}

/* --- Header Sticky & Transparent Navbar Transition --- */
.site-header {
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.transparent-nav:not(.scrolled) {
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.site-header.transparent-nav.dark-hero:not(.scrolled) .nav-link:not(.active) {
  color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.site-header.transparent-nav.dark-hero:not(.scrolled) .mobile-toggle span {
  background-color: #FFFFFF !important;
}

.site-header.transparent-nav.dark-hero:not(.scrolled) .header-logo {
  filter: none !important;
  transition: transform 0.3s ease;
}

.site-header a img {
  height: 58px;
  max-height: 64px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease, height 0.3s ease;
}

@media (max-width: 640px) {
  .site-header a img {
    height: 48px;
    max-height: 52px;
  }
}

.site-header.scrolled a img {
  height: 52px;
  max-height: 56px;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  background-color: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid rgba(229, 231, 235, 1) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.site-header.scrolled .header-logo {
  filter: none !important;
  transition: transform 0.3s ease;
}

.site-header.scrolled .nav-link:not(.active) {
  color: #1F2937 !important;
  text-shadow: none !important;
}

.site-header.scrolled .mobile-toggle span {
  background-color: #000000 !important;
}

/* --- Navigation Link Underline Effect --- */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2.5px;
  background-color: #FF6F00;
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: #FF6F00 !important;
  font-weight: 700;
}

/* --- Mobile Menu Drawer --- */
@media (max-width: 1024px) {
  .nav-menu-drawer {
    position: fixed;
    top: 88px;
    right: -100%;
    width: 310px;
    height: calc(100vh - 88px);
    background-color: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.12);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 18px;
    overflow-y: auto;
    z-index: 1500;
  }

  .nav-menu-drawer.open {
    right: 0;
  }
}

/* --- Mobile Hamburger Toggle --- */
.mobile-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: #000000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* --- Modals / Dialogs System --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 16px;
}

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

.modal-card {
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 92vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

/* --- Toast Notification System --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}

.toast {
  background: #000000;
  color: #FFFFFF;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  animation: slideInToast 0.3s ease forwards;
  border-left: 4px solid #FF6F00;
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --- Glassmorphic Panels --- */
.glass-panel {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-dark-panel {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* --- Floating Action Widgets (Non-overlapping Clean Architecture) --- */
.progress-scroll-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 990;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #000000;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease, background 0.2s ease;
  opacity: 0;
  visibility: hidden;
  border: 2px solid #333333;
}

.progress-scroll-btn.visible {
  opacity: 1;
  visibility: visible;
}

.progress-scroll-btn:hover {
  transform: translateY(-3px) scale(1.08);
  background: #FF6F00;
  border-color: #FF6F00;
  color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(255, 111, 0, 0.4);
}

.progress-scroll-btn svg.progress-ring {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 48px;
  height: 48px;
  transform: rotate(-90deg);
}

.progress-scroll-btn circle.progress-ring-circle {
  stroke: #FF6F00;
  stroke-dasharray: 138;
  stroke-dashoffset: 138;
  transition: stroke-dashoffset 0.1s linear;
}

/* --- Interactive Steppers & Workflow Nodes --- */
.step-node {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.step-node.active {
  border-color: #FF6F00 !important;
  background-color: #FFF3E8 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(255, 111, 0, 0.2);
}

.step-node.active .step-icon-badge {
  background-color: #FF6F00 !important;
  color: #FFFFFF !important;
}

/* --- Range Sliders Custom Design --- */
input[type="range"].custom-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #E5E7EB;
  border-radius: 9999px;
  outline: none;
  transition: background 0.2s;
}

input[type="range"].custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FF6F00;
  cursor: pointer;
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(255, 111, 0, 0.4);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

input[type="range"].custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #E65100;
}

input[type="range"].custom-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FF6F00;
  cursor: pointer;
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(255, 111, 0, 0.4);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

/* --- Pedigree Tree Clinical Symbols --- */
.pedigree-symbol {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #000000;
  position: relative;
  background-color: #FFFFFF;
  transition: all 0.2s ease;
  font-weight: 700;
  font-size: 11px;
}

.pedigree-symbol.male {
  border-radius: 4px;
}

.pedigree-symbol.female {
  border-radius: 50%;
}

.pedigree-symbol.affected {
  background-color: #FF6F00 !important;
  border-color: #FF6F00 !important;
  color: #FFFFFF;
}

.pedigree-symbol.carrier {
  background: linear-gradient(90deg, #FF6F00 50%, #FFFFFF 50%);
}

.pedigree-symbol.deceased::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -4px;
  width: calc(100% + 8px);
  height: 2.5px;
  background-color: #000000;
  transform: rotate(-45deg);
}

.pedigree-symbol.proband::before {
  content: 'P ↗';
  position: absolute;
  bottom: -18px;
  left: -14px;
  font-size: 11px;
  font-weight: 800;
  color: #FF6F00;
}

/* --- Interactive Accordions --- */
.faq-accordion-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}

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

.faq-accordion-item.open .faq-chevron {
  transform: rotate(180deg);
}

/* --- Sample Status Tracker Timeline --- */
.tracker-timeline {
  position: relative;
}

.tracker-timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: #E5E7EB;
  z-index: 1;
}

@media (max-width: 768px) {
  .tracker-timeline::before {
    top: 20px;
    left: 24px;
    bottom: 20px;
    right: auto;
    width: 3px;
    height: auto;
  }
}

.tracker-step-node {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.tracker-step-node.completed .tracker-icon-box {
  background-color: #FF6F00;
  color: #FFFFFF;
  border-color: #FF6F00;
  box-shadow: 0 0 0 4px rgba(255, 111, 0, 0.2);
}

.tracker-step-node.active .tracker-icon-box {
  background-color: #000000;
  color: #FF6F00;
  border-color: #FF6F00;
  box-shadow: 0 0 0 6px rgba(255, 111, 0, 0.3);
  animation: trackerPulse 2s infinite;
}

@keyframes trackerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.tracker-step-node.pending .tracker-icon-box {
  background-color: #FFFFFF;
  color: #9CA3AF;
  border-color: #E5E7EB;
}

/* --- ACMG Variant Evidence Criteria Chips --- */
.acmg-chip {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid #E5E7EB;
}

.acmg-chip:hover {
  border-color: #FF6F00;
  transform: translateY(-2px);
}

.acmg-chip.selected-pathogenic {
  background-color: #FF6F00 !important;
  color: #FFFFFF !important;
  border-color: #E65100 !important;
  box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
}

.acmg-chip.selected-benign {
  background-color: #10B981 !important;
  color: #FFFFFF !important;
  border-color: #059669 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* --- Hereditary Risk Assessment Screener --- */
.risk-meter-bar {
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
}

.risk-option-card {
  cursor: pointer;
  transition: all 0.25s ease;
}

.risk-option-card:hover {
  border-color: #FF6F00;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(255, 111, 0, 0.15);
}

.risk-option-card.selected {
  border-color: #FF6F00;
  background-color: #FFF3E8;
  box-shadow: 0 0 0 2px #FF6F00;
}

/* --- Specimen Step Progression Cards --- */
.specimen-step-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.specimen-step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -8px rgba(255, 111, 0, 0.18);
}

.specimen-step-card.active {
  border-color: #FF6F00 !important;
  box-shadow: 0 14px 28px -6px rgba(255, 111, 0, 0.22);
}

.specimen-step-card.active .step-icon-box {
  background-color: #FF6F00 !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 16px rgba(255, 111, 0, 0.35);
}

/* --- Assay Comparison Matrix --- */
.matrix-table th, .matrix-table td {
  transition: background-color 0.2s ease;
}

.matrix-table tr:hover td {
  background-color: #FFF9F3;
}

.matrix-highlight-col {
  background-color: #FFF3E8 !important;
  border-left: 2px solid #FF6F00 !important;
  border-right: 2px solid #FF6F00 !important;
}

/* --- Instrumentation Tab Console --- */
.instrument-tab-btn.active {
  background-color: #FF6F00;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(255, 111, 0, 0.35);
}

.instrument-tab-btn:not(.active) {
  background-color: #FFFFFF;
  color: #333333;
}

.instrument-tab-btn:not(.active):hover {
  background-color: #F9FAFB;
  border-color: #FF6F00;
}

/* --- Quick Speed Dial Action Menu --- */
.speed-dial-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.speed-dial-items {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.speed-dial-container.open .speed-dial-items {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.speed-dial-trigger {
  width: 88px;
  height: 88px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.32));
  outline: none;
  -webkit-tap-highlight-color: transparent;
  animation: floatAvatar 3s ease-in-out infinite alternate;
}

@keyframes floatAvatar {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-6px);
  }
}

.speed-dial-trigger img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  border-radius: 0 !important;
}

.speed-dial-trigger:hover {
  animation-play-state: paused;
  transform: scale(1.12) translateY(-4px);
  filter: drop-shadow(0 14px 28px rgba(255, 111, 0, 0.55));
}

.speed-dial-container.open .speed-dial-trigger {
  animation-play-state: paused;
  transform: scale(1.06);
  filter: drop-shadow(0 14px 28px rgba(255, 111, 0, 0.65));
}

@media (max-width: 640px) {
  .speed-dial-trigger {
    width: 78px;
    height: 78px;
  }
  .speed-dial-container {
    bottom: 16px;
    right: 16px;
  }
}

.speed-dial-item-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #FFFFFF;
  color: #000000;
  border: 1px solid #E5E7EB;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.speed-dial-item-btn:hover {
  background: #FFF3E8;
  border-color: #FF6F00;
  color: #FF6F00;
  transform: translateX(-4px);
}

/* Tooltip micro-interaction */
.tooltip-custom {
  position: relative;
}

.tooltip-custom::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background-color: #000000;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 60;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tooltip-custom:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   REFERENCE 1: PREMIUM FAQ STYLING
   ========================================================================== */
.faq-section-wrapper {
  background: radial-gradient(circle at 10% 20%, rgba(219, 234, 254, 0.45) 0%, rgba(248, 250, 252, 0.9) 50%, rgba(239, 246, 255, 0.5) 100%), #FFFFFF;
  position: relative;
  overflow: hidden;
}

.faq-dna-watermark-left {
  position: absolute;
  top: 10%;
  left: -40px;
  width: 260px;
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
}

.faq-dna-watermark-right {
  position: absolute;
  top: 25%;
  right: -50px;
  width: 280px;
  opacity: 0.16;
  pointer-events: none;
  user-select: none;
}

.faq-search-box {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 9999px;
  box-shadow: 0 10px 30px -5px rgba(37, 99, 235, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.faq-search-box:focus-within {
  border-color: #2563EB;
  box-shadow: 0 12px 35px -4px rgba(37, 99, 235, 0.18);
}

.faq-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #334155;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.faq-cat-btn:hover {
  border-color: #93C5FD;
  color: #1E40AF;
  transform: translateY(-1px);
}

.faq-cat-btn.active {
  background: #1D4ED8 !important;
  color: #FFFFFF !important;
  border-color: #1D4ED8 !important;
  box-shadow: 0 6px 20px -3px rgba(29, 78, 216, 0.35) !important;
}

.faq-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 1.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.faq-card:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
}

.faq-card.open {
  background: #FFFFFF;
  border-color: #BFDBFE;
  box-shadow: 0 14px 32px -6px rgba(37, 99, 235, 0.12);
}

.faq-card-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  text-align: left;
  user-select: none;
}

.faq-badge-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-card:hover .faq-badge-icon {
  transform: scale(1.05);
}

.faq-card-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}

.faq-card.open .faq-card-content {
  max-height: 600px;
}

.faq-card.open .faq-chevron-icon {
  transform: rotate(180deg);
}

/* ==========================================================================
   REFERENCE 3: THE JOURNEY OF SHUBHAKRUTH SINEWAVE TIMELINE
   ========================================================================== */
.journey-section-wrapper {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%);
  position: relative;
  overflow: hidden;
}

.journey-timeline-container {
  position: relative;
  min-height: 480px;
}

.journey-sine-wave {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 120px;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.journey-node-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 5;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journey-node-badge:hover {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.journey-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 1.5rem;
  padding: 24px;
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 4;
}

.journey-card:hover {
  transform: translateY(-5px);
  border-color: #CBD5E1;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.12);
}

.journey-connector-vertical {
  width: 2.5px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.journey-script-tag {
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  color: #94A3B8;
  transform: rotate(-4deg);
}

/* ==========================================================================
   INTERACTIVE APPOINTMENT BOOKING & CALENDAR SYSTEM (Ref: Modern Scheduler)
   ========================================================================== */
.booking-modal-card {
  max-width: 920px;
  width: 100%;
  border-radius: 2rem;
  background: #FFFFFF;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
  position: relative;
}

.calendar-day-btn {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: 0.625rem;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  user-select: none;
  color: #374151;
  background: transparent;
  border: 1.5px solid transparent;
}

.calendar-day-btn:hover:not(.muted):not(.selected) {
  background-color: #F3F4F6;
  color: #111827;
}

.calendar-day-btn.muted {
  color: #CBD5E1;
  cursor: default;
  pointer-events: none;
}

.calendar-day-btn.today {
  border-color: #B91C1C;
  color: #B91C1C;
}

.calendar-day-btn.selected {
  background-color: #991B1B !important;
  border-color: #991B1B !important;
  color: #FFFFFF !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(153, 27, 27, 0.35);
  transform: scale(1.05);
}

.booking-time-slot-btn {
  padding: 0.625rem 0.5rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  border: 1px solid #E5E7EB;
  background-color: #FFFFFF;
  color: #374151;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  user-select: none;
}

.booking-time-slot-btn:hover:not(.selected) {
  border-color: #991B1B;
  background-color: #FEF2F2;
  color: #991B1B;
}

.booking-time-slot-btn.selected {
  background-color: #991B1B !important;
  border-color: #991B1B !important;
  color: #FFFFFF !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(153, 27, 27, 0.3);
  transform: scale(1.02);
}

.booking-confirmed-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 1.25rem;
}



