:root {
  --primary: #0052cc;
  --blueMid: #1e88e5;
  --light: #e3f2fd;
}
body {
  background: #f0f8ff;
  font-family: "Poppins", Arial;
}
.btn {
  background: var(--light);
  color: var(--blueMid);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 500;
  transition: 0.3s;
}
.btn:hover {
  color: var(--blueMid);
  transform: translateY(-2px);
}
/*header*/
.logo-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.main-nav {
  transition: 0.3s ease;
  background: transparent;
}

.main-nav.scrolled {
  background: var(--blueMid);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}
.logo-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.client-brand-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 50%;
}

.main-nav .client-brand-icon,
.offcanvas-header .client-brand-icon {
  display: block;
  width: 38px !important;
  height: 38px !important;
  max-width: 38px;
  flex: 0 0 38px;
}

.navbar-toggler {
  border: none;
  color: var(--light) !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}
.nav-link {
  color: var(--light) !important;
  font-weight: 500;
}
.brand-logo i {
  color: var(--light) !important;
}
.brand-logo h4 {
  color: var(--light) !important;
}

.hero-modern {
  padding: 120px 0 90px;
  background: linear-gradient(
    180deg,
    #4b3df2 0%,
    #8a7aff 20%,
    #bfc4ff 45%,
    #eef0ff 70%,
    #ffffff 100%
  );
  border-radius: 0 0 35px 35px;
  color: #fff;
}

/* TEXT */
.hero-title {
  font-weight: 800;
  font-size: 38px;
  line-height: 1.2;
}

.hero-desc {
  margin-top: 10px;
  max-width: 420px;
  opacity: 0.9;
  color: rgb(0, 0, 0);
}

/* BUTTONS */
.hero-btn-primary {
  background: #fff;
  color: var(--primary);
  border-radius: 12px;
  font-weight: 600;
}

.hero-btn-outline {
  border: 2px solid #fff;
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
}
/* IMAGE */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 18px;
}

.hero-img {
  display: block;
  width: 300px;
  height: 300px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(45, 39, 120, 0.18);
}
/* Appointment Bar */
.appointment-bar {
  background: var(--light);
  border-radius: 15px;
  padding: 18px 20px;
  margin-top: -50px; /* يطلع فوق الهيرو */
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.08);
  position: relative;
}

/* Modern Profile Form */
.profile-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.profile-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.profile-card {
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}

.form-control-modern {
  background: #f5f8ff;
  border: 1px solid rgba(30, 136, 229, 0.18);
  border-radius: 16px;
  padding: 16px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control-modern:focus,
.form-control-modern.is-invalid:focus {
  border-color: #0052cc;
  box-shadow: 0 8px 20px rgba(0, 82, 204, 0.12);
}

.btn-modern-primary,
.btn-modern-secondary,
.btn-modern-outline {
  border-radius: 16px;
  padding: 0.95rem 1.6rem;
  min-height: 54px;
  font-weight: 600;
}

.btn-modern-primary {
  background: #0052cc;
  color: #fff;
}

.btn-modern-primary:hover {
  background: #1e88e5;
}

.btn-modern-secondary {
  background: #1e88e5;
  color: #fff;
}

.btn-modern-secondary:hover {
  background: #0052cc;
}

.btn-modern-outline {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #fff;
}

.btn-modern-outline:hover {
  background: rgba(255, 255, 255, 1);
  color: #0052cc;
}

.profile-summary-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.profile-summary-list li:last-child {
  border-bottom: none;
}

.profile-summary-list li span {
  color: #6b7280;
  font-size: 0.94rem;
}

.profile-group-item {
  background: rgba(232, 244, 255, 0.85);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
}

.profile-group-item:last-child {
  margin-bottom: 0;
}

.profile-group-item h4 {
  margin-bottom: 0.35rem;
}

.profile-group-item p {
  margin-bottom: 0;
}

/* زر الحجز */
.make-btn {
  background: var(--blueMid);
  color: #fff;
  font-weight: 600;
  border-radius: 25px;
  transition: 0.2s;
}

.make-btn:hover {
  opacity: 0.9;
  color: var(--blueMid);
  transform: translateY(-2px);
}
/* Features Section */
.feature-item {
  text-align: center;
}

.feature-icon {
  font-size: 42px;
  color: var(--blueMid);
  margin-bottom: 6px;
}

.feature-item h5 {
  font-weight: 700;
}

.feature-item p {
  color: #666;
}
/* Stats Section */
.stats-box {
  background: linear-gradient(135deg, #0052cc, #1e88e5);
  padding: 28px 35px;
  border-radius: 18px;
  color: #fff;
  gap: 15px;
}

.stats-icon {
  font-size: 36px;
  color: var(--light);
  margin-bottom: 8px;
}

.counter {
  font-size: 32px;
  font-weight: 800;
  color: beige;
}

.stats-label {
  color: beige;
  font-size: 14px;
}

/* Testimonial Section */
.testimonial-box {
  border-radius: 18px;
  overflow: hidden;
}

/* الصورة */
.testimonial-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* اليمين */
.testimonial-content {
  padding: 35px;
  text-align: center;
}

/* عنوان صغير */
.tag {
  color: var(--blueMid);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* رمز الاقتباس */
.quote-icon {
  font-size: 32px;
  color: var(--blueMid);
  margin: 10px 0;
}

/* نص الريفيو */
.testimonial-text {
  color: #666;
  font-style: italic;
  max-width: 420px;
  margin: auto;
}

/* الشخص */
.review-person {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
/*  blog css*/
.blog-card {
  border-radius: 18px;
  padding: 12px;
  gap: 12px;
}

.blog-img {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
}

.blog-content p {
  color: #666;
  margin: 6px 0;
}

.blog-tag {
  color: var(--blueMid);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.read-link {
  color: var(--blueMid);
  font-weight: 600;
  text-decoration: none;
}

.read-link:hover {
  text-decoration: underline;
}
.faq-tag {
  color: var(--blueMid);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.accordion-button {
  font-weight: 600;
  background: #f5f8ff;
}

.accordion-button:not(.collapsed) {
  color: #4b3df2;
  background: #e8ecff;
}

.accordion-item {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid #eef1ff;
}

.cta-box {
  background: linear-gradient(135deg, #0052cc, #1e88e5);
  padding: 28px 35px;
  border-radius: 18px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

/* زر الحجز */
.cta-btn {
  background: #ffffff;
  color: #4b3df2;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 25px;
  transition: 0.2s;
}

.cta-btn:hover {
  background: var(--blueMid);
  color: var(--light);
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .cta-box {
    flex-direction: column;
    text-align: center;
  }
}

/* Footer Styles */
.footer-section {
  background: #ffffff;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  text-decoration: none;
  color: #555;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #0052cc;
}

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #444;
}

.footer-contact i {
  color: #0052cc;
  margin-right: 6px;
}

.newsletter-box input {
  border-radius: 8px;
}

.newsletter-box button {
  border-radius: 8px;
  background: linear-gradient(135deg, #0052cc, #0066ff);
  color: var(--light);
}

.social-icons i {
  font-size: 18px;
  cursor: pointer;
  color: var(--blueMid);
}

.social-icons i:hover {
  color: #0052cc;
}
.logo {
  color: var(--blueMid) !important;
}

:root {
  --primary: #0052cc;
  --blueMid: #003d99;
  --light: #eaf4ff;
  --ink: #17324d;
  --muted: #647b91;
  --surface: #ffffff;
  --border: #d7e7f8;
  --soft-shadow: 0 16px 40px rgba(15, 23, 42, 0.09);
  --bs-primary: #0052cc;
  --bs-primary-rgb: 0, 82, 204;
  --bs-link-color: #0052cc;
  --bs-link-color-rgb: 0, 82, 204;
  --bs-link-hover-color: #003d99;
  --bs-link-hover-color-rgb: 0, 61, 153;
}

body {
  background: linear-gradient(180deg, #f8fbff 0%, #f0f7ff 100%);
  color: var(--ink);
  font-family: "Roboto", "Segoe UI", sans-serif;
}

.main-nav {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 18px rgba(24, 50, 71, 0.08);
  backdrop-filter: blur(12px);
}

.main-nav.scrolled {
  background: var(--surface);
}

.main-nav > .client-navbar-layout {
  position: relative;
}

.client-navbar-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.main-nav .nav-link,
.offcanvas .nav-link {
  color: var(--ink) !important;
  font-weight: 500;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active,
.offcanvas .nav-link:hover,
.offcanvas .nav-link.active {
  color: var(--primary) !important;
}

.brand-logo,
.brand-logo i,
.brand-logo span,
.brand-logo h4,
.navbar-toggler {
  color: var(--primary) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 82, 204, 0.18);
}

.client-navbar-tools {
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  margin-right: 1rem;
}

.client-navbar-icon-link {
  position: relative;
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--primary);
  font-size: 1.25rem;
  text-decoration: none;
  cursor: pointer;
}

.client-navbar-icon-link:hover,
.client-navbar-icon-link:focus-visible,
.client-navbar-icon-link.active {
  background: rgba(66, 116, 217, 0.1);
  color: var(--primary);
}

.client-navbar-icon-link:focus-visible,
.client-mobile-notification-toggle:focus-visible,
.client-mobile-chat-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.client-navbar-count {
  position: absolute;
  top: 0;
  right: -0.15rem;
  display: inline-flex;
  min-width: 1.15rem;
  height: 1.15rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #d93025;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
}

.client-notification-menu {
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(28rem, calc(100vh - 7rem));
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(24, 50, 71, 0.1);
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgba(24, 50, 71, 0.16);
}

.client-notification-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(24, 50, 71, 0.1);
}

.client-notification-heading small,
.client-notification-item small {
  display: block;
  margin-top: 0.2rem;
  color: #6b7785;
  font-size: 0.75rem;
}

.client-notification-title {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

.client-notification-list {
  max-height: 21rem;
  overflow-y: auto;
}

.client-notification-item {
  display: block;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(24, 50, 71, 0.07);
  color: #465567;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: normal;
}

.client-notification-item:hover,
.client-notification-item.is-unread {
  background: #f2f6ff;
}

.client-notification-item:hover {
  color: var(--ink);
}

.client-notification-empty {
  margin: 0;
  padding: 1rem;
  color: #6b7785;
}

.client-mobile-chat-link,
.client-mobile-notification-toggle {
  display: flex;
  width: 100%;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.client-mobile-chat-link:hover,
.client-mobile-notification-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.client-mobile-chat-link .client-navbar-count,
.client-mobile-notification-toggle .client-navbar-count {
  position: static;
  margin-left: auto;
  border-color: #4274d9;
}

.client-mobile-notifications {
  margin-top: 0.35rem;
}

.client-mobile-notifications .dropdown-menu {
  left: 0;
  right: 0;
  width: 100%;
  margin-top: 0.4rem;
}

.client-mobile-notifications .client-notification-item {
  color: #465567;
}

.offcanvas {
  --bs-offcanvas-color: var(--ink);
  --bs-offcanvas-bg: var(--surface);
  background-color: var(--surface) !important;
}

.hero-modern,
.hero-section {
  display: flex;
  align-items: center;
  min-height: 50vh;
  padding: 140px 0 76px;
  color: #fff;
  background: linear-gradient(135deg, #0052cc 0%, #075abf 54%, #0b69c7 100%);
  border-radius: 0 0 20px 20px;
}

.hero-modern {
  min-height: 0;
  padding: 120px 0 76px;
}

.hero-modern .hero-title,
.hero-section .hero-title {
  color: #fff;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.18;
}

.hero-modern .hero-desc,
.hero-section .hero-text {
  color: rgba(255, 255, 255, 0.88);
}

.hero-section .hero-text {
  max-width: 650px;
  margin: 0.75rem auto 1.5rem;
}

.btn {
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav .btn,
.hero-btn,
.btn-modern-primary,
.btn-modern-secondary,
.price-btn,
.cta-btn,
.make-btn {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
}

.main-nav .btn:hover,
.hero-btn:hover,
.btn-modern-primary:hover,
.btn-modern-secondary:hover,
.price-btn:hover,
.cta-btn:hover,
.make-btn:hover {
  border-color: var(--blueMid);
  background: var(--blueMid);
  color: #fff;
  transform: translateY(-1px);
}

.btn-modern-primary,
.btn-modern-secondary,
.btn-modern-outline {
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
}

.btn-modern-outline {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
}

.btn-modern-outline:hover {
  border-color: var(--primary);
  background: var(--light);
  color: var(--primary);
}

.profile-panel,
.profile-card,
.service-card,
.solution-card,
.price-card,
.team-card,
.why-team-box,
.appointment-bar {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.profile-panel {
  background: var(--surface);
}

.profile-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.profile-card {
  border-color: var(--border) !important;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(24, 50, 71, 0.06);
}

.form-control-modern {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfdfe;
  padding: 0.75rem 0.9rem;
}

.form-control-modern:focus,
.form-control-modern.is-invalid:focus {
  border-color: var(--blueMid);
  box-shadow: 0 0 0 0.2rem rgba(0, 82, 204, 0.14);
}

.profile-summary-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.profile-summary-list li:last-child {
  border-bottom: 0;
}

.profile-summary-list li span {
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-group-item {
  margin-bottom: 0.65rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border) !important;
  border-radius: 8px;
  background: #f7fafb;
}

.profile-group-item:last-child {
  margin-bottom: 0;
}

.service-card,
.solution-card,
.price-card,
.team-card,
.why-team-box {
  height: 100%;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover,
.solution-card:hover,
.price-card:hover,
.team-card:hover,
.why-team-box:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 82, 204, 0.35);
  box-shadow: 0 20px 36px rgba(24, 50, 71, 0.12);
}

.dentist-schedule {
  border-top: 1px solid #e9ecef;
  padding-top: 12px;
  text-align: left;
}

.dentist-schedule-item {
  padding: 6px 0;
  border-bottom: 1px solid #f1f3f5;
  font-size: 0.875rem;
}

.service-card > i,
.solution-icon,
.why-team-box > i {
  color: var(--primary);
}

.solution-icon {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: var(--light);
  font-size: 1.4rem;
}

.service-card h5,
.solution-card h5,
.price-card h5,
.team-card h5,
.why-team-box h5 {
  color: var(--ink);
  font-weight: 700;
}

.service-card p,
.solution-card p {
  color: var(--muted);
}

.solution-link,
.team-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.solution-link:hover,
.team-link:hover {
  color: var(--blueMid);
  text-decoration: underline;
}

.price-card {
  position: relative;
  text-align: center;
}

.price-card.popular {
  border: 2px solid var(--primary);
}

.price {
  margin: 0.75rem 0 1rem;
  color: var(--primary);
  font-size: 2.25rem;
  font-weight: 700;
}

.price-list {
  padding: 0;
  margin: 0 0 1rem;
  list-style: none;
}

.price-list li {
  margin-bottom: 0.45rem;
  color: var(--muted);
}

.price-btn {
  padding: 0.55rem 1rem;
}

.badge-popular {
  position: absolute;
  top: -0.75rem;
  right: 1rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: var(--blueMid);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.team-img {
  width: min(100%, 240px);
  aspect-ratio: 4 / 5;
  height: auto;
  margin-bottom: 0.75rem;
  border-radius: 14px;
  object-fit: cover;
}

.why-img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--soft-shadow);
}

.why-list {
  padding: 0;
  margin-top: 1rem;
  list-style: none;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
  color: var(--ink);
}

.why-list i {
  color: var(--blueMid);
}

.appointment-box {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 2.5rem;
  border-radius: 12px 0 0 12px;
  background: var(--primary);
}

.appointment-box::before,
.appointment-box::after {
  background: rgba(255, 255, 255, 0.08);
}

.appointment-box .btn-light {
  border-color: #fff;
  background: #fff;
  color: var(--primary);
}

.equal-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  border-radius: 0 12px 12px 0;
}

.footer-section {
  background: #fff;
  border-top: 1px solid var(--border);
}

.footer-links a,
.footer-contact li,
.footer-contact a {
  color: var(--muted);
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-contact i,
.social-icons i,
.logo {
  color: var(--primary) !important;
}

.footer-contact a,
.social-icons a {
  text-decoration: none;
}

.newsletter-box input {
  border-radius: 8px;
}

.newsletter-box button {
  border-color: var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
}

.hero-rating,
.stats-box,
.cta-box {
  background: var(--primary);
}

.tag,
.quote-icon,
.blog-tag,
.read-link,
.faq-tag {
  color: var(--primary);
}

.accordion-button:not(.collapsed) {
  color: var(--primary);
  background: var(--light);
}

.accordion-item {
  border-color: var(--border);
  border-radius: 8px;
}

.clinic-showcase {
  padding: 1.5rem 0;
}

.section-eyebrow {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clinic-highlights {
  display: grid;
  gap: 0.9rem;
}

.clinic-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.clinic-highlight i {
  color: var(--primary);
  font-size: 1.25rem;
}

.clinic-highlight strong,
.clinic-highlight span {
  display: block;
}

.clinic-highlight span {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.clinic-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(150px, 0.65fr);
  gap: 0.9rem;
}

.clinic-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
}

.clinic-gallery figure {
  position: relative;
  min-height: 170px;
  background: #eaf3fa;
}

.clinic-gallery-main {
  min-height: 360px !important;
}

.clinic-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.clinic-gallery figure:hover img {
  transform: scale(1.04);
}

.clinic-gallery figcaption {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  left: 0.65rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.clinic-gallery-side {
  display: grid;
  gap: 0.9rem;
}

@media (max-width: 767.98px) {
  .hero-modern,
  .hero-section {
    min-height: 0;
    padding: 120px 0 56px;
  }

  .hero-modern .hero-title,
  .hero-section .hero-title {
    font-size: 1.9rem;
  }

  .appointment-box {
    border-radius: 12px 12px 0 0;
  }

  .equal-img {
    min-height: 220px;
    border-radius: 0 0 12px 12px;
  }

  .clinic-gallery {
    grid-template-columns: 1fr;
  }

  .clinic-gallery-main {
    min-height: 260px !important;
  }

}

.account-hero {
  padding: 116px 0 38px;
  color: #fff;
  background: linear-gradient(120deg, #0052cc 0%, #075abf 54%, #0b69c7 100%);
  border-radius: 0 0 16px 16px;
}

.account-hero-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.account-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.account-hero h1 {
  max-width: 42rem;
  margin-bottom: 0.45rem;
  color: #fff;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.account-hero p {
  max-width: 42rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
}

.account-main {
  padding-top: 2rem !important;
}

.profile-panel {
  overflow: hidden;
  border-radius: 12px !important;
  box-shadow: 0 18px 48px rgba(24, 50, 71, 0.09);
}

.profile-panel-header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.account-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.account-back-link:hover {
  color: var(--blueMid);
  text-decoration: underline;
}

.profile-panel-header > div:first-child > .badge {
  border: 1px solid #cfe3e4;
  background: var(--light) !important;
  color: var(--primary) !important;
  box-shadow: none !important;
}

.profile-panel-header h2,
.profile-card h3,
.profile-card h4,
.profile-card h5 {
  color: var(--ink);
}

.profile-card {
  height: 100%;
  border-radius: 10px !important;
}

.profile-card .card-body {
  padding: 0;
}

.profile-card .badge.bg-primary {
  background: var(--light) !important;
  color: var(--primary) !important;
}

.form-control-modern {
  min-height: 46px;
}

textarea.form-control-modern {
  min-height: 104px;
}

.form-label {
  color: #344d5e;
  font-size: 0.9rem;
  font-weight: 600;
}

.profile-summary-list {
  margin-bottom: 1rem;
}

.profile-group-item {
  align-items: center !important;
  gap: 1rem;
}

.profile-group-item .btn {
  flex: 0 0 auto;
}

.appointments-form {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f7fafb;
}

.appointments-form .form-label {
  margin-bottom: 0.4rem;
}

.table-responsive {
  border: 1px solid var(--border);
  border-radius: 10px;
}

.table-responsive .table {
  margin-bottom: 0;
}

.table-responsive thead th {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  background: #f7fafb;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.table-responsive tbody td {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  color: var(--ink);
}

.table-responsive .badge {
  border: 1px solid var(--border);
  background: var(--light) !important;
  color: var(--primary) !important;
  font-weight: 600;
}

.account-main .alert {
  border-radius: 8px !important;
}

.billing-family-summary .billing-family-metric .card-body {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
}

.billing-family-metric {
  border: 1px solid #dfe9ed;
  box-shadow: 0 0.35rem 1rem rgba(20, 49, 63, 0.045);
}

.billing-family-metric-icon,
.billing-patient-statement-mark,
.billing-patient-statement-metric-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #087c78;
  background: #e0f2ef;
}

.billing-family-metric-icon {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.85rem;
  font-size: 1.1rem;
}

.billing-family-metric .card-body > div:last-child > .h4 {
  margin-top: 0.15rem;
  color: #173a4a;
  font-weight: 700;
}

.billing-family-metric-due .billing-family-metric-icon,
.billing-patient-statement-metric-due .billing-patient-statement-metric-icon {
  color: #9a5a08;
  background: #fff2dc;
}

.billing-patient-statement {
  overflow: hidden;
  border: 1px solid #dfe9ed;
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 0.5rem 1.5rem rgba(20, 49, 63, 0.055);
}

.billing-patient-statement-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  align-items: center;
  padding: 1.35rem 1.5rem 1.1rem;
  background:
    radial-gradient(ellipse at 100% 0, rgba(31, 145, 137, 0.12), transparent 42%),
    linear-gradient(125deg, #f8fbfc, #eef6f7);
}

.billing-patient-statement-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.billing-patient-statement-mark {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.85rem;
  font-size: 1.15rem;
}

.billing-patient-statement-kicker,
.billing-patient-statement-details span,
.billing-patient-statement-metric > div > span {
  color: #647985;
  font-size: 0.73rem;
  font-weight: 600;
}

.billing-patient-statement-kicker {
  display: block;
  margin-bottom: 0.2rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.billing-patient-statement-brand h3 {
  color: #173a4a;
  font-weight: 700;
}

.billing-patient-statement-clinic-name {
  display: block;
  margin-bottom: 0.25rem;
  color: #173a4a;
  font-size: 0.95rem;
}

.billing-patient-statement-clinic-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
  margin-bottom: 0.35rem;
  color: #536d79;
  font-size: 0.72rem;
}

.billing-patient-statement-clinic-contact > span {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.3rem;
}

.billing-patient-statement-clinic-contact i {
  color: #087c78;
}

.billing-patient-statement-clinic-contact a {
  color: inherit;
  text-decoration: none;
}

.billing-patient-statement-number {
  padding: 0.4rem 0.7rem;
  border: 1px solid #cfe3e4;
  border-radius: 999px;
  color: #087c78;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.billing-patient-statement-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.billing-statement-print-button {
  padding: 0.45rem 0.75rem;
  white-space: nowrap;
}

.billing-patient-statement-details {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 0.75rem 1.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid #d7e5e9;
}

.billing-patient-statement-details > div {
  display: grid;
  flex: 1 1 10rem;
  gap: 0.15rem;
}

.billing-patient-statement-details strong {
  color: #183b4a;
  font-size: 0.9rem;
}

.billing-patient-statement-summary {
  padding: 1rem 1.5rem 1.25rem;
}

.billing-patient-statement-metric {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e1eaee;
  border-radius: 0.9rem;
  background: #fff;
}

.billing-patient-statement-metric-icon {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.75rem;
  font-size: 1rem;
}

.billing-patient-statement-metric > div {
  display: grid;
  gap: 0.15rem;
}

.billing-patient-statement-metric > div > strong {
  color: #173a4a;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.billing-patient-statement-metric-paid .billing-patient-statement-metric-icon {
  color: #16804a;
  background: #e7f5eb;
}

.billing-patient-items-table thead th {
  border-bottom: 1px solid #e1eaee;
  color: #536d79;
}

.billing-patient-payment-panel {
  padding: 1rem;
  border: 1px solid #e5ecef;
  border-radius: 0.75rem;
  background: #f7fafb;
}

.billing-patient-payment-panel > h4 {
  color: #294d5c;
  font-weight: 700;
}

.billing-patient-payment-panel > h4 span {
  color: #647985;
  font-weight: 500;
}

.billing-patient-payment-table {
  background: #fff;
}

.billing-patient-payment-table thead th {
  background: #f2f7f8;
}

@media (max-width: 767.98px) {
  .account-hero {
    padding: 104px 0 30px;
  }

  .account-hero-content {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .account-hero h1 {
    font-size: 1.6rem;
  }

  .account-main {
    padding-top: 1.25rem !important;
  }

  .profile-panel-header {
    margin-bottom: 1.5rem !important;
  }

  .table-responsive thead th,
  .table-responsive tbody td {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .billing-patient-statement-header {
    padding: 1.1rem;
  }

  .billing-patient-statement-summary {
    padding: 0.75rem 1rem 1rem;
  }
}

@media (max-width: 575.98px) {
  .billing-patient-statement-header {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .billing-patient-statement-number {
    justify-self: start;
  }

  .billing-patient-statement-details {
    gap: 0.75rem;
  }

  .billing-patient-statement-details > div {
    flex-basis: calc(50% - 0.4rem);
  }

  .billing-patient-statement-metric {
    min-height: 0;
  }
}

@media print {
  @page {
    size: portrait;
    margin: 12mm;
  }

  body.is-printing-patient-statement {
    min-height: 0 !important;
    background: #fff !important;
    color: #172b3a !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.is-printing-patient-statement .main-nav,
  body.is-printing-patient-statement .navbar,
  body.is-printing-patient-statement .account-hero,
  body.is-printing-patient-statement .billing-patient-history-heading,
  body.is-printing-patient-statement .billing-family-summary,
  body.is-printing-patient-statement .billing-patient-statement:not([data-print-target="true"]),
  body.is-printing-patient-statement .account-main .pt-3,
  body.is-printing-patient-statement .modal,
  body.is-printing-patient-statement .page-loading-overlay {
    display: none !important;
  }

  body.is-printing-patient-statement .account-main.container,
  body.is-printing-patient-statement .account-main > .row,
  body.is-printing-patient-statement .account-main > .row > .col-lg-10 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.is-printing-patient-statement .profile-panel {
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  body.is-printing-patient-statement .billing-patient-statement[data-print-target="true"] {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: Arial, sans-serif;
    font-size: 9pt;
  }

  body.is-printing-patient-statement .billing-patient-statement-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem 1rem;
    padding: 0 0 0.7rem;
    border-bottom: 2px solid #173a4a;
    background: #fff !important;
    break-inside: avoid;
  }

  body.is-printing-patient-statement .billing-patient-statement-brand h3 {
    font-size: 15pt;
  }

  body.is-printing-patient-statement .billing-patient-statement-clinic-name {
    font-size: 10pt;
  }

  body.is-printing-patient-statement .billing-patient-statement-clinic-contact {
    gap: 0.1rem 0.5rem;
    margin-bottom: 0.2rem;
    font-size: 7pt;
  }

  body.is-printing-patient-statement .billing-patient-statement-clinic-contact a {
    color: #172b3a !important;
    text-decoration: none;
  }

  body.is-printing-patient-statement .billing-patient-statement-kicker,
  body.is-printing-patient-statement .billing-patient-statement-details span {
    font-size: 8pt;
  }

  body.is-printing-patient-statement .billing-patient-statement-mark {
    display: none !important;
  }

  body.is-printing-patient-statement .billing-patient-statement-actions {
    display: block;
  }

  body.is-printing-patient-statement .billing-patient-statement-details {
    gap: 0.4rem 1rem;
    padding-top: 0.55rem;
  }

  body.is-printing-patient-statement .billing-patient-statement-details strong {
    font-size: 9pt;
  }

  body.is-printing-patient-statement .billing-patient-statement-summary {
    gap: 0.5rem;
    margin: 0 !important;
    padding: 0.65rem 0 0.75rem;
  }

  body.is-printing-patient-statement .billing-patient-statement-summary > div {
    width: 33.333%;
    padding: 0 0.25rem;
  }

  body.is-printing-patient-statement .billing-patient-statement-metric {
    min-height: 0;
    gap: 0;
    padding: 0.45rem 0.6rem;
    border-color: #b7c5ca !important;
    border-radius: 0.25rem;
    background: #fff !important;
  }

  body.is-printing-patient-statement .billing-patient-statement-metric-icon,
  body.is-printing-patient-statement .billing-statement-print-button {
    display: none !important;
  }

  body.is-printing-patient-statement .billing-patient-statement-metric > div > span {
    font-size: 8pt;
  }

  body.is-printing-patient-statement .billing-patient-statement-metric > div > strong {
    font-size: 11pt;
  }

  body.is-printing-patient-statement .billing-patient-items-table,
  body.is-printing-patient-statement .billing-patient-payment-table {
    width: 100% !important;
    margin-bottom: 0 !important;
    color: #172b3a !important;
    font-size: 8pt;
  }

  body.is-printing-patient-statement .billing-patient-statement .table-responsive {
    overflow: visible !important;
    border: 0 !important;
  }

  body.is-printing-patient-statement .billing-patient-items-table thead th,
  body.is-printing-patient-statement .billing-patient-items-table tbody td,
  body.is-printing-patient-statement .billing-patient-payment-table thead th,
  body.is-printing-patient-statement .billing-patient-payment-table tbody td {
    padding: 0.35rem !important;
    border-color: #aab8bd !important;
    color: #172b3a !important;
    background: #fff !important;
    vertical-align: middle;
  }

  body.is-printing-patient-statement .billing-patient-items-table thead,
  body.is-printing-patient-statement .billing-patient-payment-table thead {
    display: table-header-group;
  }

  body.is-printing-patient-statement .billing-patient-items-table tr,
  body.is-printing-patient-statement .billing-patient-payment-table tr {
    break-inside: avoid;
  }

  body.is-printing-patient-statement .billing-patient-payment-panel {
    padding: 0.55rem;
    border-color: #c8d2d6;
    border-radius: 0.25rem;
    background: #fff !important;
  }

  body.is-printing-patient-statement .billing-patient-payment-panel > h4 {
    font-size: 9pt;
  }

  body.is-printing-patient-statement .billing-patient-items-table .badge,
  body.is-printing-patient-statement .billing-patient-payment-table .badge {
    padding: 0.2rem 0.35rem;
    border: 1px solid #88999f !important;
    color: #172b3a !important;
    background: #fff !important;
  }
}

.service-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.service-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.service-section-kicker {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--blueMid);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.service-count {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.service-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(24, 50, 71, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card-link {
  color: inherit;
  text-decoration: none;
}

.service-card-link:focus-visible {
  outline: 3px solid rgba(0, 82, 204, 0.55);
  outline-offset: 3px;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 82, 204, 0.34);
  box-shadow: 0 18px 38px rgba(24, 50, 71, 0.12);
}

.service-card-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eaf3f3;
}

.service-card-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.service-card:hover .service-card-visual img {
  transform: scale(1.035);
}

.service-card-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(135deg, #e7f2f2, #d7e9e8);
  color: var(--primary);
}

.service-card-placeholder i {
  font-size: 3rem;
}

.service-category {
  position: absolute;
  bottom: 0.8rem;
  left: 0.8rem;
  max-width: calc(100% - 1.6rem);
  overflow: hidden;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.2rem;
}

.service-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.service-card-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

.service-price {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.service-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.75rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.service-session {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.service-session i {
  flex: 0 0 auto;
  color: var(--blueMid);
}

.service-book-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.3rem;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.service-book-link:hover,
.service-card-link:hover .service-book-link {
  color: var(--blueMid);
}

.service-empty-state {
  padding: 3.5rem 1.5rem;
  border: 1px dashed #bfd5d8;
  border-radius: 12px;
  background: #f7fafb;
  text-align: center;
}

.service-empty-state > i {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--blueMid);
  font-size: 2rem;
}

.service-empty-state h3 {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .service-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-card-heading {
    flex-wrap: wrap;
  }

  .service-card-footer {
    align-items: flex-start;
  }
}

.client-appointment-form {
  display: grid;
  gap: 1.25rem;
}

.booking-form-section {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.booking-schedule-section {
  background: linear-gradient(145deg, #f8fbff 0%, #f1f7ff 100%);
}

.booking-form-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.booking-form-section-heading h3 {
  margin: 0.1rem 0 0.25rem;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
}

.booking-form-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.booking-step-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #eaf3ff;
  color: var(--primary);
  font-size: 1.15rem;
}

.booking-step-label {
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-appointment-form .form-label {
  margin-bottom: 0.45rem;
}

.client-appointment-form .form-control-modern,
.client-appointment-form .form-select {
  width: 100%;
}

.client-appointment-form .appointment-date-picker,
.client-appointment-form > section .row > div {
  min-width: 0;
}

.client-appointment-form [data-calendar-input],
.client-appointment-form [data-availability-url] {
  min-height: 48px;
}

.client-appointment-form [data-availability-message] {
  margin-top: 0.4rem;
}

.booking-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.25rem;
}

.booking-form-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.booking-form-actions .btn {
  min-width: 13rem;
}

@media (max-width: 575.98px) {
  .booking-form-section {
    padding: 1rem;
  }

  .booking-form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .booking-form-actions .btn {
    width: 100%;
  }
}

.profile-page .profile-panel {
  border: 1px solid var(--border);
  border-radius: 20px !important;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  box-shadow: 0 18px 48px rgba(24, 50, 71, 0.08);
}

.profile-page .profile-panel-header {
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.profile-page .profile-panel-header h2 {
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 700;
}

.profile-page .profile-panel-header p {
  max-width: 42rem;
  line-height: 1.6;
}

.profile-page .profile-panel-header .btn {
  min-height: 46px;
  white-space: nowrap;
}

.profile-page .profile-card {
  padding: clamp(1.1rem, 2vw, 1.6rem) !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  background: #fff;
  box-shadow: 0 10px 30px rgba(24, 50, 71, 0.055);
}

.profile-page .profile-card h3,
.profile-page .profile-card h4 {
  font-weight: 700;
}

.profile-secure-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: #edf7f5;
  color: #167765;
  font-size: 0.75rem;
  font-weight: 700;
}

.profile-form-section {
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfdff;
}

.profile-form-section + .profile-form-section {
  margin-top: 1rem;
}

.profile-form-section-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.profile-form-section-heading h4 {
  margin: 0 0 0.2rem;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
}

.profile-form-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.profile-form-section-icon {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: #eaf3ff;
  color: var(--primary);
  font-size: 1.05rem;
}

.profile-page .form-label {
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-size: 0.84rem;
}

.profile-page .form-control-modern {
  min-height: 48px;
  border-color: #d7e1e9;
  border-radius: 9px;
  background: #fff;
}

.profile-page textarea.form-control-modern {
  min-height: 100px;
  resize: vertical;
}

.profile-page .form-control-modern:disabled {
  border-color: #e2e8ef;
  background: #f3f6f9;
  color: #526575;
}

.profile-required {
  color: #bd3131;
  font-weight: 700;
}

.profile-optional {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.profile-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
}

.profile-form-actions > span {
  color: var(--muted);
  font-size: 0.8rem;
}

.profile-form-actions .btn {
  min-height: 48px;
}

.profile-page .profile-summary-list li {
  gap: 0.75rem;
}

.profile-page .profile-summary-list li strong {
  overflow-wrap: anywhere;
  text-align: right;
}

.profile-page .profile-group-item {
  border-radius: 10px;
  background: #f8fbff;
}

@media (max-width: 575.98px) {
  .profile-page .profile-panel {
    padding: 1rem !important;
    border-radius: 14px !important;
  }

  .profile-page .profile-panel-header {
    align-items: stretch;
  }

  .profile-page .profile-panel-header .btn {
    width: 100%;
  }

  .profile-page .profile-card {
    padding: 1rem !important;
  }

  .profile-form-section {
    padding: 0.85rem;
  }

  .profile-form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .profile-form-actions .btn {
    width: 100%;
  }
}

.patient-feedback-page {
  min-height: 70vh;
  padding-top: 8rem !important;
}

.patient-feedback-page .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}
