/* ==========================================================================
   Design Tokens & CSS Custom Properties
   ========================================================================== */
:root {
  /* Brand Color Palette */
  --primary-color: #cc9933; /* Stag Gold */
  --primary-hover: #b8852b;
  --primary-light: #faf6ed;

  --stag-green: #223d2d; /* The Stag Green */

  /* Background Gradients */
  --dark-bg-gradient: linear-gradient(180deg, #223d2d 0%, #020201 100%);
  --dc-dark-gradient: linear-gradient(180deg, #2c3339 0%, #000000 100%);
  --blended-dark-gradient: linear-gradient(
    180deg,
    #223d2d 0%,
    #15271d 50%,
    #0a130e 100%
  );

  --light-bg: #f5f0e6; /* Stag Neutral Cream Background */

  --text-dark: #223d2d; /* Use Stag Green for text by default */
  --text-muted: #536e5e; /* Muted Green-Gray */
  --text-light: #ffffff;
  --text-light-muted: #aeaec0;

  /* Status Colors */
  --color-success: #188038;
  --color-error: #d93025;
  --bg-error: #fce8e6;

  /* Typography Fonts */
  --font-sans: "Montserrat", sans-serif;
  --font-serif: "Fraunces", serif;

  /* Shadows & Borders */
  --neu-shadow:
    1.5px 1.5px 3px 0px rgba(174, 174, 192, 0.4),
    -1px -1px 3px 0px rgba(255, 255, 255, 1);
  --neu-border: 1px solid rgba(255, 255, 255, 0.8);

  /* Layout Constants */
  --container-max-width: 1400px;
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 24px;
  --transition-speed: 0.3s;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--light-bg);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   Helper Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.text-center {
  text-align: center;
}
.text-light {
  color: var(--text-light);
}
.text-light-muted {
  color: var(--text-light-muted);
}
.bold-text {
  font-weight: 600;
}
.light-text {
  font-weight: 500;
  opacity: 0.95;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 30px;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 4px 10px rgba(204, 153, 51, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(204, 153, 51, 0.3);
}

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

.btn-primary-green {
  background-color: var(--stag-green);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(34, 61, 45, 0.2);
}

.btn-primary-green:hover {
  background-color: #172c20;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(34, 61, 45, 0.3);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--text-dark);
  border: 1px solid rgba(44, 51, 57, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(44, 51, 57, 0.05);
  border-color: rgba(44, 51, 57, 0.4);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
/* Top bar */
.top-bar {
  background-color: var(--primary-color);
  padding: 8px 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.top-bar-link {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-link:hover {
  opacity: 0.8;
}

.top-bar-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* Main Header */
.main-header {
  background-color: #ffffff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  transition:
    transform var(--transition-speed) ease,
    opacity var(--transition-speed) ease;
}

.logo-link:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

.logo-divider {
  width: 1.5px;
  height: 26px;
  background-color: var(--stag-green);
  opacity: 0.2;
  margin: 0 15px;
}

.brand-logo {
  height: 100px;
  max-width: 140px;
  object-fit: contain;
}

/* Primary Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-dark);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

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

.nav-cta {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Hamburger menu for mobile */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  z-index: 110;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  transition: all 0.3s ease;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 64px 0;
  background-color: var(--light-bg);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Added drop shadows and neuomorphic styling per user feedback */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--light-bg);
  border: var(--neu-border);
  box-shadow: var(--neu-shadow);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.badge-icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800; /* Bold headings */
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.highlight-serif {
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  color: var(--primary-color);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Google Rating Widget */
.rating-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  border-radius: var(--border-radius-md);
}

.rating-google-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.rating-details {
  display: flex;
  flex-direction: column;
}

.rating-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rating-header .score {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.rating-header .stars {
  color: var(--primary-color);
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.reviews-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-image-wrapper {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.02);
}

/* ==========================================================================
   Personal Message Section
   ========================================================================== */
.message-section {
  padding: 50px 0;
  background-color: #ffffff;
}

.message-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.section-title-dark {
  font-size: 2.6rem;
  font-weight: 800; /* Bold headings */
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.25;
  text-align: center;
}

/* Dual Quotes Card Row */
.dual-quotes-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 10px 0;
  width: 100%;
}

.quote-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius-md);
  padding: 45px 35px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-mark {
  position: absolute;
  left: 20px;
  top: 15px;
  font-size: 4rem;
  font-family: var(--font-serif);
  color: var(--primary-color);
  line-height: 1;
  opacity: 0.2;
}

.patient-quote {
  font-family: var(--font-serif); /* Serif font selectively applied */
  font-size: 1.15rem;
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 25px;
  font-style: italic;
  text-align: center;
  position: relative;
  z-index: 2;
}

.quote-author-info {
  border-top: 1px solid #eceff1;
  padding-top: 20px;
  text-align: center;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.author-title {
  font-size: 0.75rem;
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Visuals Grid (Michael & Team, Manish & Chandra, Video) */
.visuals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  width: 100%;
  margin-top: 20px;
}

.visual-card {
  background-color: #ffffff;
  border-radius: var(--border-radius-md);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition:
    transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.visual-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.visual-img-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #e2e8f0;
}

.visual-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

.visual-card:hover .visual-img-wrapper img {
  transform: scale(1.04);
}

.visual-meta {
  padding: 20px 15px;
  text-align: center;
}

.visual-meta h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.visual-meta p {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Video Overlay Button styling */
.video-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(204, 153, 51, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.visual-card:hover .video-overlay-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: var(--primary-hover);
}

.play-icon {
  color: #ffffff;
  font-size: 1.1rem;
  margin-left: 3px;
}

/* Stats */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin: 35px 0;
  border-top: 1.5px solid #e2e8f0;
  border-bottom: 1.5px solid #e2e8f0;
  padding: 20px 0;
  width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.stat-number {
  font-size: 3rem;
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.stat-item-divider {
  width: 1px;
  height: 50px;
  background-color: #e2e8f0;
}

/* Signatures */
.signatures-row {
  display: flex;
  align-items: center;
  gap: 30px;
}

.signature-col {
  flex: 1;
}

.signature-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.signature-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.signature-divider {
  width: 1px;
  height: 35px;
  background-color: #e2e8f0;
}

/* ==========================================================================
   Advanced Technology Section
   ========================================================================== */
.tech-section {
  padding: 64px 0;
  background: var(--blended-dark-gradient);
}

.tech-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.tech-content {
  display: flex;
  flex-direction: column;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Tab list */
.tech-tabs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-light);
  transition: all var(--transition-speed) ease;
  text-align: left;
}

.tech-tab:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.tech-tab.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 10px 20px rgba(204, 153, 51, 0.15);
}

.tab-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.tab-icon {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.tab-arrow {
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-5px);
  transition: all var(--transition-speed) ease;
}

.tech-tab:hover .tab-arrow,
.tech-tab.active .tab-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Tech Visual */
.tech-image-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.tech-image {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  transition: opacity 0.3s ease;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ==========================================================================
   Benefits Section
   ========================================================================== */
.benefits-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.benefit-card {
  background-color: var(--light-bg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--neu-shadow);
  padding: 35px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform var(--transition-speed)
    cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.benefit-card:hover {
  transform: translateY(-5px);
  background-color: var(--primary-color) !important;
}

.benefit-icon-wrapper {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.benefit-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.benefit-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
/* Before & After Gallery Section */
.before-after-section {
  padding: 64px 0;
  background-color: #ffffff;
}

.before-after-container {
  max-width: 900px;
  margin: 0 auto;
}

.before-after-header {
  margin-bottom: 35px;
}

.before-after-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ba-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

/* Testimonials Section */
.testimonials-section {
  padding: 64px 0;
  background-color: #fafafa;
}

.testimonials-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Added drop shadow and neuomorphic styling per user feedback */
.badge-tag-alt {
  display: inline-block;
  background-color: var(--light-bg);
  border: var(--neu-border);
  box-shadow: var(--neu-shadow);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.stars-rating {
  color: var(--primary-color);
  font-size: 1.4rem;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

/* Slider */
.slider-wrapper {
  min-height: 160px;
  margin-bottom: 30px;
}

.slider-text {
  font-size: 1.1rem;
  line-height: 1.65;
  color: #475569;
  font-style: italic;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.slider-text.active {
  display: block;
  opacity: 1;
}

.slider-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 15px;
}

.slider-author {
  color: var(--text-dark);
}

.slider-meta-divider {
  color: #cbd5e1;
}

.slider-treatment {
  color: var(--text-dark);
}

/* Slider Controls (Placeholder styled next/prev arrows) */
.slider-controls {
  display: flex;
  gap: 12px;
}

.slider-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.slider-arrow-svg {
  width: 40px;
  height: 40px;
  transition: all var(--transition-speed) ease;
}

.slider-arrow-svg .bg-rect {
  transition:
    fill var(--transition-speed) ease,
    fill-opacity var(--transition-speed) ease;
}

.slider-arrow-svg .border-rect {
  transition: stroke var(--transition-speed) ease;
}

.slider-arrow-svg .arrow-path {
  transition: fill var(--transition-speed) ease;
}

.slider-btn:hover .slider-arrow-svg .bg-rect {
  fill: var(--primary-color) !important;
  fill-opacity: 1 !important;
}

.slider-btn:hover .slider-arrow-svg .border-rect {
  stroke: var(--primary-color) !important;
}

.slider-btn:hover .slider-arrow-svg .arrow-path {
  fill: var(--text-dark) !important;
}

/* Before / After Images */
.ba-image-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 800px;
  width: 100%;
}

.ba-image-wrapper {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.ba-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: all 0.3s ease;
}

.ba-image-wrapper:hover .ba-image {
  transform: scale(1.02);
}

.ba-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ba-tag-after {
  background-color: #ffffff;
  color: var(--text-dark);
}

.ba-tag-before {
  background-color: #ffffff;
  color: var(--text-dark);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 40px 0;
  background-color: #ffffff;
}

.faq-section .section-subtitle {
  text-align: center;
  margin-bottom: 45px;
}

.faq-accordion-list {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-speed) ease;
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  text-align: left;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark);
  transition: all var(--transition-speed) ease;
  gap: 20px;
}

.faq-icon-container {
  width: 44px;
  height: 44px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-icon {
  position: absolute;
  transition: all var(--transition-speed) ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-icon-open {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.faq-icon-close {
  opacity: 1;
  transform: scale(1);
}

.faq-item.active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 10px 25px rgba(204, 153, 51, 0.25) !important;
}

.faq-item.active .faq-trigger {
  color: var(--text-light);
}

.faq-item.active .faq-icon-open {
  opacity: 1;
  transform: scale(1);
}

.faq-item.active .faq-icon-close {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 0.95rem;
  transition:
    max-height var(--transition-speed) cubic-bezier(0, 1, 0, 1),
    padding var(--transition-speed) ease;
}

.faq-item.active .faq-content {
  max-height: 1000px;
  padding: 0 30px 24px 30px;
  color: var(--text-light);
  font-weight: 400;
  transition:
    max-height 0.5s ease-in-out,
    padding var(--transition-speed) ease;
}

/* ==========================================================================
   Contact / Registration Section
   ========================================================================== */
.contact-section {
  padding: 50px 0;
  background-color: #ffffff;
}

/* Form Container Card with split layouts (Figma specification match) */
.contact-card-gradient {
  background: transparent;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden; /* Clips column backgrounds to container's rounded corners */
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-card-content {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0;
  align-items: stretch; /* Keep both panels at equal height */
}

/* Left Panel - Info (Gradient background) */
.contact-info-panel {
  background: var(--blended-dark-gradient);
  padding: 100px 50px;
  display: flex;
  flex-direction: column;
}

.contact-heading {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.25;
  margin-bottom: 20px;
}

.contact-subheading {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Horizontal divider line */
  padding-bottom: 25px;
  margin-bottom: 35px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-light);
}

.detail-icon-box {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-icon-box img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.detail-link {
  font-size: 1.05rem;
  font-weight: 600;
}

.detail-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-light);
}

/* Right Panel - Form (#FAFAFA background) */
.contact-form-panel {
  background-color: #fafafa;
  padding: 50px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

/* Form Controls styling */
input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: all var(--transition-speed) ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(204, 153, 51, 0.2);
}

/* Dropdown styling wrapper */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
}

.custom-select-wrapper::after {
  content: "▼";
  font-size: 0.7rem;
  color: var(--text-muted);
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Patient Status Box Container (Redesigned per feedback) */
.patient-selector-box {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  border-radius: var(--border-radius-md);
  padding: 24px 20px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
}

.patient-selector-box label {
  align-self: flex-start;
  text-align: left;
  width: 100%;
  margin-bottom: 0;
}

.patient-selector-buttons {
  display: flex;
  gap: 15px;
  width: 100%;
  justify-content: space-between;
}

.btn-selector {
  flex: 1;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  background-color: #ffffff;
  color: var(--text-dark);
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-speed) ease;
  text-align: center;
}

.btn-selector:hover {
  opacity: 0.95;
}

.btn-selector.active {
  background-color: var(--primary-color);
  color: var(--text-dark);
  border-color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(204, 153, 51, 0.25);
}

/* Validation styling */
.field-container {
  position: relative;
}

.error-feedback {
  display: none;
  color: var(--color-error);
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 4px;
}

/* Styling for invalid states */
input:user-invalid,
select:user-invalid {
  border-color: var(--color-error);
  background-color: var(--bg-error);
}

input:user-invalid + .error-feedback,
select:user-invalid + .error-feedback {
  display: block;
}

/* Custom error dirty classes applied dynamically by JS for stricter patterns */
input.invalid-dirty,
select.invalid-dirty {
  border-color: var(--color-error);
  background-color: var(--bg-error);
}

input.invalid-dirty + .error-feedback,
select.invalid-dirty + .error-feedback {
  display: block;
}

/* ReCAPTCHA Wrapper styling */
.recaptcha-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 25px;
}

/* Thank You screen */
.thank-you-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 10px;
  min-height: 400px;
  animation: fadeIn 0.5s ease-out;
}

.thank-you-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(204, 153, 51, 0.3);
}

.thank-you-box h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.thank-you-box p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

/* Button disabled/loading state */
#submit-btn:disabled {
  background-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ==========================================================================
   Bottom Footer
   ========================================================================== */
.bottom-footer {
  background: var(--blended-dark-gradient);
  color: #94a3b8;
  padding: 50px 0 30px 0;
  font-size: 0.85rem;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* Logos */
.footer-logos {
  display: flex;
  align-items: center;
  gap: 0;
}

.footer-brand-logo {
  height: 75px;
  max-width: 130px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity var(--transition-speed) ease;
}

.footer-brand-logo:hover {
  opacity: 1;
}

.footer-divider {
  background-color: #ffffff !important;
  opacity: 0.3 !important;
}

/* Social Icons */
.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
}

.footer-socials a img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-socials a:hover {
  background-color: var(--primary-color);
}

.footer-socials a:hover img {
  filter: none;
}

/* Copyright & Link */
.footer-copyright {
  border-top: 1px solid #1e293b;
  width: 100%;
  padding-top: 25px;
  text-align: center;
}

.footer-copyright a {
  color: #ffffff;
}

.footer-copyright a:hover {
  color: var(--primary-color);
}

/* ==========================================================================
   Responsive Design Media Queries
   ========================================================================== */

/* Tablet Layout (up to 1024px) */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image-wrapper {
    max-width: 600px;
    margin: 0 auto;
  }

  .message-container {
    gap: 30px;
  }

  .dual-quotes-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .visuals-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tech-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .tech-image-wrapper {
    max-width: 600px;
    margin: 0 auto;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ba-image-container {
    max-width: 600px;
    margin: 0 auto;
    grid-template-columns: 1fr 1fr;
  }

  .contact-card-content {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Mobile Navigation Trigger & Breakpoint (up to 768px) */
@media (max-width: 768px) {
  .logo-area{
    padding-left: 30px;
  }
  .hero-section {
    padding: 32px 0;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-description {
    font-size: 1rem;
  }
  /* Keep action buttons side-by-side on mobile per feedback */
  .hero-actions {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 12px 10px;
    white-space: nowrap;
    border-radius: 30px;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 75px; /* Height of header top boundary */
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 40px 20px;
    gap: 30px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .top-bar-content {
    justify-content: center;
    text-align: center;
  }

  .top-bar-left,
  .top-bar-right {
    justify-content: center;
    width: 100%;
  }

  .top-bar-left {
    flex-direction: row;
    gap: 6px;
  }

  .top-bar-left span {
    font-size: 0.65rem;
    line-height: 1.45;
  }

  /* Toggle Active Animation of hamburger */
  .mobile-nav-toggle.open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-nav-toggle.open .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle.open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .contact-card-gradient {
    padding: 0;
  }

  .contact-info-panel {
    padding: 40px 20px;
  }

  .contact-heading {
    font-size: 1.4rem;
  }

  .contact-form-panel {
    padding: 35px 20px;
  }

  .form-row-two {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Maintain 2 columns per row in benefits grid on phone per feedback */
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
  }

  .stats-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin: 25px 0;
  }

  .stat-item {
    width: 100%;
  }

  .stat-item:first-child {
    border-right: none;
    padding-right: 0;
    border-bottom: 1.5px solid #eceff1;
    padding-bottom: 15px;
  }
  .stat-number {
    font-size: 2rem;
  }
  .stat-label {
    font-size: 0.8rem;
  }
  .ba-image-container {
    grid-template-columns: 1fr;
  }
  .patient-selector-buttons {
    flex-direction: row;
    gap: 10px;
  }
  .section-title,
  .section-title-dark {
    font-size: 2rem;
  }
  .patient-quote {
    font-size: 0.9rem;
    font-weight: 400;
  }
  .tab-title {
    font-size: 0.9rem;
  }
  .faq-trigger {
    font-size: 1rem;
  }
  .faq-section {
    padding: 32px 0;
  }
  .contact-section {
    padding: 40px 0;
  }
}

/* Video Walkthrough Modal */
.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  background-color: #000000;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.video-modal-overlay.open .video-modal-container {
  transform: scale(1);
}

.video-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #ffffff;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2010;
  line-height: 1;
  transition: background-color 0.2s ease;
}

.video-modal-close:hover {
  background-color: var(--primary-color);
  color: var(--text-dark);
}

.video-modal-body {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-modal-body iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
