/* ==========================================================================
   Design System Variables & Base Settings (Dermatology & Aesthetic)
   ========================================================================== */
:root {
  /* Elegant & Clean color palette (Nuance beige, rose terracotta & gold) */
  --color-primary: #D4A373; /* Classic Champagne Gold / Shell Beige */
  --color-primary-dark: #A5744A;
  --color-primary-light: #F5EDDE; /* Creamy beige */
  --color-primary-pale: #FCF9F3; /* Pure milk white */
  
  --color-accent: #E76F51; /* Warm Rose Terracotta */
  --color-accent-light: #FDF2EE;
  --color-accent-dark: #C94E32;

  --color-gold: #C5A059; /* Luxury Champagne Gold */
  --color-gold-light: #F2E9D4;
  --color-gold-pale: #FBF9F4;
  
  --color-bg-base: #FAF8F4; /* Skin soft background */
  --color-bg-card: #FFFFFF;
  --color-border: #E6DFD3;
  --color-border-light: #F2ECE0;

  /* Typography */
  --font-family-sans: 'Inter', 'Noto Sans JP', -apple-system, sans-serif;
  --font-family-serif: 'Cormorant Garamond', 'Noto Serif JP', serif;

  /* Layout */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 28px;
  
  --shadow-sm: 0 4px 10px rgba(74, 59, 50, 0.03), 0 2px 4px rgba(0,0,0,0.02);
  --shadow-md: 0 10px 25px rgba(74, 59, 50, 0.05), 0 4px 10px rgba(0,0,0,0.03);
  --shadow-lg: 0 20px 40px rgba(74, 59, 50, 0.08), 0 10px 20px rgba(0,0,0,0.04);
  
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg-base);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Specific elegant slate text */
  --color-text-main: #2F3E46;
  --color-text-muted: #62727B;
  --color-text-light: #90A4AE;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-primary-pale);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary-light);
  border: 2px solid var(--color-primary-pale);
  border-radius: var(--border-radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-serif);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-main);
  letter-spacing: 0.02em;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

/* Utilities */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center {
  text-align: center;
}

.highlight {
  color: var(--color-primary-dark);
  position: relative;
  display: inline-block;
  font-weight: 700;
}
.highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: var(--color-primary-light);
  z-index: -1;
  border-radius: 3px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 12px 30px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary-dark);
  color: #FFFFFF;
}
.btn-primary:hover {
  background-color: var(--color-text-main);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background-color: var(--color-primary-pale);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-emergency {
  background-color: var(--color-accent);
  color: #FFFFFF;
}
.btn-emergency:hover {
  background-color: var(--color-accent-dark);
  box-shadow: var(--shadow-md);
}

.btn-full {
  display: flex;
  width: 100%;
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.emergency-bar {
  background-color: var(--color-accent-light);
  border-bottom: 1px solid rgba(231, 111, 81, 0.15);
  padding: 8px 0;
  font-size: 0.85rem;
}
.emergency-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.emergency-badge {
  background-color: var(--color-accent);
  color: #FFFFFF;
  font-weight: bold;
  padding: 1px 8px;
  border-radius: 2px;
}
.emergency-text {
  color: var(--color-accent-dark);
  font-weight: 500;
  flex: 1;
}
.emergency-phone {
  background-color: var(--color-accent);
  color: #FFFFFF;
  font-weight: bold;
  padding: 4px 14px;
  border-radius: 4px;
}
.emergency-phone:hover {
  background-color: var(--color-accent-dark);
}

.site-header {
  background-color: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}
.clinic-name {
  font-family: var(--font-family-serif);
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--color-text-main);
  line-height: 1.2;
}
.clinic-sub {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-main);
  padding: 8px 0;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.5px;
  background-color: var(--color-primary-dark);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}
.nav-link:hover {
  color: var(--color-primary-dark);
}
.nav-link:hover::after {
  width: 100%;
}

.nav-reserve-btn {
  box-shadow: none;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 2px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.hamburger-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  margin: 5px 0;
  background-color: var(--color-text-main);
  transition: var(--transition-smooth);
}

/* ==========================================================================
   2-Gateway Split Hero Section (Premium Layout)
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--color-bg-base);
}

.hero-split-container {
  display: flex;
  min-height: calc(85vh - 80px);
  width: 100%;
}

.hero-pane {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  padding: 80px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

/* Pane background images (using CSS gradients blend-mode or styling fallback) */
.pane-clinical {
  background-image: linear-gradient(135deg, rgba(253, 251, 247, 0.96) 0%, rgba(245, 237, 222, 0.9) 100%);
  border-right: 1px solid var(--color-border-light);
}
.pane-aesthetic {
  background-image: linear-gradient(135deg, rgba(252, 249, 243, 0.96) 0%, rgba(229, 216, 195, 0.85) 100%);
}

/* Real image backgrounds overlaid with transparent tint */
.pane-clinical::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('assets/reception.jpg');
  background-size: cover;
  background-position: left center;
  opacity: 0.08;
  filter: grayscale(40%);
  z-index: 0;
}
.pane-aesthetic::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('assets/reception.jpg');
  background-size: cover;
  background-position: right center;
  opacity: 0.12;
  z-index: 0;
}

.pane-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, transparent 30%, rgba(253, 251, 247, 0.4) 100%);
  pointer-events: none;
  z-index: 1;
}

.pane-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
  width: 100%;
}

.pane-subtitle {
  font-family: var(--font-family-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-primary-dark);
  display: block;
  margin-bottom: 12px;
}

.pane-title {
  font-size: 2.4rem;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 20px;
  color: var(--color-text-main);
}
.pane-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* Mini dynamic waitcards inside split panes */
.hero-live-card {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.live-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px dashed var(--color-border);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.live-dot-green {
  width: 8px;
  height: 8px;
  background-color: #52B788;
  border-radius: 50%;
  box-shadow: 0 0 6px #52B788;
  animation: pulse 1.6s infinite;
}
.live-dot-gold {
  width: 8px;
  height: 8px;
  background-color: var(--color-gold);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--color-gold);
}
.live-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-main);
  letter-spacing: 0.02em;
}

.live-card-body {
  display: flex;
  justify-content: space-between;
}
.live-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.live-stat-wide {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}
.stat-lbl {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}
.stat-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-main);
}
.stat-val-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-gold);
}
.num-gold {
  font-size: 1.3rem;
  color: var(--color-primary-dark);
  font-family: 'Inter', sans-serif;
  line-height: 1;
}

.pane-btn {
  border-radius: 0;
  padding: 14px 32px;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-title-wrapper {
  margin-bottom: 48px;
}
.section-subtitle {
  font-family: var(--font-family-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 8px;
}
.section-title {
  font-size: 2rem;
  color: var(--color-text-main);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-primary);
}
.section-title-wrapper.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}
.section-desc-center {
  margin: 16px auto 0;
  max-width: 680px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   About Section (Asymmetrical layout)
   ========================================================================== */
.about-section {
  padding: 100px 0;
}
.about-asymmetry-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.about-visual-pane {
  position: relative;
}
.about-img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/13;
  object-fit: cover;
  border: 1px solid var(--color-border);
}
.visual-badge {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background-color: var(--color-primary-dark);
  color: #FFFFFF;
  padding: 14px 20px;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.badge-text-primary {
  font-family: var(--font-family-serif);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
}
.badge-text-sub {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  margin-top: 4px;
  opacity: 0.8;
}

.about-content-pane {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.assurance-card {
  display: flex;
  gap: 20px;
  background-color: var(--color-bg-card);
  padding: 24px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: var(--transition-smooth);
}
.assurance-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.assurance-num {
  font-family: var(--font-family-serif);
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-primary);
  opacity: 0.5;
  line-height: 1;
}
.assurance-text h3 {
  font-family: var(--font-family-serif);
  font-size: 1.15rem;
  color: var(--color-text-main);
  margin-bottom: 8px;
}
.assurance-text p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Clinical & Aesthetic Treatment Tabs
   ========================================================================== */
.treatment-section {
  padding: 100px 0;
  background-color: var(--color-primary-pale);
}

.treatment-slide-container {
  margin-top: 40px;
}

.treatment-tabs {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  background-color: #FFFFFF;
  padding: 6px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  margin-bottom: 36px;
  overflow-x: auto;
  scrollbar-width: none;
}
.treatment-tabs::-webkit-scrollbar {
  display: none;
}

.treatment-tab-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 24px;
  border-radius: 2px;
  font-family: var(--font-family-sans);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  white-space: nowrap;
}
.treatment-tab-btn:hover {
  color: var(--color-primary-dark);
  background-color: var(--color-primary-light);
}
.treatment-tab-btn.active {
  background-color: var(--color-primary-dark);
  color: #FFFFFF;
}

.treatment-panels {
  position: relative;
}

.treatment-panel {
  transition: opacity 0.35s ease;
  width: 100%;
}

/* Native Search hidden content support */
@supports (content-visibility: hidden) {
  .treatment-panel[hidden="until-found"] {
    display: block !important;
    content-visibility: hidden;
  }
}
.treatment-panel[hidden="until-found"] {
  display: none;
}

.treatment-panel.active,
.treatment-panel:beforematch {
  display: block !important;
  content-visibility: visible !important;
  opacity: 1;
}

.panel-layout {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}

.panel-info {
  display: flex;
  flex-direction: column;
}
.panel-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 3px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
  color: #FFFFFF;
}
.color-primary { background-color: var(--color-primary-dark); }
.color-gold { background-color: var(--color-gold); }
.color-clinical { background-color: #4A5759; }

.panel-info h3 {
  font-size: 1.5rem;
  color: var(--color-text-main);
  margin-bottom: 16px;
}
.panel-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.treatment-checklist h4 {
  font-family: var(--font-family-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 12px;
}
.treatment-checklist ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.treatment-checklist li {
  font-size: 0.9rem;
  color: var(--color-text-main);
  padding-left: 20px;
  position: relative;
}
.treatment-checklist li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--color-primary-dark);
}

/* Panel guide box */
.panel-guide-box {
  background-color: var(--color-primary-pale);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.panel-guide-box h4 {
  font-family: var(--font-family-serif);
  font-size: 1.1rem;
  margin-bottom: 18px;
  color: var(--color-primary-dark);
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
  flex-grow: 1;
}
.guide-list dt {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px dashed var(--color-primary);
  padding-bottom: 2px;
  align-self: flex-start;
}
.guide-list dd {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.guide-list dd strong {
  color: var(--color-accent-dark);
}

/* ==========================================================================
   Beauty Pricing Section
   ========================================================================== */
.pricing-section {
  padding: 100px 0;
}
.pricing-layout-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.pricing-category-box {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.pricing-cat-title {
  font-size: 1.4rem;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-primary-light);
  padding-bottom: 8px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.pricing-table th,
.pricing-table td {
  padding: 16px;
  border-bottom: 1px solid var(--color-border-light);
}
.pricing-table th {
  font-family: var(--font-family-sans);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}
.pricing-table td {
  font-size: 0.9rem;
}
.pricing-table td:first-child {
  font-family: var(--font-family-serif);
  font-weight: bold;
  color: var(--color-text-main);
  width: 30%;
}
.pricing-table td:nth-child(2) {
  color: var(--color-text-muted);
  width: 50%;
}
.pricing-table td:last-child {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-gold);
  text-align: right;
  width: 20%;
}

.pricing-note {
  border-top: 1px dashed var(--color-border);
  padding-top: 24px;
}
.pricing-note p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Schedule Section (Highlight Day)
   ========================================================================== */
.schedule-section {
  padding: 100px 0;
}
.schedule-layout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
}

.schedule-table-wrapper {
  overflow-x: auto;
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-bg-card);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
}
.schedule-table th,
.schedule-table td {
  padding: 16px 12px;
  border: 1px solid var(--color-border-light);
  text-align: center;
}
.schedule-table th {
  background-color: var(--color-primary-pale);
  color: var(--color-text-main);
  font-size: 0.85rem;
  font-weight: 700;
}
.schedule-table th[scope="row"] {
  background-color: #FFFFFF;
  text-align: left;
  width: 160px;
}
.time-label {
  display: block;
  font-family: var(--font-family-serif);
  font-size: 0.95rem;
  font-weight: bold;
}
.time-label.label-clinical { color: var(--color-text-main); }
.time-range {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.doc-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-main);
}
.dept-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.cell-closed {
  background-color: #FBF9F6;
  color: var(--color-text-light);
  font-size: 0.85rem;
}

/* Today dynamic highlight column */
.schedule-table th.active-day {
  background-color: var(--color-primary-dark);
  color: #FFFFFF;
}
.schedule-table td.active-day {
  background-color: var(--color-primary-pale);
  border-left: 2px solid var(--color-primary-dark) !important;
  border-right: 2px solid var(--color-primary-dark) !important;
}
.schedule-table tr:first-child td.active-day {
  border-top: 2px solid var(--color-primary-dark) !important;
}
.schedule-table tr:last-child td.active-day {
  border-bottom: 2px solid var(--color-primary-dark) !important;
}

.table-legend p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-top: 6px;
}

/* Doctor profile cards */
.doctors-profiles {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.doctor-profile-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-md);
  padding: 24px;
  display: flex;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}
.doctor-profile-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.doctor-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-primary-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF;
}
.doctor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doctor-svg-avatar {
  width: 100%;
  height: 100%;
}

.doctor-info {
  display: flex;
  flex-direction: column;
}
.doctor-role {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
}
.doctor-title-name {
  font-family: var(--font-family-serif);
  font-size: 1.25rem;
  color: var(--color-text-main);
  margin: 2px 0 6px;
}
.doctor-specialty {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}
.doctor-bio {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Reserve Section - Integrated Step Form with Has Control
   ========================================================================== */
.reserve-section {
  padding: 100px 0;
  background-color: var(--color-primary-pale);
}

.reserve-card-container {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

/* Isolation Alert Bubble */
.fever-alert-box {
  display: none;
  gap: 20px;
  background-color: var(--color-accent-light);
  border: 2px solid var(--color-accent);
  border-radius: var(--border-radius-md);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
  animation: slideDown 0.4s ease-out;
}
.alert-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-accent);
  flex-shrink: 0;
}
.alert-doc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.alert-message-balloon {
  flex: 1;
}
.balloon-doctor-name {
  font-family: var(--font-family-serif);
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-accent-dark);
  display: block;
  margin-bottom: 4px;
}
.alert-main-text {
  font-weight: 700;
  color: var(--color-accent-dark);
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 6px;
}
.alert-sub-text {
  font-size: 0.85rem;
  color: var(--color-text-main);
  line-height: 1.5;
  margin-bottom: 8px;
}
.alert-action-text {
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--color-accent-dark);
  margin-bottom: 12px;
}
.alert-btn-phone {
  padding: 10px 24px;
  font-size: 0.95rem;
  border-radius: 4px;
  display: inline-flex;
}

/* Fever Alert triggers styling */
#form-container.has-fever .fever-alert-box {
  display: flex;
}
#form-container.has-fever .reserve-form {
  opacity: 0.4;
  pointer-events: none;
}
#form-container.has-fever .btn-submit-container {
  display: none;
}

/* Form sections */
.form-section {
  border-bottom: 1px dashed var(--color-border);
  padding-bottom: 32px;
  margin-bottom: 32px;
}
.form-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 24px;
}

/* style-parent-with-has integration */
.form-section:has(:user-invalid) {
  border-left: 4px solid var(--color-accent);
  padding-left: 20px;
  background-color: rgba(231, 111, 81, 0.02);
  margin-left: -20px;
  margin-right: -20px;
  padding-right: 20px;
}
.form-section:has(:user-invalid) .section-step-title {
  color: var(--color-accent-dark);
}
.form-section:has(:user-invalid) .step-num {
  background-color: var(--color-accent-dark);
}

.section-step-title {
  font-family: var(--font-family-serif);
  font-size: 1.25rem;
  color: var(--color-primary-dark);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.step-num {
  font-family: 'Inter', sans-serif;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--color-primary-dark);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-group-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}
.form-group-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-main);
}
.badge-required {
  background-color: var(--color-accent);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 2px;
  vertical-align: middle;
  margin-left: 4px;
}

.form-control {
  font-family: var(--font-family-sans);
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: 2px;
  border: 1px solid var(--color-border);
  background-color: #FFFFFF;
  color: var(--color-text-main);
  transition: var(--transition-smooth);
  width: 100%;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary-dark);
  box-shadow: 0 0 0 3px rgba(165, 116, 74, 0.12);
}

.form-control:user-invalid {
  border-color: var(--color-accent);
  background-color: var(--color-accent-light);
}
.form-control:user-invalid:focus {
  box-shadow: 0 0 0 3px rgba(231, 111, 81, 0.1);
}

.error-message {
  display: none;
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--color-accent-dark);
  margin-top: 4px;
}
.form-control:user-invalid + .error-message {
  display: block;
}

.textarea-symptoms {
  resize: vertical;
  min-height: 90px;
}
.form-helper-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Radio button controls */
.radio-toggle-group {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}
.radio-toggle-group input[type="radio"] {
  display: none;
}
.radio-label {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  background-color: #FFFFFF;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
}
.radio-toggle-group input[type="radio"]:checked + .radio-label {
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: bold;
}
.radio-toggle-group input[type="radio"]:first-of-type + .radio-label {
  border-right: 1px solid var(--color-border);
}

/* Dynamic display inputs based on has() */
.form-group-dynamic {
  display: none;
  animation: fadeIn 0.3s ease;
  margin-bottom: 20px;
}

/* 1. Show newcomer info upload ONLY when type-new is selected AND purpose is clinical */
body:has(#type-new:checked):has(#reserve-purpose option[value="clinical"]:checked) .newcomer-clinical-only {
  display: block;
}

/* 2. Show beauty menu details when purpose is aesthetic */
body:has(#reserve-purpose option[value="aesthetic"]:checked) .aesthetic-only {
  display: block;
}

/* Custom File Upload */
.file-upload-wrapper {
  position: relative;
  border: 2px dashed var(--color-border);
  border-radius: 2px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background-color: var(--color-primary-pale);
  transition: var(--transition-smooth);
}
.file-upload-wrapper:hover {
  border-color: var(--color-primary-dark);
}
.file-input {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.upload-icon { font-size: 1.8rem; }
.upload-text { font-size: 0.9rem; font-weight: 700; }
.upload-filename { font-size: 0.8rem; color: var(--color-primary-dark); font-weight: bold; }

/* Beauty Menu Grid (Checkboxes) */
.beauty-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background-color: var(--color-primary-pale);
  padding: 16px;
  border-radius: 4px;
  border: 1px solid var(--color-border-light);
  margin-top: 8px;
}
.beauty-check-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background-color: #FFFFFF;
  padding: 10px 14px;
  border: 1px solid var(--color-border-light);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.beauty-check-item:hover {
  border-color: var(--color-primary-dark);
}
.beauty-cb {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary-dark);
}
.beauty-cb-lbl {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--color-text-main);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

/* Beauty internal consent card */
.beauty-consent-card {
  margin-top: 20px;
  background-color: var(--color-accent-light);
  border: 1px solid rgba(231, 111, 81, 0.2);
  padding: 20px;
  border-radius: 4px;
}
.beauty-consent-card h4 {
  font-family: var(--font-family-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 10px;
}
.beauty-consent-card p {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
.beauty-consent-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.beauty-inner-cb {
  margin-top: 4px;
  accent-color: var(--color-accent);
}
.consent-row label {
  font-size: 0.8rem;
  color: var(--color-text-main);
  line-height: 1.4;
}

/* General consent check */
.consent-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}
.consent-checkbox {
  margin-top: 5px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary-dark);
}
.consent-label {
  font-size: 0.9rem;
  color: var(--color-text-main);
  cursor: pointer;
}

/* ==========================================================================
   Access & Maps Section
   ========================================================================== */
.access-section {
  padding: 100px 0;
}
.access-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.access-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
  border-left: 6px solid var(--color-primary-dark);
}
.access-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.clinic-address {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--color-text-main);
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-methods {
  border-top: 1px dashed var(--color-border);
  padding-top: 20px;
}
.contact-phone {
  font-family: var(--font-family-serif);
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-primary-dark);
}
.contact-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.transport-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.transport-item {
  display: flex;
  gap: 16px;
}
.transport-icon {
  font-size: 1.4rem;
  line-height: 1;
  background-color: var(--color-primary-pale);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.transport-text h4 {
  font-family: var(--font-family-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 4px;
}
.transport-text p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.access-map-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.map-container {
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.svg-map {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-text-main);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(2, 0.85fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.logo-icon-footer {
  width: 36px;
  height: 36px;
}
.footer-logo h3 {
  color: #FFFFFF;
  font-family: var(--font-family-serif);
  font-size: 1.3rem;
  margin: 0;
}
.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 360px;
}
.footer-links h4 {
  color: #FFFFFF;
  font-family: var(--font-family-sans);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}
.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-link-item {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}
.footer-link-item:hover {
  color: var(--color-primary-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Animations & Responsive Styles
   ========================================================================== */
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(82, 183, 136, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(82, 183, 136, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(82, 183, 136, 0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .highlight-searchable.found-match {
    animation: searchFlash 2s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
}

@keyframes searchFlash {
  0% { background-color: var(--color-primary-light); border: 2px solid var(--color-primary-dark); transform: scale(1); }
  25% { transform: scale(1.03); box-shadow: var(--shadow-lg); }
  50% { background-color: var(--color-primary-light); }
  100% { background-color: transparent; border: 1px solid var(--color-border-light); transform: scale(1); }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-split-container {
    flex-direction: column;
    min-height: auto;
  }
  .hero-pane {
    padding: 60px 24px;
  }
  .about-asymmetry-grid, .schedule-layout-grid, .access-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-visual-pane { max-width: 580px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (max-width: 768px) {
  .pane-title { font-size: 2rem; }
  .site-header { padding: 8px 0; }
  .header-container { height: auto; }
  
  .mobile-menu-btn { display: block; }
  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--color-bg-base);
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
  }
  .site-header:has(.mobile-menu-btn[aria-expanded="true"]) .main-nav {
    height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .nav-list {
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    align-items: stretch;
  }
  .nav-link { font-size: 1.1rem; display: block; }
  .nav-reserve-btn { display: flex; justify-content: center; padding: 14px; }

  .panel-layout {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
  .form-group-grid, .form-group-grid-3 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .beauty-menu-grid {
    grid-template-columns: 1fr;
  }
  .pricing-table td:first-child { width: 40%; }
  .pricing-table td:nth-child(2) { width: 40%; }
  .pricing-table td:last-child { width: 20%; }
  .reserve-card-container { padding: 24px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 576px) {
  .hero-live-card { flex-direction: column; }
  .assurance-card { flex-direction: column; gap: 12px; }
  .doctor-profile-card { flex-direction: column; align-items: center; text-align: center; }
  .fever-alert-box { flex-direction: column; align-items: center; text-align: center; }
}
