:root {
  --bg: #F8FAFC;
  --surface: #ffffff;
  --surface-soft: #EDF5FB; /* Soft clinical ice-blue tint */
  --text: #162E44;         /* Deep professional navy */
  --muted: #506B82;        /* Slate blue muted text */
  --primary: #0B6EBA;      /* Exact brochure medical blue */
  --primary-dark: #08548A;
  --accent: #ED6C35;       /* Warm brochure orange */
  --accent-dark: #D45924;
  --border: #D2E3F0;       /* Soft light blue border */
  --radius: 16px;
  --shadow-soft: 0 10px 35px -10px rgba(11, 110, 186, 0.08);
  --shadow-hover: 0 18px 40px -10px rgba(11, 110, 186, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1.05rem;
}

h1, h2, h3, h4, h5, h6,
.brand-text, .btn, .eyebrow {
  font-family: "Lexend", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #123533;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(253, 251, 246, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220, 230, 227, 0.6);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: var(--surface-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--border);
}

/* ===============================
   HERO SECTION
=============================== */
.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.eyebrow-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.eyebrow-rating svg {
  color: var(--accent);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.lead,
.section-text {
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  border: 0;
  border-radius: 99px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 122, 79, 0.25);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 122, 79, 0.35);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-soft);
  transform: translateY(-2px);
}

.btn-compact {
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel-text {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.trust-stats {
  display: grid;
  gap: 1rem;
}

.trust-stats p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-stats strong {
  color: var(--primary);
  font-size: 1.25rem;
}

/* ===================================================
   3D SCROLLYTELLING (CLEAN BLENDED MEDICAL THEME)
=================================================== */
.scrolly-section {
  position: relative;
  background-color: #EDF5FB;
  /* Soft ambient radial blend matching the website flow */
  background-image: 
    radial-gradient(ellipse 65% 55% at 50% 50%, rgba(11, 110, 186, 0.15) 0%, rgba(237, 245, 251, 0.95) 75%),
    radial-gradient(circle at 80% 15%, rgba(237, 108, 53, 0.08) 0%, transparent 50%);
  color: var(--text);
  height: 380vh;
  touch-action: pan-y;
}

.scrolly-sticky-frame {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scrolly-sticky-frame::after {
  content: "";
  position: absolute;
  bottom: 12%;
  width: 440px;
  height: 45px;
  background: radial-gradient(ellipse at center, rgba(11, 110, 186, 0.18) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
  filter: blur(10px);
}

.model-canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}

model-viewer#hearing-aid-3d {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  outline: none;
  pointer-events: none;
}

.scrolly-overlay-track {
  position: relative;
  z-index: 3;
  width: min(1140px, 90%);
  height: 100%;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.scrolly-step {
  position: absolute;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem 2.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(11, 110, 186, 0.18);
  box-shadow: 0 20px 45px rgba(11, 110, 186, 0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  touch-action: pan-y;
}

.scrolly-step.active {
  opacity: 1;
  transform: translateY(0);
}

.scrolly-step h2 {
  color: var(--primary);
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: 1.25;
}

.scrolly-step p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.tech-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(237, 108, 53, 0.12);
  border: 1px solid rgba(237, 108, 53, 0.35);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}

/* Desktop layout */
@media (min-width: 769px) {
  .scrolly-step[data-step="0"] { left: 0; }
  .scrolly-step[data-step="1"] { right: 0; }
  .scrolly-step[data-step="2"] { left: 0; }
  .scrolly-step[data-step="3"] { right: 0; }
}

/* Mobile layout */
@media (max-width: 768px) {
  .scrolly-section {
    height: 260vh;
  }

  .scrolly-sticky-frame {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 4.5rem 1rem 1.5rem;
  }

  .model-canvas-container {
    position: relative;
    height: 42vh;
    width: 100%;
    inset: auto;
  }

  .scrolly-overlay-track {
    position: relative;
    height: 38vh;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 1rem;
  }

  .scrolly-step {
    position: absolute;
    width: 100%;
    max-width: 100%;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
  }

  .scrolly-step h2 {
    font-size: 1.25rem;
    margin: 0.3rem 0 0.4rem;
  }

  .scrolly-step p {
    font-size: 0.88rem;
    line-height: 1.45;
  }
}
/* ===============================
   BENTO GRID SERVICES
=============================== */
.section {
  padding: 4.5rem 0;
}

.section-grid {
  display: grid;
  gap: 2.5rem;
}

.alt-soft {
  background: var(--surface-soft);
}

.alt {
  background: #E8F0EE;
}

.section-header-wrap {
  margin-bottom: 2.5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-span-12 { grid-column: span 12; }
.bento-span-8 { grid-column: span 12; }
.bento-span-7 { grid-column: span 12; }
.bento-span-5 { grid-column: span 12; }
.bento-span-4 { grid-column: span 12; }

@media (min-width: 900px) {
  .bento-span-8 { grid-column: span 8; }
  .bento-span-7 { grid-column: span 7; }
  .bento-span-5 { grid-column: span 5; }
  .bento-span-4 { grid-column: span 4; }
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #B8D1CC;
}

.bento-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-dark);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.85rem;
}

.interactive-pta-widget {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #F7FAF9;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.pta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.pta-badge {
  color: var(--accent);
  background: #FFF4EF;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
}

.frequency-spectrum {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.freq-btn {
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.freq-btn:hover,
.freq-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.pta-description {
  font-size: 0.88rem;
  margin: 0;
  color: var(--muted);
}

.brand-pill-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.brand-pill {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  background: var(--surface-soft);
  border-radius: 8px;
  color: var(--primary-dark);
  border: 1px solid rgba(33, 131, 124, 0.15);
}

.milestone-widget {
  margin-top: 1.25rem;
  background: #F7FAF9;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid var(--border);
}

.age-toggle-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.age-tab {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid var(--border);
  padding: 0.45rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.age-tab.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.milestone-pane {
  display: none;
}

.milestone-pane.active {
  display: block;
}

.milestone-pane ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: var(--text);
}

.milestone-pane li {
  margin-bottom: 0.35rem;
}

.specialty-check-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.specialty-check-list li {
  margin-bottom: 0.6rem;
}

/* ===============================
   WHY US & CARDS
=============================== */
.card {
  background: var(--surface);
  border: 1px solid rgba(220, 230, 227, 0.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border);
}

.why-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}

.why-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.why-icon {
  color: var(--primary);
  margin-bottom: 1.25rem;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--surface-soft);
  border-radius: 12px;
}

/* ===============================
   APPOINTMENT FORM
=============================== */
.booking-notes {
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.booking-notes li {
  margin-bottom: 0.5rem;
}

.booking-form {
  display: grid;
  gap: 1.5rem;
  background: var(--surface);
  padding: 2.5rem;
  border: none;
}

.booking-form label {
  display: grid;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #FAFCFB;
  color: var(--text);
  font: inherit;
  padding: 0.9rem 1.15rem;
  transition: all 0.2s ease;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

input:hover, select:hover, textarea:hover {
  border-color: #B5C9C5;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(33, 131, 124, 0.15);
  background: #ffffff;
}

.field-row {
  display: grid;
  gap: 1.5rem;
}

/* ===============================
   DOCTOR & CONTACT
=============================== */
.doctor-card {
  display: grid;
  gap: 1.5rem;
  border: none;
}

.avatar {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(25, 70, 68, 0.08);
}

.trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
}

.trust-tags span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-dark);
  background: #E8F0EE;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}

.doctor-points {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.doctor-points li {
  margin-bottom: 0.5rem;
}

.contact-grid {
  align-items: stretch;
}

.contact-card {
  margin-top: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: none;
}

.contact-list p {
  margin: 0.75rem 0;
  color: var(--text);
}

.map-placeholder {
  min-height: 300px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 700px) {
  .hero-grid { grid-template-columns: 1.35fr 1fr; align-items: stretch; }
  .section-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .doctor-card { grid-template-columns: auto 1fr; }
}

@media (min-width: 1024px) {
  .hero { padding: 6rem 0 4.5rem; }
  .section { padding: 5rem 0; }
  .why-grid { grid-template-columns: repeat(5, 1fr); }
}
/* =========================================
   INTERACTIVE TRIAGE WIZARD STYLES
========================================= */
.triage-progress-track {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.progress-step {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.progress-step.active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(33, 131, 124, 0.25);
}

.booking-wizard-card {
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-step-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.triage-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 500px) {
  .triage-options-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.option-pill {
  position: relative;
  cursor: pointer;
}

.option-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-pill span {
  display: block;
  padding: 1rem;
  border-radius: 12px;
  background: #FAFCFB;
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.2s ease;
}

.option-pill input:checked + span {
  background: var(--surface-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
  font-weight: 600;
  box-shadow: 0 0 0 2px var(--primary);
}

.step-nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.mt-2 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1.5rem; }

.booking-status-msg {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  text-align: center;
}

.booking-status-msg.success {
  display: block;
  background: #E6F7F2;
  color: #0E6251;
  border: 1px solid #A3E4D7;
}

.booking-status-msg.error {
  display: block;
  background: #FDEDEC;
  color: #78281F;
  border: 1px solid #F5B7B1;
}

/* =========================================
   FLOATING ACTION BUTTONS (MOBILE & DESKTOP)
========================================= */
.floating-contact-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff !important;
}

.float-whatsapp {
  background: #25D366;
}

.float-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
}

.float-call {
  background: var(--primary);
}

.float-call:hover {
  background: var(--primary-dark);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(33, 131, 124, 0.35);
}

/* Mobile Sticky Bottom Bar */
@media (max-width: 600px) {
  .floating-contact-bar {
    bottom: 0;
    right: 0;
    left: 0;
    flex-direction: row;
    padding: 10px 16px;
    background: rgba(253, 251, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    gap: 8px;
  }

  .float-btn {
    flex: 1;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    font-size: 0.88rem;
    border-radius: 12px;
    box-shadow: none;
  }
}

/* =========================================
   AUDIO SIMULATOR & WAVEFORM CANVAS (POLISHED)
========================================= */
.audio-sim-section {
  background: #081B2B; /* Deep clinical navy */
  color: #ffffff;
  padding: 5.5rem 0;
  position: relative;
  border-top: 1px solid rgba(11, 110, 186, 0.2);
  border-bottom: 1px solid rgba(11, 110, 186, 0.2);
}

.text-center {
  text-align: center;
}

.max-w-2xl {
  max-width: 680px;
}

/* Force high-contrast text against dark navy */
.audio-sim-section .eyebrow {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.audio-sim-section h2 {
  color: #FFFFFF !important; /* Pure white heading */
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 1rem;
}

.audio-sim-section .section-text {
  color: #B2CCE1 !important; /* Crisp readable light slate */
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Main Console Card */
.simulator-console {
  max-width: 920px;
  margin: 3rem auto 0;
  background: #0E273C;
  border: 1px solid rgba(11, 110, 186, 0.35);
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 30px rgba(11, 110, 186, 0.15);
}

/* Oscilloscope Waveform Stage */
.visualizer-stage {
  position: relative;
  background: #05131F;
  border-radius: 14px;
  border: 1px solid rgba(11, 110, 186, 0.4);
  height: 190px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.7);
}

#waveform-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Live Status Badge */
.visualizer-status {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #7EC8E3;
  background: rgba(8, 27, 43, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 110, 186, 0.4);
  z-index: 2;
}

/* Controls & 3-Column Mode Selector */
.simulator-controls {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.mode-button-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .mode-button-group {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sim-btn {
  background: #143550;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sim-btn:hover {
  background: #1B4568;
  border-color: rgba(11, 110, 186, 0.5);
  transform: translateY(-2px);
}

.sim-btn.active {
  background: #0B6EBA;
  border-color: #64B5F6;
  box-shadow: 0 0 25px rgba(11, 110, 186, 0.45);
}

.sim-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.sim-btn strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.sim-btn small {
  display: block;
  font-size: 0.8rem;
  color: #D2E3F0;
  line-height: 1.35;
}

/* Centered Simulation Button */
.sim-action-row {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.btn-sim-play {
  background: var(--accent);
  color: #ffffff;
  padding: 0.95rem 2.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 999px;
  gap: 0.6rem;
  box-shadow: 0 4px 18px rgba(237, 108, 53, 0.35);
  transition: all 0.25s ease;
}

.btn-sim-play:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(237, 108, 53, 0.5);
  color: #ffffff;
}

/* =========================================
   MANDATORY FIELD INDICATORS & STEP ALERTS
========================================= */
.required-star {
  color: #E53E3E;
  font-weight: 700;
  margin-left: 2px;
}

.optional-badge {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}

.input-invalid {
  border-color: #E53E3E !important;
  background-color: #FFF5F5 !important;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.2) !important;
}

.step-error-banner {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #FFF5F5;
  border: 1px solid #FEB2B2;
  border-radius: 8px;
  color: #C53030;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.step-error-banner.active {
  display: block;
  animation: shakeAlert 0.3s ease-in-out;
}

@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}