/* 
=========================================
   Marian DCDC - UI Component Styles
=========================================
*/

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--neutral-white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -3px rgba(2, 132, 199, 0.4);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(13, 148, 136, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--border-color);
  color: var(--neutral-dark);
}

.btn-outline:hover {
  background-color: var(--neutral-light);
  border-color: var(--neutral-gray);
  transform: translateY(-2px);
}

.btn-text {
  background-color: transparent;
  color: var(--primary);
  padding: 0.5rem;
}

.btn-text:hover {
  color: var(--primary-hover);
  gap: 0.75rem;
}

/* Hero Elements */
/* Hero Elements - Full Cover Image Background */
section#home.hero,
.hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(6.5rem, 12vh, 10rem) clamp(1rem, 3.5vw, 1.5rem) clamp(3.5rem, 8vh, 6rem) clamp(1rem, 3.5vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.hero-bg-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg, 
    rgba(15, 42, 35, 0.82) 0%, 
    rgba(15, 42, 41, 0.72) 50%, 
    rgba(15, 37, 42, 0.92) 100%
  ),
  radial-gradient(circle at center, rgba(13, 148, 136, 0.3) 0%, rgba(15, 23, 42, 0.75) 100%);
  backdrop-filter: blur(2px);
}

.hero-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 880px;
  gap: 1.65rem;
  z-index: 5;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(13, 148, 136, 0.25);
  border: 1px solid rgba(45, 212, 191, 0.4);
  color: #2dd4bf;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-tag svg {
  color: #2dd4bf;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  word-break: break-word;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  text-align: left;
}

.hero h1 span {
  background: linear-gradient(135deg, #38bdf8 0%, #2dd4bf 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  color: #f1f5f9;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  line-height: 1.65;
  max-width: 820px;
  text-align: left;
}

.hero-cta {
  display: flex;
  gap: 1.25rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn-hero-glass {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  backdrop-filter: blur(10px);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-hero-glass:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Background blob effects */
.blob {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(80px);
  z-index: -1;
  opacity: 0.35;
}

.blob-1 {
  width: 300px;
  height: 300px;
  max-width: 100%;
  background-color: var(--primary-light);
  top: -50px;
  right: 0;
}

.blob-2 {
  width: 250px;
  height: 250px;
  max-width: 100%;
  background-color: var(--secondary-light);
  bottom: -50px;
  left: 0;
}

/* Floating interactive badges on Hero */
.floating-card {
  position: absolute;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: float 6s ease-in-out infinite;
}

.floating-card-1 {
  top: 15%;
  left: 0;
  animation-delay: 0s;
}

.floating-card-2 {
  bottom: 15%;
  right: 0;
  animation-delay: 3s;
}

.floating-icon {
  width: 44px;
  height: 44px;
  background-color: var(--neutral-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.floating-icon-1 {
  color: var(--primary);
}

.floating-icon-2 {
  color: var(--secondary);
}

.floating-card-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
}

.floating-card-info p {
  font-size: 0.75rem;
}

/* Features Component */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3.5vw, 2.25rem) clamp(1.25rem, 3vw, 2rem);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card-blue .feature-icon {
  background-color: var(--primary-light);
  color: var(--primary);
}

.feature-card-teal .feature-icon {
  background-color: var(--secondary-light);
  color: var(--secondary);
}

.feature-card-amber .feature-icon {
  background-color: var(--accent-light);
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.feature-card p {
  font-size: 0.95rem;
}

/* ==========================================================================
   SERVICES SECTION - FULL DARK MODE THEME & 100VH VIEWPORT FIT
   ========================================================================== */
section#services {
  max-width: 100%;
  width: 100%;
  height: auto;
  min-height: calc(100vh - var(--header-height, 68px));
  min-height: calc(100svh - var(--header-height, 68px));
  max-height: none;
  scroll-margin-top: var(--header-height, 68px);
  padding: clamp(2.5rem, 5vh, 4rem) clamp(1rem, 3vw, 1.5rem) clamp(2rem, 4vh, 3.5rem) clamp(1rem, 3vw, 1.5rem);
  background: radial-gradient(circle at 20% 25%, rgba(15, 118, 110, 0.22) 0%, transparent 45%),
              radial-gradient(circle at 80% 75%, rgba(13, 148, 136, 0.16) 0%, transparent 45%),
              linear-gradient(180deg, #071918 0%, #041211 100%);
  color: #ffffff !important;
  position: relative;
  overflow: visible;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

@media (max-width: 768px) {
  section#services {
    padding: 3rem 1rem 2.5rem 1rem;
  }
}

section#services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.35), transparent);
  pointer-events: none;
}

section#services::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.35), transparent);
  pointer-events: none;
}

/* Section Header (Dark Mode & Top Viewport Position) */
#services .section-header {
  margin: 0 auto clamp(0.35rem, 1.2vh, 0.65rem) auto;
  max-width: 720px;
}

#services .section-header .tag {
  background: rgba(15, 118, 110, 0.35);
  color: #ffffff !important;
  border: 1px solid rgba(45, 212, 191, 0.45);
  box-shadow: 0 0 15px rgba(15, 118, 110, 0.25);
  margin-bottom: 0.35rem;
  padding: 0.25rem 0.85rem;
  font-size: 0.75rem;
}

#services .section-header h1,
#services .section-header h2 {
  color: #ffffff !important;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  margin-top: 10px;
  margin-bottom: clamp(0.2rem, 0.5vh, 0.35rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

#services .section-header p {
  color: rgba(255, 255, 255, 0.92) !important;
  opacity: 1;
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  line-height: 1.45;
  max-width: 680px;
  margin: 0 auto;
}

/* Services Tabs (Dark Mode) */
#services .services-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(0.35rem, 1vh, 0.65rem);
}

#services .tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.3rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#services .tab-btn {
  padding: 0.45rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-full);
  border: none;
  background: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.75);
}

#services .tab-btn:hover {
  color: #ffffff;
}

#services .tab-btn.active {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
}

/* Services Panel & Centered Spotlight Carousel Wrapper */
#services .services-panel {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto auto auto;
}

#services .services-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  max-width: 100%;
  margin: clamp(0.5rem, 1.5vh, 1.25rem) auto 0 auto;
  margin-top: 50px;
  padding: 0 3.25rem;
  box-sizing: border-box;
  overflow: hidden;
}

#services .services-carousel-viewport {
  overflow: hidden;
  width: 100%;
  padding: 0.75rem 0.5rem 1.15rem 0.5rem;
}

#services .services-carousel-track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Service Card (Dark Luxury Mode & Centered Spotlight Focus) */
#services .service-card {
  background: radial-gradient(circle at 50% 0%, rgba(45, 212, 191, 0.08) 0%, transparent 70%), #0b201e;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 14px 34px -4px rgba(0, 0, 0, 0.45);
  height: clamp(230px, 33vh, 270px);
  display: flex;
  flex-direction: column;
}

#services .service-card.carousel-slide {
  flex: 0 0 clamp(300px, 33vw, 380px);
  width: clamp(300px, 33vw, 380px);
  max-width: 86vw;
  box-sizing: border-box;
  opacity: 0.36;
  transform: scale(0.92);
  filter: blur(0.5px);
  cursor: pointer;
  transition: opacity 0.45s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), 
              filter 0.45s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease,
              background 0.35s ease;
  user-select: none;
}

/* The active centered card */
#services .service-card.carousel-slide.active-slide {
  opacity: 1;
  transform: scale(1.04);
  filter: blur(0);
  border-color: #2dd4bf;
  background: radial-gradient(circle at 50% 0%, rgba(45, 212, 191, 0.15) 0%, transparent 70%), #0c2522;
  box-shadow: 0 20px 48px -6px rgba(0, 0, 0, 0.6), 0 0 24px rgba(45, 212, 191, 0.3);
  cursor: default;
  z-index: 2;
}

#services .service-card.carousel-slide.active-slide:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 24px 55px -6px rgba(15, 118, 110, 0.5), 0 0 30px rgba(45, 212, 191, 0.38);
}

#services .service-card.carousel-slide:not(.active-slide):hover {
  opacity: 0.65;
  transform: scale(0.95);
  border-color: rgba(45, 212, 191, 0.4);
}

#services .service-body {
  padding: clamp(1rem, 1.8vh, 1.35rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

#services .service-title-row h3 {
  font-size: clamp(1.1rem, 1.35vw, 1.25rem);
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.01em;
}

#services .service-body p {
  font-size: clamp(0.82rem, 0.95vw, 0.88rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88) !important;
  margin: 0.4rem 0 auto 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#services .service-features {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

#services .service-tag {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(45, 212, 191, 0.12);
  color: #2dd4bf !important;
  border: 1px solid rgba(45, 212, 191, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

#services .service-price {
  font-family: var(--font-title);
  font-weight: 800;
  color: #2dd4bf !important;
  font-size: 1.2rem;
  margin-left: auto;
  text-shadow: 0 0 12px rgba(45, 212, 191, 0.35);
}

/* Carousel Buttons (Dark Mode) */
#services .carousel-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

#services .carousel-nav-btn.carousel-prev {
  left: 0.5rem;
}

#services .carousel-nav-btn.carousel-next {
  right: 0.5rem;
}

#services .carousel-nav-btn i {
  color: #ffffff !important;
}

#services .carousel-nav-btn:hover:not(:disabled) {
  background: var(--primary);
  color: #ffffff !important;
  border-color: #2dd4bf;
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.5);
  transform: translateY(-50%) scale(1.08);
}

#services .carousel-nav-btn:disabled {
  opacity: 0.22;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

#services .carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin-top: clamp(0.4rem, 1vh, 0.8rem);
}

#services .carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.24);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 0;
}

#services .carousel-dot:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

#services .carousel-dot.active {
  width: 28px;
  border-radius: var(--radius-full);
  background-color: #2dd4bf;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.6);
}

@media (max-width: 992px) {
  #services .services-carousel-wrapper {
    padding: 0 2.25rem;
  }
  #services .service-card.carousel-slide {
    flex: 0 0 clamp(270px, 45vw, 340px);
    width: clamp(270px, 45vw, 340px);
  }
}

@media (max-width: 640px) {
  #services .services-carousel-wrapper {
    padding: 0 1.5rem;
  }
  #services .carousel-nav-btn {
    width: 34px;
    height: 34px;
  }
  #services .carousel-nav-btn.carousel-prev {
    left: 0.15rem;
  }
  #services .carousel-nav-btn.carousel-next {
    right: 0.15rem;
  }
  #services .service-card.carousel-slide {
    flex: 0 0 clamp(240px, 78vw, 300px);
    width: clamp(240px, 78vw, 300px);
    max-width: 82vw;
  }
}

@media (max-width: 420px) {
  #services .services-carousel-wrapper {
    padding: 0 0.85rem;
  }
  #services .service-card.carousel-slide {
    flex: 0 0 min(260px, 86vw);
    width: min(260px, 86vw);
  }
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--neutral-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.carousel-nav-btn:hover {
  background-color: var(--primary);
  color: var(--neutral-white);
  border-color: var(--primary);
  box-shadow: 0 10px 20px -3px rgba(15, 118, 110, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%);
  box-shadow: none;
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-color);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.carousel-dot.active {
  width: 28px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.service-img-placeholder {
  height: 180px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-hover);
}

.service-img-placeholder svg {
  opacity: 0.35;
  transition: var(--transition);
}

.service-card:hover .service-img-placeholder svg {
  transform: scale(1.2);
  opacity: 0.5;
}

.service-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-title-row h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.service-price {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--secondary);
  font-size: 1.1rem;
}

.service-body p {
  font-size: 0.9rem;
}

.service-features {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-tag {
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--neutral-light);
  color: var(--neutral-gray);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

/* Appointment / Booking Wizard Component */
.booking-section {
  background-color: var(--neutral-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: 2.5rem 2.25rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

/* Step Indicator */
.step-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 600px;
  margin: 0 auto 3rem auto;
  position: relative;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
  transform: translateY(-50%);
}

.step-progress-bar {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  z-index: 1;
  transform: translateY(-50%);
  transition: var(--transition);
}

.step-node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--neutral-gray);
  z-index: 2;
  transition: var(--transition);
  position: relative;
}

.step-node.active {
  border-color: var(--primary);
  background-color: var(--primary);
  color: var(--neutral-white);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.step-node.completed {
  border-color: var(--secondary);
  background-color: var(--secondary);
  color: var(--neutral-white);
}

.step-label {
  position: absolute;
  bottom: -24px;
  width: max-content;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neutral-gray);
  text-transform: uppercase;
}

.step-node.active .step-label {
  color: var(--primary-hover);
}

.step-node.completed .step-label {
  color: var(--secondary-hover);
}

/* Wizard Forms */
.wizard-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.wizard-step.active {
  display: block;
}

.wizard-step h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--neutral-dark);
}

/* Step 1: Select Dental Procedure Card Grid */
.booking-procedure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto 2rem auto;
}

.booking-procedure-card {
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.booking-procedure-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.booking-procedure-card.selected {
  border-color: var(--primary) !important;
  background-color: var(--primary) !important;
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.3) !important;
  transform: translateY(-2px);
}

.booking-procedure-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-procedure-card-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neutral-dark);
  transition: color var(--transition-fast);
}

.booking-procedure-card.selected .booking-procedure-card-header h4 {
  color: #ffffff !important;
}

.booking-procedure-price {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--secondary);
  font-size: 1.05rem;
  transition: color var(--transition-fast);
}

.booking-procedure-card.selected .booking-procedure-price {
  color: #ffffff !important;
}

.booking-procedure-card p {
  font-size: 0.85rem;
  color: var(--neutral-gray);
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.booking-procedure-card.selected p {
  color: rgba(255, 255, 255, 0.9) !important;
}

.booking-procedure-duration {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--neutral-gray);
  margin-top: auto;
  padding-top: 0.5rem;
  transition: color var(--transition-fast);
}

.booking-procedure-card.selected .booking-procedure-duration {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Step 2: Split Scheduling Grid */
.booking-scheduling-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.7fr;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto 2rem auto;
}

.booking-scheduling-grid label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--neutral-dark);
  margin-bottom: 0.75rem;
}

/* Dentist Selection Styles */
.dentist-cards-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 295px; /* limits height so it matches scheduling height */
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Custom scrollbar styling specifically for the dentist selection container */
.dentist-cards-container::-webkit-scrollbar {
  width: 6px;
}
.dentist-cards-container::-webkit-scrollbar-track {
  background: transparent;
}
.dentist-cards-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
}
.dentist-cards-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.dentist-booking-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.dentist-booking-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.dentist-booking-card.selected {
  border-color: var(--primary) !important;
  background-color: var(--primary) !important;
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.3) !important;
  transform: translateY(-2px);
}

.dentist-booking-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--neutral-light);
  color: var(--neutral-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.dentist-booking-card.selected .dentist-booking-avatar {
  background-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.dentist-booking-card.selected .dentist-booking-avatar span {
  color: #ffffff !important;
}

.dentist-booking-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  transition: color var(--transition-fast);
}

.dentist-booking-card.selected .dentist-booking-info h4 {
  color: #ffffff !important;
}

.dentist-booking-info p.role {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 0.25rem;
  transition: color var(--transition-fast);
}

.dentist-booking-card.selected .dentist-booking-info p.role {
  color: rgba(255, 255, 255, 0.9) !important;
}

.dentist-booking-info p.details {
  font-size: 0.75rem;
  color: var(--neutral-gray);
  line-height: 1.35;
  transition: color var(--transition-fast);
}

.dentist-booking-card.selected .dentist-booking-info p.details {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Scheduler Right Side Styles */
.date-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.date-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
  background-color: var(--bg-card);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  gap: 0.25rem;
}

.date-btn:hover {
  border-color: var(--border-focus);
}

.date-btn.selected {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.date-btn span.day {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--neutral-gray);
}

.date-btn.selected span.day {
  color: var(--primary-hover);
}

.date-btn span.date {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--neutral-dark);
}

.date-btn.selected span.date {
  color: var(--primary-hover);
}

.date-status-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.05rem 0.35rem;
  border-radius: var(--radius-full);
  margin-top: 0.25rem;
}

.date-status-badge.available {
  background-color: var(--secondary-light);
  color: var(--secondary-hover);
}

.date-status-badge.booked {
  background-color: #fee2e2;
  color: #ef4444;
}

.date-status-badge.closed {
  background-color: var(--neutral-light);
  color: var(--neutral-gray);
}

/* Date Button Fully Booked / Unavailable states */
.date-btn.unavailable {
  border-style: dashed;
  opacity: 0.7;
}

.date-btn.unavailable span.date {
  color: var(--neutral-gray);
}

/* More button */
.date-btn-more {
  border-color: var(--border-color);
  background-color: var(--neutral-light);
  color: var(--neutral-dark);
}

.date-btn-more:hover {
  background-color: var(--border-color);
  border-color: var(--neutral-gray);
}

.date-btn-more i {
  color: var(--primary);
  margin-bottom: 0.15rem;
}

/* Time slots container */
.time-slots-section {
  animation: fadeIn 0.4s ease;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.5rem;
}

.time-slot-btn {
  position: relative;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
  color: var(--neutral-gray);
}

.time-slot-btn:hover:not(.booked) {
  border-color: var(--primary);
  color: var(--primary);
}

.time-slot-btn.selected {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--neutral-white);
  box-shadow: var(--shadow-sm);
}

.time-slot-btn.booked {
  background-color: var(--neutral-light);
  border-color: var(--border-color);
  color: #cbd5e1;
  text-decoration: line-through;
  cursor: not-allowed;
}

.time-slot-btn-status {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.time-slot-btn.booked .time-slot-btn-status {
  color: #ef4444;
}

/* Restored Booking Wizard Step 3 Form Styles */
.form-group-max {
  max-width: 600px;
  margin: 0 auto;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--neutral-dark);
}

.form-select, .form-input, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: var(--bg-main);
  transition: var(--transition);
}

.form-select:focus, .form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--neutral-white);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Wizard Navigation Buttons */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 600px;
  margin: 2rem auto 0 auto;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.wizard-nav .btn {
  min-width: 120px;
}

/* Success Confirmation State */
.booking-success-container {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
  display: none;
  animation: scaleUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.booking-success-container.active {
  display: block;
}

.success-check-badge {
  width: 72px;
  height: 72px;
  background-color: var(--secondary-light);
  color: var(--secondary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.booking-success-container h2 {
  font-size: 2rem;
  color: var(--neutral-dark);
  margin-bottom: 0.5rem;
}

.booking-success-container p.success-intro {
  margin-bottom: 2rem;
}

/* Ticket Design */
.ticket-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
  margin-bottom: 2rem;
  position: relative;
}

.ticket-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--neutral-white);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.25rem;
}

.ticket-ref {
  text-align: right;
}

.ticket-ref span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  opacity: 0.8;
  letter-spacing: 0.05em;
}

.ticket-ref strong {
  font-family: var(--font-title);
  font-size: 1rem;
}

.ticket-body {
  padding: 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  position: relative;
}

.ticket-divider {
  grid-column: 1 / -1;
  border-top: 2px dashed var(--border-color);
  margin: 0.5rem 0;
  position: relative;
}

.ticket-divider::before, .ticket-divider::after {
  content: '';
  position: absolute;
  top: -10px;
  width: 20px;
  height: 20px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  z-index: 10;
}

.ticket-divider::before {
  left: -31px;
}

.ticket-divider::after {
  right: -31px;
}

.ticket-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.ticket-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--neutral-gray);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.ticket-item p {
  color: var(--neutral-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.ticket-qr-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border-color);
  padding-left: 1.5rem;
}

.ticket-footer {
  background-color: var(--neutral-light);
  padding: 1rem 2rem;
  font-size: 0.8rem;
  color: var(--neutral-gray);
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ==========================================================================
   DOCTORS SECTION - FULL DARK MODE THEME
   ========================================================================== */
section#doctors {
  max-width: 100%;
  width: 100%;
  height: auto;
  min-height: calc(100vh - var(--header-height, 68px));
  min-height: calc(100svh - var(--header-height, 68px));
  max-height: none;
  scroll-margin-top: var(--header-height, 68px);
  padding: clamp(2.5rem, 5vh, 4rem) clamp(1rem, 3vw, 1.5rem) clamp(2rem, 4vh, 3.5rem) clamp(1rem, 3vw, 1.5rem);
  background: radial-gradient(circle at 20% 25%, rgba(15, 118, 110, 0.22) 0%, transparent 45%),
              radial-gradient(circle at 80% 75%, rgba(13, 148, 136, 0.16) 0%, transparent 45%),
              linear-gradient(180deg, #071918 0%, #041211 100%);
  color: #ffffff !important;
  position: relative;
  overflow: visible;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

@media (max-width: 768px) {
  section#doctors {
    padding: 3rem 1rem 2.5rem 1rem;
  }
}

section#doctors::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.35), transparent);
  pointer-events: none;
}

section#doctors::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.35), transparent);
  pointer-events: none;
}

/* Section Header (Dark Mode & Top Viewport Position) */
#doctors .section-header {
  margin: 0 auto clamp(0.5rem, 1.4vh, 1rem) auto;
  max-width: 720px;
}

#doctors .section-header .tag {
  background: rgba(15, 118, 110, 0.35);
  color: #ffffff !important;
  border: 1px solid rgba(45, 212, 191, 0.45);
  box-shadow: 0 0 15px rgba(15, 118, 110, 0.25);
}

#doctors .section-header h1,
#doctors .section-header h2 {
  color: #ffffff !important;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  margin-top: 20px;
  margin-bottom: clamp(0.25rem, 0.6vh, 0.45rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

#doctors .section-header p {
  color: rgba(255, 255, 255, 0.92) !important;
  opacity: 1;
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  line-height: 1.48;
  max-width: 680px;
  margin: 0 auto;
}

/* Carousel Buttons (Dark Mode) */
#doctors .carousel-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 38px;
  height: 38px;
}

#doctors .carousel-nav-btn i {
  color: #ffffff !important;
}

#doctors .carousel-nav-btn:hover {
  background: var(--primary);
  color: #ffffff !important;
  border-color: #2dd4bf;
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.5);
}

#doctors .carousel-nav-btn:disabled {
  opacity: 0.25;
  background: rgba(255, 255, 255, 0.05);
}

/* Doctors Component - Single Row CSS Carousel & Interactive 3D Flip Cards */
.doctors-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto auto auto;
  padding: 0 3.25rem;
  box-sizing: border-box;
  overflow: hidden;
}

.doctors-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  padding: 0.35rem 0.5rem 0.65rem 0.5rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.doctors-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.doctors-carousel-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 2rem;
  width: 100%;
}

.doctor-card.carousel-slide {
  flex: 0 0 calc((100% - 4rem) / 3);
  max-width: calc((100% - 4rem) / 3);
  min-width: 290px;
  scroll-snap-align: start;
}

@media (max-width: 992px) {
  .doctors-carousel-wrapper {
    padding: 0 2.25rem;
  }
  .doctor-card.carousel-slide {
    flex: 0 0 calc((100% - 1.5rem) / 2);
    max-width: calc((100% - 1.5rem) / 2);
    min-width: 240px;
  }
}

@media (max-width: 640px) {
  .doctors-carousel-wrapper {
    padding: 0 1.25rem;
  }
  .doctor-card.carousel-slide {
    flex: 0 0 min(280px, 86vw);
    max-width: 86vw;
    min-width: 0;
    scroll-snap-align: center;
  }
  .doctor-card {
    height: auto;
    min-height: 350px;
  }
}

@media (max-width: 380px) {
  .doctors-carousel-wrapper {
    padding: 0 0.75rem;
  }
  .doctor-card.carousel-slide {
    flex: 0 0 88vw;
    max-width: 88vw;
  }
}

.doctor-card {
  perspective: 1200px;
  background-color: transparent;
  border: none;
  border-radius: var(--radius-md);
  height: clamp(340px, 48vh, 385px);
  cursor: pointer;
  outline: none;
  position: relative;
  margin-top: 50px;
}

.doctor-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.7s cubic-bezier(0.4, 0.0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: var(--radius-md);
}

/* Hover, Focus, & Mobile Tap Flip States */
.doctor-card:hover .doctor-card-inner,
.doctor-card:focus-within .doctor-card-inner,
.doctor-card.is-flipped .doctor-card-inner {
  transform: rotateY(180deg);
}

.doctor-card-front,
.doctor-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.doctor-card:hover .doctor-card-front,
.doctor-card:hover .doctor-card-back {
  box-shadow: 0 20px 45px -5px rgba(15, 118, 110, 0.4), 0 0 20px rgba(45, 212, 191, 0.2);
  border-color: rgba(45, 212, 191, 0.6);
}

/* FRONT SIDE (Default: Only Picture & Name - Dark Mode) */
.doctor-card-front {
  background-color: #0b201e;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotateY(0deg);
  z-index: 2;
  box-shadow: 0 14px 34px -4px rgba(0, 0, 0, 0.45);
}

.doctor-front-photo-wrap {
  position: relative;
  width: 100%;
  height: calc(100% - 58px);
  background: linear-gradient(135deg, #061918 0%, #0c2b28 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-front-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.doctor-card:hover .doctor-front-img {
  transform: scale(1.05);
}

.doctor-front-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #082220, #0d3b36);
}

.doctor-initial-text {
  font-family: var(--font-title);
  font-size: 3.2rem;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: 1px;
}

.doctor-front-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(4, 16, 15, 0.8) 100%);
}

.doctor-front-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  background: rgba(4, 18, 17, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.doctor-front-hint i,
.doctor-front-hint span {
  color: #ffffff !important;
}

.doctor-card:hover .doctor-front-hint {
  transform: translateY(-2px);
  background: #0f766e;
  border-color: #2dd4bf;
}

.doctor-front-name-bar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  background: #071918;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
}

.doctor-front-name {
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 1.22vw, 1.18rem);
  font-weight: 700;
  color: #ffffff !important;
  text-align: center;
  margin: 0;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* BACK SIDE (Flipped on Hover: Dynamically Generated Bio - Premium Presentable Layout) */
.doctor-card-back {
  background: radial-gradient(circle at 50% 15%, rgba(45, 212, 191, 0.25) 0%, transparent 65%),
              linear-gradient(155deg, #032b27 0%, #0d5851 55%, #073833 100%);
  color: #ffffff !important;
  transform: rotateY(180deg);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.5);
}

.doctor-card-back * {
  color: #ffffff !important;
}

.doctor-back-body {
  padding: clamp(0.85rem, 2vh, 1.15rem) clamp(0.95rem, 1.5vw, 1.25rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
  text-align: center;
}

.doctor-back-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.doctor-back-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 0.05rem;
}

.doctor-back-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.doctor-back-avatar-initial {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff !important;
}

.doctor-back-title {
  font-family: var(--font-title);
  font-size: clamp(1rem, 1.18vw, 1.14rem);
  font-weight: 700;
  color: #ffffff !important;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.doctor-back-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  max-width: 100%;
}

.doctor-back-badge i,
.doctor-back-badge span {
  color: #ffffff !important;
}

.doctor-back-experience {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.74rem;
  color: #ffffff !important;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.doctor-back-experience i,
.doctor-back-experience span {
  color: #ffffff !important;
}

.doctor-back-bio-card {
  position: relative;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 11px;
  padding: 0.65rem 0.9rem;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.doctor-back-quote-icon {
  color: #2dd4bf !important;
  margin-bottom: 2px;
}

.doctor-back-bio-text {
  font-size: clamp(0.72rem, 0.85vw, 0.76rem);
  line-height: 1.48;
  color: #ffffff !important;
  margin: 0;
  opacity: 1;
}

.doctor-back-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #ffffff !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.5rem;
  width: 100%;
}

.doctor-back-footer i,
.doctor-back-footer span {
  color: #ffffff !important;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .doctor-card-inner {
    transition: transform 0.01ms !important;
  }
  .doctor-front-img {
    transition: none !important;
  }
}

/* Testimonials Component */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  justify-content: center;
  gap: 1.75rem;
}

.testimonial-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  max-width: 320px;
  width: 100%;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: var(--accent);
  display: flex;
  gap: 0.25rem;
}

.testimonial-quote {
  font-size: 0.95rem;
  font-style: italic;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.user-info-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.user-info-text span {
  font-size: 0.8rem;
  color: var(--neutral-gray);
}

/* ==========================================================================
   CONTACT SECTION - FULL VIEWPORT FIT (100VH WITHOUT SCROLLING)
   ========================================================================== */
section#contact {
  max-width: 100%;
  width: 100%;
  height: auto;
  min-height: calc(100vh - var(--header-height, 68px));
  min-height: calc(100svh - var(--header-height, 68px));
  max-height: none;
  scroll-margin-top: var(--header-height, 68px);
  padding: clamp(2.5rem, 5vh, 4rem) clamp(1rem, 3vw, 1.5rem) clamp(2rem, 4vh, 3.5rem) clamp(1rem, 3vw, 1.5rem);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: visible;
  position: relative;
}

@media (max-width: 992px) {
  section#contact {
    padding: 3rem 1rem 2.5rem 1rem;
    overflow: visible;
  }
}

#contact .section-header {
  margin: 0 auto clamp(0.4rem, 1.2vh, 0.85rem) auto;
  max-width: 720px;
}

#contact .section-header .tag {
  margin-bottom: clamp(0.15rem, 0.4vh, 0.3rem);
  padding: 0.25rem 0.85rem;
  font-size: 0.75rem;
}

#contact .section-header h2 {
  font-size: clamp(1.75rem, 2.3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: clamp(0.15rem, 0.4vh, 0.3rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

#contact .section-header p {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  line-height: 1.45;
  max-width: 660px;
  margin: 0 auto;
}

#contact .contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: stretch;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
  min-height: 0;
}

#contact .contact-info-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  gap: 10px;
}

#contact .contact-item {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.2vw, 1.15rem);
}

#contact .contact-icon {
  width: clamp(38px, 4.2vh, 44px);
  height: clamp(38px, 4.2vh, 44px);
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#contact .contact-icon svg,
#contact .contact-icon i {
  width: 20px;
  height: 20px;
}

#contact .contact-detail h4 {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: var(--neutral-dark);
  line-height: 1.25;
}

#contact .contact-detail p {
  font-size: clamp(0.82rem, 0.95vw, 0.88rem);
  line-height: 1.4;
  color: var(--neutral-gray);
  margin: 0;
}

#contact .working-hours-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: clamp(0.75rem, 1.4vh, 1.15rem) clamp(0.9rem, 1.6vh, 1.25rem);
  box-shadow: var(--shadow-sm);
}

#contact .working-hours-card h4 {
  margin-bottom: clamp(0.3rem, 0.7vh, 0.5rem);
  font-size: clamp(0.9rem, 1.05vw, 0.98rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--neutral-dark);
}

#contact .working-hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#contact .working-hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.2rem 0;
  border-bottom: none;
  font-size: clamp(0.82rem, 0.92vw, 0.88rem);
}

#contact .working-hours-list li span.hours {
  color: var(--secondary);
  font-weight: 600;
}

#contact .map-container {
  height: 100%;
  min-height: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  background-color: #e2e8f0;
}

#contact .map-mock-bg {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

#contact .map-mock-bg iframe {
  border: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

@media (max-width: 992px) {
  #contact .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  #contact .map-container {
    height: 300px;
    min-height: 280px;
  }
}

.map-mock-bg {
  width: 100%;
  height: 100%;
  position: relative;
  background-image: radial-gradient(#cbd5e1 2px, transparent 2px), radial-gradient(#94a3b8 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-road-1 {
  position: absolute;
  top: 30%;
  left: 0;
  right: 0;
  height: 16px;
  background-color: var(--neutral-white);
  transform: rotate(-5deg);
}

.map-road-2 {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 45%;
  width: 20px;
  background-color: var(--neutral-white);
  transform: rotate(20deg);
}

.map-road-3 {
  position: absolute;
  bottom: 25%;
  left: 0;
  right: 0;
  height: 24px;
  background-color: var(--neutral-white);
}

.map-green-zone {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 120px;
  height: 80px;
  background-color: #dcfce7;
  border-radius: var(--radius-sm);
  opacity: 0.8;
}

.map-marker {
  position: absolute;
  top: 48%;
  left: 55%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
  animation: mapPinBounce 2s infinite ease-in-out;
  cursor: pointer;
  z-index: 50;
}

.map-marker-pin {
  width: 42px;
  height: 42px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-white);
}

.map-marker-pin svg {
  transform: rotate(45deg);
}

.map-marker-shadow {
  width: 14px;
  height: 4px;
  background-color: rgba(15,23,42,0.3);
  border-radius: 50%;
  margin-top: 2px;
}

.map-popup {
  position: absolute;
  top: 28%;
  left: 55%;
  transform: translate(-50%, -100%);
  background-color: var(--neutral-white);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.8rem;
  z-index: 49;
  width: max-content;
}

.map-popup h5 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.map-popup p {
  font-size: 0.75rem;
}

.map-overlay-card {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-overlay-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.map-overlay-info p {
  font-size: 0.8rem;
}

/* Modals Components (Login / Sign Up) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 440px;
  padding: 2.5rem 2.25rem;
  position: relative;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--neutral-gray);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--neutral-light);
  color: var(--neutral-dark);
}

/* Compact Form Row for side-by-side inputs */
.form-row {
  display: flex;
  gap: 1rem;
}

@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ==========================================
   5-Step Patient Booking Wizard Component Styles
   ========================================== */

.schedule-booking-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  max-width: 950px;
  margin: 0 auto 2rem auto;
}

@media (max-width: 868px) {
  .schedule-booking-split {
    grid-template-columns: 1fr;
  }
}

.calendar-wrapper {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

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

.calendar-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neutral-dark);
  margin: 0;
}

.calendar-nav-btn {
  background: none;
  border: 1px solid var(--border-color);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--neutral-dark);
  transition: var(--transition-fast);
}

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

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neutral-gray);
  margin-bottom: 0.75rem;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

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

.calendar-day.disabled {
  color: #cbd5e1;
  cursor: not-allowed;
  background-color: rgba(241, 245, 249, 0.4);
}

.calendar-day.available {
  background-color: rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.25);
  color: var(--neutral-dark);
}

.calendar-day.available:hover {
  background-color: var(--secondary);
  color: var(--neutral-white);
}

.calendar-day.selected {
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: var(--neutral-white) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
  font-weight: 700;
}

.time-slots-container {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.selected-date-banner {
  background-color: var(--primary-light);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
}

.selected-date-banner .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--primary-hover);
}

.selected-date-banner h4 {
  margin: 0.25rem 0 0.15rem 0;
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 700;
}

.selected-date-banner p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--neutral-dark);
  margin: 0;
}

.time-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--neutral-white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--neutral-dark);
}

.time-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.time-chip.selected {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--neutral-white);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
}

/* Step 4: Patient Info Form Grid */
.form-grid-two-col {
  max-width: 750px;
  margin: 0 auto 2rem auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .form-grid-two-col {
    grid-template-columns: 1fr;
  }
  .form-field.full-width {
    grid-column: 1 / -1 !important;
  }
}

.form-field.full-width {
  grid-column: span 2;
}

/* Step 5: Summary Card */
.booking-summary-card {
  max-width: 650px;
  margin: 0 auto 2rem auto;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.summary-header {
  background-color: var(--primary-light);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.summary-header h4 {
  margin: 0;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
}

.summary-details {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.summary-label {
  color: var(--neutral-gray);
  font-weight: 500;
}

.summary-value {
  color: var(--neutral-dark);
  font-weight: 600;
  text-align: right;
}

.summary-value.highlight-value {
  color: var(--primary);
  font-weight: 700;
}

.summary-value.price-tag {
  color: var(--secondary);
  font-size: 1.2rem;
  font-weight: 800;
}

.summary-divider {
  border-top: 1px dashed var(--border-color);
  margin: 0.5rem 0;
}

/* =========================================
   FAQ Section Accordion Component
   ========================================= */
.faq-container {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-accordion-item {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.faq-accordion-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.faq-accordion-header {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--neutral-dark);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  gap: 1rem;
}

.faq-accordion-header:hover {
  color: var(--primary);
}

.faq-accordion-item.active .faq-accordion-header {
  color: var(--primary);
  background-color: var(--primary-light);
}

.faq-icon-toggle {
  transition: transform 0.3s ease;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-accordion-item.active .faq-icon-toggle {
  transform: rotate(180deg);
}

.faq-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.35s ease;
  padding: 0 1.5rem;
}

.faq-accordion-item.active .faq-accordion-body {
  max-height: 1000px;
  transition: max-height 0.5s ease-in-out, padding 0.35s ease;
  padding: 1.25rem 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

.faq-accordion-body p {
  color: var(--neutral-gray);
  line-height: 1.65;
  font-size: 0.98rem;
  margin: 0;
}

/* ==========================================================================
   AESTHETIC ONLINE BOOKING VIDEO DEMO SECTION
   ========================================================================== */

.how-to-book-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.video-demo-container {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

.video-demo-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.video-demo-info h2 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--neutral-dark);
}

.video-demo-desc {
  font-size: 1.05rem;
  color: var(--neutral-gray);
  line-height: 1.65;
}

.booking-steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0.5rem 0 1rem 0;
}

.booking-step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.05);
  transition: var(--transition);
}

.booking-step-item:hover {
  transform: translateX(6px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.95);
}

.step-num-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}

.step-item-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--neutral-dark);
}

.step-item-content p {
  font-size: 0.88rem;
  color: var(--neutral-gray);
  margin: 0;
  line-height: 1.45;
}

.video-demo-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn-lg-glow {
  padding: 0.9rem 1.85rem;
  font-size: 1.02rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 25px -4px rgba(15, 118, 110, 0.45);
}

.btn-lg-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(15, 118, 110, 0.6);
}

/* Right: Aesthetic Device Showcase Frame */
.video-demo-showcase {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.video-ambient-glow {
  position: absolute;
  width: 90%;
  height: 90%;
  top: 5%;
  left: 5%;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.35) 0%, rgba(56, 189, 248, 0.25) 50%, transparent 75%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}

.aesthetic-video-frame {
  position: relative;
  z-index: 2;
  border-radius: 20px;
  overflow: hidden;
  background: #091322;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 35px rgba(13, 148, 136, 0.18);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.aesthetic-video-frame:hover {
  transform: translateY(-4px) scale(1.01);
}

.video-browser-bar {
  background: #0d1a2d;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.browser-url-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: #94a3b8;
  font-family: var(--font-body);
}

.browser-live-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.05em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.video-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #070e1a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Interactive Mockup Preview (Aesthetic fallback when video file isn't uploaded or loading) */
.video-fallback-mockup {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  background: linear-gradient(145deg, #0b1526 0%, #08111e 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
  transition: opacity 0.4s ease;
}

.video-fallback-mockup.hidden {
  opacity: 0;
  pointer-events: none;
}

.mockup-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-clinic-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.mockup-logo-square {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(13, 148, 136, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2dd4bf;
}

.mockup-step-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.mockup-booking-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: auto 0;
}

.mockup-title {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.mockup-date-row {
  display: flex;
  gap: 6px;
  margin-bottom: 0.75rem;
}

.mockup-date-pill {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: #cbd5e1;
}

.mockup-date-pill.active {
  background: rgba(13, 148, 136, 0.25);
  border-color: #2dd4bf;
  color: #2dd4bf;
  font-weight: 600;
}

.mockup-slots-label {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.mockup-slots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mockup-slot {
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
}

.mockup-slot.active-slot {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.35), rgba(56, 189, 248, 0.25));
  border-color: #38bdf8;
  color: #ffffff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mockup-card-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.mockup-dentist-preview {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mockup-dentist-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  font-size: 0.8rem;
}

.mockup-dentist-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.mockup-dentist-spec {
  font-size: 0.7rem;
  color: #94a3b8;
}

.mockup-service-tag {
  font-size: 0.72rem;
  color: #2dd4bf;
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mockup-confirm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
  transition: var(--transition-fast);
}

.mockup-confirm-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* Floating Badges */
.video-floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 15px 30px -5px rgba(15, 23, 42, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
  z-index: 4;
  animation: float 5s ease-in-out infinite;
}

.badge-top-right {
  top: -16px;
  right: 0;
  animation-delay: -1.5s;
}

.badge-bottom-left {
  bottom: -18px;
  left: 0;
  animation-delay: -3s;
}

.badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--neutral-dark);
  line-height: 1.2;
}

.badge-subtitle {
  font-size: 0.72rem;
  color: var(--neutral-gray);
}

/* Controls Overlay */
.video-controls-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 14, 26, 0.95) 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}

.video-play-btn,
.video-sound-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.video-play-btn:hover,
.video-sound-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.08);
}

.video-timeline-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.video-timeline-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2dd4bf, #38bdf8);
  border-radius: var(--radius-full);
  transition: width 0.1s linear;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .video-demo-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .video-demo-info {
    align-items: center;
  }

  .booking-step-item {
    text-align: left;
  }

  .video-demo-actions {
    justify-content: center;
  }

  .badge-top-right,
  .badge-bottom-left {
    display: none;
  }
}

@media (max-width: 576px) {
  .mockup-booking-body {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .mockup-date-row {
    flex-wrap: wrap;
  }
  .mockup-slots-grid {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  }
  .video-demo-actions {
    flex-direction: column;
    width: 100%;
  }
  .video-demo-actions a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .browser-url-pill {
    padding: 3px 8px;
    font-size: 0.7rem;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .booking-step-item {
    padding: 0.85rem 0.95rem;
    gap: 0.75rem;
  }
  .step-num-badge {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
  .btn-lg-glow {
    font-size: 0.92rem;
    padding: 0.75rem 1.25rem;
  }
}


