:root {
  --primary: #1a3a5f;
  --primary-light: #2a5298;
  --accent: #c4a77d;
  --accent-light: #e6d5b8;
  --text-dark: #2d3436;
  --text-light: #636e72;
  --bg-white: #ffffff;
  --bg-soft: #f8f9fa;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-white);
  overflow-x: hidden;
}

h1,
h2,
h3,
.accent-text {
  font-family: 'Playfair Display', serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

.nav-logo {
  height: 40px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
}

.cta-button {
  background: var(--primary);
  color: white !important;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  transition: var(--transition);
}

.cta-button:hover {
  background: var(--primary-light) !important;
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
  min-height: 80vh;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a3a5f' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2v-4h4v-2H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
  pointer-events: none !important;
}

.hero-pattern {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none !important;
}

#heroContainer {
  display: grid !important;
  grid-template-columns: 1fr 400px !important;
  align-items: center;
  gap: 40px;
  z-index: 10;
  position: relative;
}

#heroContainer .hero-content {
  flex: none;
  max-width: 600px;
  position: relative;
  z-index: 20;
}


#heroContainer .hero-image {
  flex: none;
  width: 400px;
  order: 2;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.badge {
  font-size: 0.75rem;
  background: rgba(26, 58, 95, 0.1);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.badge.gold {
  background: rgba(196, 167, 125, 0.15);
  color: #8a6d3b;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.accent-text {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.hero-credentials {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}

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

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(26, 58, 95, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background: rgba(26, 58, 95, 0.05);
}

.hero-image {
  flex: 0 0 400px;
  width: 400px;
  position: relative;
  flex-shrink: 0;
  order: 2 !important;
}

.image-wrapper {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 30px 80px -15px rgba(26, 58, 95, 0.2);
  background: white;
  border: 1px solid rgba(26, 58, 95, 0.05);
  transition: var(--transition);
}

.image-wrapper:hover {
  transform: translateY(-10px);
  box-shadow: 0 45px 100px -20px rgba(26, 58, 95, 0.3);
}

.hero-image img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  display: block;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-wrapper:hover img {
  transform: scale(1.08);
}

/* About Section */
.about {
  padding: 120px 0;
  background: white;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  transition: var(--transition);
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.lead {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 3.5rem;
}

.stat-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #fcfcfc;
  border-radius: 24px;
  border: 1px solid #f0f0f0;
  transition: all 0.4s ease;
  animation: float 4s ease-in-out infinite;
}

.stat-item:nth-child(2) {
  animation-delay: 0.5s;
}

.stat-item:nth-child(3) {
  animation-delay: 1s;
}

.stat-item:hover {
  background: white;
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(196, 167, 125, 0.1);
  transform: translateY(-10px);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0px);
  }
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.feature-card {
  background: var(--bg-soft);
  padding: 2.5rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Expertise Section */
.expertise {
  padding: 120px 0;
  background: var(--primary);
  background-image:
    radial-gradient(at 100% 0%, rgba(196, 167, 125, 0.15) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(26, 58, 95, 0.2) 0px, transparent 50%);
  color: white;
  position: relative;
  overflow: hidden;
}

.expertise .section-title {
  color: white;
  margin-bottom: 5rem;
  text-align: center;
}

.expertise .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5rem;
}

.section-header.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.expertise-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 3.5rem 2.5rem;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.expertise-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-15px);
  border-color: var(--accent);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4);
}

.expertise-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--accent-light);
  line-height: 1.3;
  min-height: 4.8rem;
}

.expertise-card ul {
  list-style: none;
}

.expertise-card ul li {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.expertise-card ul li::before {
  content: '✦';
  color: var(--accent);
  font-size: 0.8rem;
  margin-top: 2px;
}

/* Research Section */
.research-section {
  padding: 120px 0;
  background: #f8faff;
}

.research-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.research-item {
  background: white;
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid #f0f0f0;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.research-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent);
  transition: height 0.4s ease;
}

.research-item:hover {
  transform: translateX(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-color: rgba(196, 167, 125, 0.2);
}

.research-item:hover::before {
  height: 100%;
}

.journal {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: block;
}

.research-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 1.2rem;
  color: var(--primary);
}

.research-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.8rem 2rem;
}

.mt-4 {
  margin-top: 3rem;
}

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

/* Contact Section */
.contact {
  padding: 120px 0;
  background: #fbfcfe;
  position: relative;
}

.contact-box {
  background: white;
  border-radius: 40px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(26, 58, 95, 0.15);
  border: 1px solid rgba(26, 58, 95, 0.05);
}

.contact-info {
  background: var(--primary);
  background-image: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 5rem;
  position: relative;
  overflow: hidden;
}

.contact-info::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(196, 167, 125, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  z-index: 1;
  position: relative;
}

.section-desc {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 3rem;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.location-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.location-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.loc-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.loc-badge.private {
  background: #c4a77d;
  color: #1a3a5f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.loc-badge.medical {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.location-card strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  font-family: 'Playfair Display', serif;
}

.loc-desc {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.loc-schedule {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.loc-action-hint,
.loc-info {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--accent);
}

.direct-reach {
  margin-top: 3rem;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.direct-reach strong {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
}

.direct-reach p {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  opacity: 0.9;
}

/* Scheduler Header */
.scheduler-header {
  text-align: center;
  margin-bottom: 3rem;
}

.scheduler-header h3 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.scheduler-subtitle {
  color: var(--text-light);
  font-size: 1rem;
}

.scheduler-subtitle strong {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 2rem;
  margin-top: 4rem;
  z-index: 1;
  position: relative;
}

.social-links a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.social-links a:hover {
  opacity: 1;
  color: var(--accent);
}

/* Premium Scheduler UI Revamp */
.contact-form-wrapper {
  padding: 5rem;
  background: white;
  display: flex;
  flex-direction: column;
}

.scheduler-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.location-selector {
  display: flex;
  background: rgba(26, 58, 95, 0.05);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(26, 58, 95, 0.1);
}

.loc-btn {
  flex: 1;
  padding: 10px 15px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--primary);
  opacity: 0.6;
}

.loc-btn.active {
  background: var(--primary);
  color: white;
  opacity: 1;
  box-shadow: 0 4px 12px rgba(26, 58, 95, 0.2);
}

.calendar-wrapper {
  background: white;
  padding: 1.5rem;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f0;
}

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

.calendar-header h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.calendar-header button {
  background: var(--bg-soft);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--primary);
}

.calendar-header button:hover {
  background: var(--primary);
  color: white;
}

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

.calendar-day {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  color: var(--text-dark);
}

.calendar-day.header {
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  cursor: default;
}

.calendar-day:not(.header):not(.disabled):hover {
  background: rgba(196, 167, 125, 0.1);
  color: var(--accent);
  transform: scale(1.05);
}

.calendar-day.selected {
  background: var(--accent) !important;
  color: white !important;
  font-weight: 700;
  box-shadow: 0 8px 15px rgba(196, 167, 125, 0.3);
}

.calendar-day.today {
  color: var(--primary);
  background: rgba(26, 58, 95, 0.05);
  font-weight: 800;
}

.calendar-day.disabled {
  opacity: 0.15;
  cursor: not-allowed;
}

.slots-wrapper h4 {
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.slot-btn {
  padding: 12px;
  border: 1px solid #eee;
  background: white;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.3s ease;
}

.slot-btn:hover:not(.selected) {
  border-color: var(--accent);
  background: rgba(196, 167, 125, 0.05);
}

.slot-btn.selected {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary);
  box-shadow: 0 6px 15px rgba(26, 58, 95, 0.2);
}

#confirmBooking {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border: none;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(26, 58, 95, 0.2);
}

#confirmBooking:disabled {
  background: #f0f0f0;
  box-shadow: none;
  color: #bbb;
  cursor: not-allowed;
}

.select-date-msg {
  grid-column: span 2;
  font-size: 0.85rem;
  padding: 1.5rem;
  background: var(--bg-soft);
  border-radius: 12px;
  border: 1px dashed #ddd;
  color: var(--text-light);
  text-align: center;
}

/* Footer Section Refinement */
footer {
  padding: 5rem 0;
  background: #f9fbff;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.footer-logo img {
  height: 35px;
}

.footer-logo h3 {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 700;
}

/* Patient Form */
.patient-form {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 2rem;
  margin-top: 1rem;
  animation: fadeIn 0.4s ease-out;
}

.patient-form h4 {
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.form-grid input,
.form-grid select {
  padding: 12px 15px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: white;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--primary);
}

.form-grid input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(196, 167, 125, 0.1);
}

.form-grid input.error {
  border-color: #f44336;
  background-color: #fffef2f2;
  animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

.error-message {
  color: #f44336;
  font-size: 0.75rem;
  margin-top: -10px;
  margin-bottom: 5px;
  font-weight: 600;
  display: none;
}

@keyframes shake {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal System Revamp */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 58, 95, 0.4);
  backdrop-filter: blur(12px);
  overflow-y: auto;
}

.modal-content {
  background-color: white;
  margin: 10vh auto;
  padding: 3.5rem;
  border-radius: 32px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
  animation: modalIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.modal-header p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.modal-body .form-group {
  margin-bottom: 1.5rem;
}

.modal-body input#bookingIdInput {
  width: 100%;
  padding: 1.2rem;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fcfcfc;
  color: var(--primary);
}

.modal-body input#bookingIdInput:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 4px rgba(196, 167, 125, 0.1);
}

.modal-body .btn-primary {
  width: 100%;
  padding: 1.25rem;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  background: var(--primary);
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(26, 58, 95, 0.2);
}

.modal-body .btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(26, 58, 95, 0.3);
}

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

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-30px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.close-modal {
  position: absolute;
  right: 30px;
  top: 30px;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-modal:hover {
  background: #f5f5f5;
  color: var(--primary);
  transform: rotate(90deg);
}

.status-result {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 20px;
  background: #f9fbff;
  border: 1px solid rgba(26, 58, 95, 0.05);
  animation: fadeIn 0.4s ease-out;
}

.status-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1rem;
}

.status-pending {
  background: #fff8e1;
  color: #f57f17;
}

.status-confirmed {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-cancelled {
  background: #ffebee;
  color: #c62828;
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.btn-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

/* Custom Select UI */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: white;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-select-trigger:hover {
  border-color: var(--accent);
}

.custom-select-trigger::after {
  content: '▾';
  font-size: 0.8rem;
  opacity: 0.5;
}

.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  margin-top: 5px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 200;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

.custom-options.open {
  display: block;
}

.custom-option {
  padding: 12px 15px;
  font-size: 0.85rem;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s;
}

.custom-option:hover {
  background: #f8fbff;
  color: var(--accent);
}

.custom-option.selected {
  background: #f9fbff;
  font-weight: 700;
  color: var(--primary);
}

/* Patient Selector */
.patient-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 2rem;
}

.profile-card {
  padding: 20px;
  background: white;
  border-radius: 20px;
  border: 2px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.profile-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(196, 167, 125, 0.1);
}

.profile-card.active {
  border-color: var(--primary);
  background: rgba(26, 58, 95, 0.02);
}

.profile-card.new-profile {
  border: 2px dashed #ddd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.profile-card.new-profile:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.profile-card strong {
  display: block;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.profile-card span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Custom Dialog */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 58, 95, 0.5);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  padding: 2rem;
}

.dialog-box {
  background: white;
  padding: 3rem;
  border-radius: 32px;
  max-width: 450px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dialog-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.dialog-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.dialog-text {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.dialog-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* Slot Availability */
.slot-btn.busy {
  background: #f8f9fa !important;
  color: #adb5bd !important;
  border-color: #dee2e6 !important;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 1rem 2rem;
  border-radius: 12px;
  background: white;
  color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  border-left: 4px solid #4caf50;
}

.toast-error {
  border-left: 4px solid #f44336;
}

.toast-info {
  border-left: 4px solid var(--accent);
}

.loader {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.result-card {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
}

.alert {
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fee2e2;
}

/* Legal Pages */
.legal-page {
  background: white;
  color: var(--primary);
}

.legal-page .navbar .logo img {
  height: 40px !important;
  width: auto !important;
}

.legal-header {
  padding: 100px 0 40px;
  background: #fbfcfe;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.legal-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.legal-header p {
  color: var(--text-light);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.legal-content {
  padding: 80px 0;
  max-width: 800px;
}

.legal-content section {
  margin-bottom: 3rem;
}

.legal-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.legal-content p,
.legal-content li {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Calendar Heatmap Colors */
.calendar-day.avail-high {
  background: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
  border-bottom: 3px solid #4caf50;
}

.calendar-day.avail-medium {
  background: rgba(255, 152, 0, 0.1);
  color: #ef6c00;
  border-bottom: 3px solid #ff9800;
}

.calendar-day.avail-low {
  background: rgba(244, 67, 54, 0.1);
  color: #c62828;
  border-bottom: 3px solid #f44336;
}

.calendar-day.avail-full {
  background: #f5f5f5;
  color: #9e9e9e;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Global Utilities & Animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

/* Footnote Links */
.footer-bottom a:hover {
  color: var(--accent) !important;
  opacity: 1 !important;
}

/* Scope of Services Section - Modern UI */
.services {
  padding: 120px 0;
  background: #fdfdfd;
  position: relative;
  overflow: hidden;
}

.section-header {
  margin-bottom: 4rem;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: 1rem;
}

.services-modern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card-modern {
  background: white;
  border-radius: 32px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
  border: 1px solid #f0f0f0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.service-card-modern:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(26, 58, 95, 0.08);
  border-color: var(--accent);
}

.service-card-header {
  margin-bottom: 2.5rem;
}

.service-icon-wrapper {
  width: 64px;
  height: 64px;
  background: rgba(196, 167, 125, 0.1);
  color: var(--accent);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card-modern:hover .service-icon-wrapper {
  background: var(--accent);
  color: white;
  transform: rotate(10deg);
}

.service-icon-wrapper svg {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  display: block;
}

.service-card-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--primary);
  margin: 0;
  min-height: 5.5rem;
  display: flex;
  align-items: center;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.list-icon {
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: 4px;
  flex-shrink: 0;
}

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

.list-text strong {
  color: var(--primary);
  display: block;
  margin-bottom: 2px;
}

@media (max-width: 992px) {
  .services-modern-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Footer Section Refinement */
footer {
  padding: 8rem 0 4rem;
  background: var(--primary);
  color: white;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 100%, rgba(196, 167, 125, 0.1) 0%, transparent 70%);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo img {
  height: 60px;
  object-fit: contain;
}

.footer-logo h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: white;
  font-weight: 700;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-social a {
  color: white;
  opacity: 0.7;
  transition: var(--transition);
}

.footer-social a:hover {
  opacity: 1;
  transform: translateY(-3px);
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  opacity: 0.5;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* Responsive Design Tweaks */
@media (max-width: 850px) {
  #heroContainer {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 3.5rem;
    padding: 0 1.5rem;
  }

  .hero {
    padding: 130px 0 60px;
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
    margin-bottom: 0;
  }

  .hero-badges {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .hero-credentials {
    font-size: 1rem;
    margin: 0 auto 2.5rem;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    gap: 15px;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero-image {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto;
  }

  .container {
    padding: 0 1.25rem;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
    white-space: normal;
    padding: 1rem;
  }

  .hero-image img {
    height: auto;
    aspect-ratio: 1/1;
  }
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: center;
  }

  .expertise-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem 1.5rem;
  }

  .expertise-card h3 {
    font-size: 1.5rem;
    min-height: auto;
    margin-bottom: 1.5rem;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }

  .research-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    grid-template-columns: 1fr;
  }

  .contact-info,
  .contact-form-wrapper {
    padding: 3rem;
  }

  .logo span {
    font-size: 0.95rem;
    white-space: nowrap;
  }

  /* Mobile Navigation UX */
  .mobile-menu-btn {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 2001;
    padding: 10px;
    margin-right: -10px;
  }

  .mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
  }

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

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

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

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 1.5rem 0;
  }

  .nav-links a {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 600;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .badge {
    padding: 0.3rem 0.8rem;
    font-size: 0.65rem;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .logo span {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .logo img {
    height: 30px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    animation: none;
  }

  .contact-info,
  .contact-form-wrapper {
    padding: 2.5rem 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .slot-btn {
    padding: 10px 5px;
    font-size: 0.8rem;
  }

  .patient-form h4,
  .slots-wrapper h4 {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .dashboard-container {
    padding: 2rem 1rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .stat-card .value {
    font-size: 2rem;
  }

  .form-grid input,
  .form-grid .custom-select-wrapper {
    margin-bottom: 5px;
  }
}