/* ==========================================================================
   Patient booking demo — distinct visual identity from the sales page.
   Warm, rounded, patient-friendly palette (vs. the sales page's dark/teal
   corporate SaaS look). Layered over the legacy Bootstrap theme; every id/
   class the booking + payment JS depends on is left completely untouched.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito+Sans:wght@400;600;700;800&display=swap');

:root {
  --dm-coral: #ff6b57;
  --dm-coral-dark: #e5503d;
  --dm-teal: #1f8a7a;
  --dm-teal-dark: #166b5e;
  --dm-cream: #fffaf5;
  --dm-peach: #ffece2;
  --dm-mint: #e6f6f2;
  --dm-blush: #fdecef;
  --dm-ink: #2c2620;
  --dm-muted: #7a7168;
  --dm-line: #f0e4d8;
  --dm-radius: 26px;
  --dm-shadow: 0 18px 40px -18px rgba(44, 38, 32, .22);
  --dm-shadow-hover: 0 24px 48px -16px rgba(255, 107, 87, .35);
}

body {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dm-cream);
  color: var(--dm-ink);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Baloo 2', 'Nunito Sans', sans-serif;
  font-weight: 700;
  color: var(--dm-ink);
}

/* ---------- Top bar ---------- */
#header_menu_top {
  background: var(--dm-ink) !important;
  font-size: 13px;
}
#header_menu_top .topbar-texts { color: #f3ece3; }
#header_menu_top a { color: #ffd9cf !important; font-weight: 700; }

/* ---------- Floating pill nav ---------- */
.navbar-wrap {
  padding: 16px 20px 0;
}
#navbar_top {
  background: #fff !important;
  border-radius: 999px;
  padding: 10px 26px !important;
  max-width: 1180px;
  margin: 0 auto;
  box-shadow: var(--dm-shadow);
}
.navbar-brand {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--dm-coral) !important;
}
.navbar-brand span { color: var(--dm-teal); }
.navoption .nav-link {
  font-weight: 700;
  color: var(--dm-ink) !important;
  padding: 8px 18px !important;
  border-radius: 999px;
}
.navoption .nav-link:hover { background: var(--dm-peach); color: var(--dm-coral-dark) !important; }

/* ---------- Hero / slider ---------- */
#header { padding-top: 6px; }
.slide_class {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  border-radius: 0 0 48px 48px;
  overflow: hidden;
}
.slide_class::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(44,38,32,.78) 5%, rgba(255,107,87,.45) 60%, rgba(255,107,87,.1) 100%);
}
.slide_class .jumbotron {
  position: relative;
  z-index: 2;
  background: transparent !important;
}
.slide_class h1 {
  color: #fff;
  font-size: 3rem;
  max-width: 640px;
}
.slide_class h4 {
  color: #ffd9cf;
  font-weight: 700;
  font-family: 'Nunito Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .95rem;
  margin-top: 8px;
}
.slide_class p { color: #fdf1ec; max-width: 540px; }
.slide_class .btn.btn-light {
  background: #fff;
  color: var(--dm-coral-dark);
  border: none;
  font-weight: 800;
  padding: 14px 34px;
  border-radius: 999px;
  box-shadow: 0 14px 28px -10px rgba(0,0,0,.35);
}
.slide_class .btn.btn-light:hover { background: var(--dm-peach); transform: translateY(-2px); }
.owl-carousel .owl-dots .owl-dot.active span,
.owl-carousel .owl-dots .owl-dot:hover span { background: var(--dm-coral) !important; }

/* ---------- Why choose us / appointment booking ---------- */
#why_choose_us {
  padding: 70px 0;
  background: var(--dm-mint);
  border-radius: 40px;
  margin: 40px 20px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
#why_choose_us h6 {
  color: var(--dm-teal-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .8rem;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
}
#why_choose_us h4 { font-size: 2rem; margin: 8px 0 16px; }
#why_choose_us p { color: var(--dm-muted); }
#why_choose_us .btn.btn-light {
  background: var(--dm-coral);
  color: #fff;
  border: none;
  font-weight: 800;
  padding: 13px 30px;
  border-radius: 999px;
  box-shadow: var(--dm-shadow-hover);
}
#why_choose_us .btn.btn-light:hover { background: var(--dm-coral-dark); }
#why_choose_us img.img-fluid {
  border-radius: 28px;
  box-shadow: var(--dm-shadow);
}
.dm-booking-card {
  background: #fff;
  border-radius: var(--dm-radius);
  box-shadow: var(--dm-shadow);
  overflow: hidden;
}
.appointment_modal_header {
  background: var(--dm-coral);
  border-radius: var(--dm-radius) var(--dm-radius) 0 0;
  padding: 18px 26px;
}
.appointment_modal_header .modal-title,
.appointment_modal_header .close { color: #fff !important; margin: 0; }
.appointment_modal_body {
  padding: 26px 26px 30px;
}
.appointment_modal_body .form-control {
  border-radius: 12px;
  border: 1px solid var(--dm-line);
}
.appointment_modal_body label {
  font-weight: 700;
  font-size: .85rem;
  margin-top: 10px;
}
.appointment_modal_body #submit-btn {
  background: var(--dm-teal);
  border: none;
  border-radius: 999px;
  padding: 10px 28px;
  font-weight: 800;
}
.appointment_modal_body #submit-btn:hover { background: var(--dm-teal-dark); }

/* ---------- Featured grid strips ---------- */
.featured_top, .featured_bottom { padding: 50px 0; }
.featured_top:nth-of-type(odd) { background: var(--dm-peach); }
.featured_bottom:nth-of-type(even) { background: var(--dm-blush); }
#featured h6 {
  color: var(--dm-coral-dark);
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
}
#featured h3 { font-size: 1.7rem; }
#featured img.img-fluid { border-radius: 28px; box-shadow: var(--dm-shadow); }

/* ---------- Services ---------- */
.featured_services { background: var(--dm-cream); padding: 80px 0; }
.featured_services h1 { font-size: 2.1rem; }
.featured_services .lead { color: var(--dm-muted); }
.featured_services .col-md-4 {
  background: #fff;
  border-radius: 24px;
  padding: 30px 22px;
  box-shadow: var(--dm-shadow);
  border: 2px solid transparent;
  transition: transform .22s ease, border-color .22s ease;
}
.featured_services .col-md-4:nth-child(odd) { background: var(--dm-peach); }
.featured_services .col-md-4:nth-child(even) { background: var(--dm-mint); }
.featured_services .col-md-4:hover { transform: translateY(-6px) rotate(-.4deg); border-color: var(--dm-coral); }
.featured_services img.img-fluid { width: 60px; height: 60px; object-fit: contain; }
.featured_services h3 { font-size: 1.15rem; }
.featured_services p { color: var(--dm-muted); font-size: .93rem; }

/* ---------- Doctors ---------- */
#doctor { padding: 80px 0; }
#doctor > .container > h3 { font-size: 2rem; }
#doctor > .container > h6 { color: var(--dm-muted); margin-bottom: 26px; font-weight: 600; }
#doctor .col-md-4 {
  background: #fff;
  border-radius: 26px;
  padding: 30px 20px 34px;
  box-shadow: var(--dm-shadow);
  position: relative;
}
#doctor .col-md-4::before {
  content: "";
  position: absolute;
  top: -18px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 90px;
  background: var(--dm-mint);
  border-radius: 50%;
  z-index: 0;
}
#doctor img {
  position: relative;
  z-index: 1;
  border-radius: 50%;
  width: 130px;
  height: 130px;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 0 0 3px var(--dm-coral);
}
#doctor h4 { font-size: 1.08rem; margin-top: 14px !important; position: relative; z-index: 1; }
#doctor p { color: var(--dm-muted); font-size: .9rem; position: relative; z-index: 1; }

/* ---------- Gallery ---------- */
#gallery { padding: 60px 0; background: var(--dm-blush) !important; }
#gallery .gallery-item {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  padding: 10px 10px 22px;
  box-shadow: var(--dm-shadow);
  transform: rotate(-1deg);
  transition: transform .25s ease;
}
#gallery .col-md-4:nth-child(even) .gallery-item { transform: rotate(1deg); }
#gallery .gallery-item:hover { transform: rotate(0deg) scale(1.03); }
#gallery .gallery-item img { border-radius: 12px; }

/* ---------- Testimonials ---------- */
#portfolio { padding: 70px 0; background: var(--dm-cream); }
.portfolio-testimonials h2 { text-align: center; margin-bottom: 36px; font-size: 1.9rem; }
.portfolio-testimonials .card {
  border: none;
  border-radius: 24px;
  box-shadow: var(--dm-shadow);
  padding: 10px 6px 22px;
  position: relative;
}
.portfolio-testimonials .card::before {
  content: "\201C";
  position: absolute;
  top: 6px; left: 18px;
  font-family: Georgia, serif;
  font-size: 3.2rem;
  color: var(--dm-peach);
  line-height: 1;
}
.portfolio-testimonials .card-img-top {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin: 22px auto 8px;
  border: 3px solid var(--dm-coral);
}
.portfolio-testimonials .card-text { color: var(--dm-muted); font-style: italic; }

/* ---------- Footer ---------- */
#footer {
  background: var(--dm-teal-dark) !important;
  border-radius: 40px 40px 0 0;
  margin-top: 20px;
}
#footer h6 { color: #fff; font-weight: 800; }
#footer .footer-description, #footer address, #footer p { color: #dff3ef; }
#footer .social-icon a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  margin: 0 4px;
}
#footer .social-icon a:hover { background: var(--dm-coral); }

@media (max-width: 767px) {
  .slide_class { min-height: 460px; border-radius: 0 0 28px 28px; }
  .slide_class h1 { font-size: 2rem; }
  #why_choose_us { margin: 20px 12px; border-radius: 28px; }
  #navbar_top { padding: 10px 16px !important; }
}
