/**
 * Essential Rheumatology — layout & visibility fixes
 * Loads last to resolve alignment, contrast, and spacing issues.
 */

/* ========== Global ========== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
  color: #1f2933 !important;
  background: #ffffff !important;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1140px;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.insurance-title,
.cta-banner h2,
.main-footer h4,
.hero-line {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
  letter-spacing: -0.02em;
}

/* ========== Top bar — prevent crush / overlap ========== */
.top-bar {
  background: #04263d !important;
  color: #ffffff !important;
  padding: 6px 0 !important;
  font-size: 0.8125rem !important;
  line-height: 1.4;
}

.top-bar .container .row {
  --bs-gutter-x: 1rem;
  row-gap: 0.35rem;
}

.top-bar,
.top-bar span,
.top-bar a {
  color: #ffffff !important;
}

.top-bar a:hover {
  text-decoration: underline !important;
  opacity: 0.95;
}

.top-bar .sep {
  margin: 0 0.5rem;
  opacity: 0.45;
}

.top-bar-left,
.top-bar-center,
.top-bar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0;
}

.top-bar-right {
  justify-content: flex-end;
}

.top-bar-center {
  justify-content: center;
  text-align: center;
}

.top-bar .top-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.top-bar i {
  margin-right: 0.4rem;
  opacity: 0.85;
  width: 14px;
  text-align: center;
}

@media (max-width: 991px) {
  .top-bar .col-md-6 {
    width: 100%;
    max-width: 100%;
    text-align: center !important;
  }

  .top-bar-left,
  .top-bar-center,
  .top-bar-right {
    justify-content: center;
  }
}

/* ========== Navigation ========== */
.main-nav-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(4, 38, 61, 0.1);
}

.main-nav {
  background: #ffffff !important;
  box-shadow: 0 1px 0 #d9e2ec !important;
  padding: 0.65rem 0 !important;
  position: relative !important;
  top: auto !important;
}

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

.main-nav .navbar-brand {
  margin-right: 1rem;
}

.main-nav .navbar-brand img,
.main-nav .brand-logo,
.navbar-brand .main-logo {
  max-width: 210px !important;
  max-height: 72px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  display: block;
}

.main-nav {
  padding: 0.35rem 0 !important;
}

/* Opening announcement banner */
.opening-announcement {
  overflow: hidden;
  width: 100%;
  background: #0a4d7c;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.55rem 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.opening-announcement-track {
  display: inline-block;
  min-width: max-content;
  padding-left: 100%;
  white-space: nowrap;
  animation: opening-announcement-scroll 20s linear infinite;
}

.opening-announcement a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.opening-announcement:hover .opening-announcement-track,
.opening-announcement:focus-within .opening-announcement-track {
  animation-play-state: paused;
}

@keyframes opening-announcement-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .opening-announcement {
    padding-inline: 1rem;
    text-align: center;
  }

  .opening-announcement-track {
    display: block;
    min-width: 0;
    padding-left: 0;
    white-space: normal;
    animation: none;
  }
}

.main-nav .navbar-nav {
  align-items: center;
  gap: 0.15rem;
}

.main-nav .nav-link {
  color: #334e68 !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  padding: 0.5rem 0.75rem !important;
  white-space: nowrap;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: #0a4d7c !important;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-buttons[hidden] {
  display: none !important;
}

.nav-buttons .btn-login,
.nav-buttons .btn-appointment {
  padding: 0.55rem 1rem !important;
  font-size: 0.8125rem !important;
  border-radius: 4px !important;
  white-space: nowrap;
  line-height: 1.2;
}

.btn-login {
  background: #04263d !important;
  border-color: #04263d !important;
  color: #ffffff !important;
}

.btn-appointment {
  background: #0a4d7c !important;
  background-image: none !important;
  border: 1px solid #0a4d7c !important;
  color: #ffffff !important;
}

.copy-phone-notice {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 1100;
  transform: translate(-50%, 1rem);
  padding: 0.75rem 1rem;
  color: #ffffff;
  background: #04263d;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(4,38,61,.25);
  font-size: .875rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.copy-phone-notice.visible { opacity: 1; transform: translate(-50%, 0); }

.patient-login-disabled,
.patient-login-disabled:hover,
.patient-login-disabled:focus,
.patient-login-disabled:active,
.billing-disabled,
.billing-disabled:hover,
.billing-disabled:focus,
.billing-disabled:active {
  cursor: not-allowed !important;
  opacity: 0.58 !important;
  pointer-events: none !important;
  filter: grayscale(0.25);
  box-shadow: none !important;
}

@media (max-width: 991px) {
  .main-nav-header {
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .main-nav {
    padding: 0.25rem 0 !important;
  }

  .main-nav .navbar-brand img,
  .main-nav .brand-logo,
  .navbar-brand .main-logo {
    max-width: 170px !important;
    max-height: 56px !important;
  }

  .main-nav .navbar-toggler {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .main-nav .navbar-collapse {
    flex-basis: 100%;
    width: 100%;
  }

  .nav-buttons {
    width: 100%;
    margin-top: 0.75rem;
    padding-bottom: 0.5rem;
  }

  .nav-buttons .btn {
    flex: 1;
    text-align: center;
  }
}

/* ========== Hero — force readable white text ========== */
.hero {
  position: relative !important;
  min-height: 330px !important;
  background: url('../images/hero-bg.webp') center/cover no-repeat !important;
  padding-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(
    90deg,
    rgba(4, 38, 61, 0.95) 0%,
    rgba(4, 38, 61, 0.82) 32%,
    rgba(6, 53, 86, 0.36) 58%,
    rgba(4, 38, 61, 0.54) 76%,
    rgba(4, 38, 61, 0.74) 100%
  ) !important;
  z-index: 1;
}

.hero-content {
  position: relative !important;
  z-index: 2;
  width: 100%;
  padding: 2.75rem 0 2.4rem !important;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 4rem);
}

.hero-copy {
  min-width: 0;
}

.hero .hero-title,
.hero .hero-title .hero-line,
.hero-content h1,
.hero-content .hero-line {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  font-size: clamp(1.9rem, 3.5vw, 3rem) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  max-width: 21ch;
  margin: 0 !important;
}

.hero .hero-desc,
.hero-content p.hero-desc,
.hero-content p {
  color: rgba(255, 255, 255, 0.95) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1.05rem !important;
  max-width: 36rem;
  margin: 0.7rem 0 0 !important;
  line-height: 1.65 !important;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.hero-content p.portal-redirect-note {
  max-width: none;
  margin: 0.65rem 0 0 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .hero-content p.portal-redirect-note {
    white-space: normal;
  }
}

.hero-actions .btn-hero-primary,
.hero-actions .btn-hero-secondary,
.hero-actions .btn-hero-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  width: 172px;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 6px !important;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

@media (max-width: 767.98px) {
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
  }

  .hero-actions .btn-hero-primary,
  .hero-actions .btn-hero-secondary,
  .hero-actions .btn-hero-tool {
    width: 100%;
  }
}

.hero-actions .btn-hero-primary {
  background: #ffffff !important;
  color: #04263d !important;
  border: 1px solid #ffffff !important;
  box-shadow: 0 4px 12px rgba(4, 38, 61, 0.2);
}

.hero-actions .btn-hero-primary:hover,
.hero-actions .btn-hero-primary:focus-visible {
  background: #e8f2f8 !important;
  border-color: #e8f2f8 !important;
  color: #04263d !important;
}

.hero-actions .btn-hero-secondary {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

.hero-actions .btn-hero-tool {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

.hero-actions .btn-hero-secondary:hover,
.hero-actions .btn-hero-secondary:focus-visible,
.hero-actions .btn-hero-tool:hover,
.hero-actions .btn-hero-tool:focus-visible {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: #ffffff !important;
}

@media (max-width: 575px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn-hero-primary,
  .hero-actions .btn-hero-secondary,
  .hero-actions .btn-hero-tool {
    min-height: 50px;
  }
}

@media (max-width: 991px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero .hero-title,
  .hero .hero-title .hero-line,
  .hero-content h1,
  .hero-content .hero-line {
    max-width: 24ch;
  }
}

.hero-cards {
  display: none !important;
}

/* ========== Clinic strip ========== */
.clinic-strip {
  position: relative;
  z-index: 3;
  background: #04263d !important;
  color: #ffffff !important;
  padding: 0.72rem 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.clinic-strip .row {
  display: flex;
  align-items: center;
  row-gap: 0;
}

.clinic-strip .row > [class*="col-"] {
  display: flex;
  align-items: center;
}

.clinic-strip .strip-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: #ffffff !important;
  font-size: 0.84rem;
  line-height: 1.35;
  width: 100%;
  padding: 0 0.8rem;
}

.clinic-strip .strip-item i {
  margin-top: 0;
  color: #7eb6d9 !important;
  width: 16px;
  flex-shrink: 0;
}

.clinic-strip a {
  color: #ffffff !important;
  text-decoration: none;
}

.clinic-strip a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .clinic-strip {
    padding: 0.35rem 0 !important;
  }

  .clinic-strip .row > [class*="col-"] + [class*="col-"] {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .clinic-strip .strip-item {
    justify-content: flex-start;
    padding: 0.58rem 0;
  }
}

@media (min-width: 768px) {
  .clinic-strip .row > [class*="col-"] + [class*="col-"] {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
  }
}

/* ========== Shared sections ========== */
.er-section {
  padding: 4.5rem 0 !important;
}

.er-section.alt {
  background: #f4f7fa !important;
}

.er-section .section-title,
.comprehensive-care .section-title,
#conditions .section-title,
#providers .section-title,
#forms .section-title {
  color: #04263d !important;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem) !important;
  font-weight: 600 !important;
  margin-bottom: 0.65rem !important;
}

.er-section .section-desc,
.comprehensive-care .section-desc {
  color: #52606d !important;
  font-size: 1rem !important;
  max-width: 38rem;
  margin-bottom: 1.75rem !important;
  line-height: 1.65;
}

/* Services: balanced two-column */
#services .services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: stretch;
}

@media (max-width: 991px) {
  #services .services-grid {
    grid-template-columns: 1fr;
  }
}

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

.service-list li,
.condition-list li,
.form-list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.4rem;
  border-bottom: 1px solid #d9e2ec;
  color: #243b53 !important;
  font-size: 0.95rem;
  line-height: 1.4;
}

.service-list li:last-child,
.condition-list li:last-child,
.form-list li:last-child {
  border-bottom: 0;
}

.form-download-link,
.form-request-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.form-download-link {
  color: #163a59;
  text-decoration: none;
}

.form-download-link:hover,
.form-download-link:focus-visible {
  color: #0a4d7c;
  text-decoration: underline;
}

.form-download-meta,
.form-request-meta {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.form-download-meta {
  color: #0a4d7c;
}

.form-request-meta {
  color: #6b7280;
}

@media (max-width: 575px) {
  .form-download-link,
  .form-request-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }
}

.form-table-wrap {
  overflow: hidden;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(4, 38, 61, 0.08);
}

.form-table {
  width: 100%;
  border-collapse: collapse;
  color: #243b53;
  font-size: 0.86rem;
}

.form-table th,
.form-table td {
  padding: 0.8rem 0.9rem;
  text-align: left;
  vertical-align: middle;
}

.form-table th {
  background: #04263d;
  color: #ffffff;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-table tbody tr + tr td {
  border-top: 1px solid #e5eaf0;
}

.form-table tbody tr:hover {
  background: #f5f9fc;
}

.form-table td:first-child {
  width: 24%;
  color: #52606d;
  font-weight: 500;
}

.form-table td:nth-child(2) {
  width: 76%;
}

.form-table a {
  color: #0a4d7c;
  font-weight: 600;
  text-decoration: none;
}

.form-table a:hover,
.form-table a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .form-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .form-table,
  .form-table tbody,
  .form-table tr,
  .form-table td {
    display: block;
    width: 100% !important;
  }

  .form-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .form-table tbody tr {
    overflow: hidden;
    margin-bottom: 0.75rem;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #ffffff;
  }

  .form-table td {
    display: grid;
    grid-template-columns: minmax(5.5rem, 0.36fr) minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.65rem 0.8rem;
  }

  .form-table td + td,
  .form-table tbody tr + tr td {
    border-top: 1px solid #e5eaf0;
  }

  .form-table td::before {
    content: attr(data-label);
    color: #52606d;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
}

.service-list li::before,
.condition-list li::before,
.form-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #0a4d7c;
}

.service-visual {
  display: flex;
}

.service-visual img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  box-shadow: 0 8px 24px rgba(4, 38, 61, 0.12);
}

.service-map-frame {
  overflow: hidden;
  scroll-margin-top: 11rem;
  width: 100%;
  min-height: 360px;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(4, 38, 61, 0.12);
}

.service-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

/* Conditions — equal-width CSS grid (fixes uneven columns) */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 2rem;
  align-items: start;
}

.conditions-grid .condition-list {
  margin: 0;
}

@media (max-width: 991px) {
  .conditions-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .conditions-grid {
    grid-template-columns: 1fr;
  }
}

/* Providers */
.provider-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid #d9e2ec;
}

.provider-card:first-of-type {
  border-top: 1px solid #d9e2ec;
}

.provider-card:last-child {
  border-bottom: 0;
}

.provider-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  background: #eef3f7;
}

.provider-card h3 {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: #04263d !important;
  margin: 0 0 0.35rem !important;
}

.provider-card .role {
  color: #0a4d7c !important;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.65rem;
}

.provider-card p {
  color: #52606d !important;
  margin: 0;
  line-height: 1.65;
  font-size: 0.95rem;
}

@media (max-width: 575px) {
  .provider-card {
    grid-template-columns: 1fr;
  }

  .provider-card img {
    width: 120px;
    height: 120px;
  }
}

/* ========== Insurance ========== */
.insurance-section {
  background: #04263d !important;
  padding: 3.75rem 0 !important;
  color: #ffffff !important;
}

.insurance-section .insurance-title,
.insurance-section h2 {
  color: #ffffff !important;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem) !important;
  font-weight: 600 !important;
  margin: 0 0 0.75rem !important;
}

.insurance-section p,
.insurance-section li,
.insurance-section a {
  color: rgba(255, 255, 255, 0.92) !important;
}

.insurance-section a {
  text-decoration: underline;
}

.insurance-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 2rem 3rem;
  align-items: start;
}

.insurance-section .insurance-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 2rem;
  columns: unset;
}

.insurance-section .insurance-list li {
  color: rgba(255, 255, 255, 0.92) !important;
  border: 0 !important;
  padding: 0.3rem 0 !important;
  font-size: 0.95rem;
}

.insurance-section .insurance-list li::before {
  display: none !important;
}

@media (max-width: 767px) {
  .insurance-layout {
    grid-template-columns: 1fr;
  }

  .insurance-section .insurance-list {
    grid-template-columns: 1fr;
  }
}

/* Forms */
#forms .forms-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.clinic-strip .strip-addresses {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.forms-page-main #forms {
  min-height: 62vh;
  padding-top: 4.5rem;
  padding-bottom: 5rem;
}

.forms-page-eyebrow {
  margin: 0 0 0.45rem;
  color: #0a4d7c;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.forms-page-footer {
  margin-top: 0;
}

#forms .section-desc {
  margin-bottom: 0 !important;
}

@media (min-width: 992px) {
  #forms .section-desc {
    max-width: none;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  #forms .forms-layout {
    grid-template-columns: 1fr;
  }

  .forms-page-main #forms {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }
}

/* ========== Marketing / tools — readable + aligned ========== */
#patient-portal,
#healow-app,
#healow-steps,
#patient-tools,
#faqs {
  padding-top: 3.5rem !important;
  padding-bottom: 3.5rem !important;
  background: #ffffff !important;
  border-top: 1px solid #d9e2ec;
  color: #1f2933 !important;
}

#healow-steps,
#faqs {
  background: #ffffff !important;
}

#healow-steps {
  max-width: 100% !important;
  background: #ffffff !important;
}

#faqs {
  padding-top: 2.5rem !important;
  padding-bottom: 2.5rem !important;
}

#patient-portal h4,
#healow-app h4,
#healow-steps h4,
#healow-steps .healow-steps-title,
#patient-tools h4 {
  font-size: 1.35rem !important;
  font-weight: 600 !important;
  color: #04263d !important;
  margin-bottom: 1rem !important;
}

#patient-portal p,
#healow-app p,
#healow-steps p,
#patient-tools p {
  color: #52606d !important;
}

#patient-portal .list-group-item {
  background: transparent !important;
  color: #243b53 !important;
  padding-left: 0 !important;
}

#patient-portal .portal-cta,
#healow-app .stores-cta {
  box-shadow: none !important;
  border: 1px solid #d9e2ec !important;
  border-radius: 6px !important;
  overflow: hidden;
}

#patient-portal .portal-cta-title {
  margin: 0 0 0.4rem;
  color: #04263d;
  font-size: 1.1rem;
  font-weight: 600;
}

#patient-portal .portal-cta-description {
  margin: 0 0 1rem;
  color: #52606d !important;
  font-size: 0.9rem;
  line-height: 1.5;
}

#healow-app .stores-cta .card-body {
  background: #04263d !important;
}

#healow-app .stores-cta .card-body,
#healow-app .stores-cta .card-body h6,
#healow-app .stores-cta .card-body p,
#healow-app .stores-cta .card-body a,
#healow-app .stores-cta .card-body small {
  color: #ffffff !important;
}

#healow-steps .step-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  padding: 1.1rem !important;
  height: 100%;
}

#healow-steps .step-content p {
  margin-bottom: 0;
  color: #243b53 !important;
}

#healow-steps .practice-code-row {
  border-radius: 6px;
  overflow: hidden;
  margin-top: 1.5rem !important;
}

#healow-steps .practice-code-left {
  background: #04263d !important;
}

#healow-steps .practice-code-left p {
  color: #ffffff !important;
}

#faqs .faq-iframe-wrapper {
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  height: auto;
}

#faqs .mgdiframe-faqs,
#faqs iframe.mgdiframe-faqs {
  display: block;
  width: 100% !important;
  min-height: 0;
  height: 820px;
  border: 0;
  overflow: hidden;
}

/* ========== Hero scheduling prompt ========== */
.schedule-inline {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  margin: 0;
  padding: 1.35rem;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, rgba(4, 38, 61, 0.68) 0%, rgba(4, 38, 61, 0.46) 58%, rgba(4, 38, 61, 0.18) 100%);
  box-shadow: none;
  backdrop-filter: blur(2px);
  scroll-margin-top: 8rem;
}

.schedule-inline h2 {
  color: #ffffff !important;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem) !important;
  font-weight: 700 !important;
  margin: 0 0 0.2rem !important;
}

.schedule-inline p {
  color: rgba(255, 255, 255, 0.9) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.schedule-inline-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.08rem;
  min-height: 46px;
  width: 100%;
  padding: 0.72rem 1.25rem;
  border-radius: 6px;
  background: #ffffff;
  color: #04263d !important;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}

.schedule-phone-number {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.schedule-inline-button:hover,
.schedule-inline-button:focus-visible {
  background: #e8f2f8;
  color: #04263d !important;
}

.schedule-prep {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
}

.schedule-prep summary {
  display: inline-block;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.schedule-prep ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
}

@media (max-width: 767px) {
  .schedule-inline {
    padding: 1.15rem;
  }
}

/* ========== Footer ========== */
#footer,
.main-footer {
  background: #04263d !important;
  color: #ffffff !important;
  padding: 3.5rem 0 1.5rem !important;
}

#footer h4,
.main-footer h4,
.footer-heading {
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin-bottom: 1rem !important;
}

#footer p,
#footer li,
#footer a,
.main-footer p,
.main-footer li,
.main-footer a,
.footer-desc,
.footer-bottom p {
  color: rgba(255, 255, 255, 0.9) !important;
}

#footer a:hover,
.main-footer a:hover {
  color: #ffffff !important;
  opacity: 0.8;
}

.footer-logo {
  display: inline-block !important;
  margin-bottom: 1rem !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.footer-logo img,
.footer-brand-logo {
  max-width: 180px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  filter: brightness(1.15) contrast(1.05);
}

.footer-desc {
  max-width: 20rem !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
  margin-bottom: 1.25rem !important;
}

.main-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-footer ul li {
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
}

.contact-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.75rem !important;
}

.contact-list li i {
  color: #7eb6d9 !important;
  margin-top: 0.25rem;
  width: 16px;
  flex-shrink: 0;
}

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

.location-link:hover,
.location-link:focus-visible {
  color: inherit;
  text-decoration: underline;
}

#footer .social-icons a,
.main-footer .social-icons a {
  color: #0a4d7c !important;
  background: #ffffff !important;
}

#patient-tools {
  max-width: 1140px !important;
  margin-left: auto;
  margin-right: auto;
}

#patient-tools .nav-tabs .nav-link {
  color: #243b53 !important;
}

#patient-tools .nav-tabs .nav-link.active {
  background: #0a4d7c !important;
  border-color: #0a4d7c !important;
  color: #ffffff !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  margin-top: 2rem !important;
  padding-top: 1.25rem !important;
  text-align: center !important;
  width: 100% !important;
}

.footer-bottom p {
  margin: 0 auto !important;
  font-size: 0.85rem !important;
  opacity: 0.85;
  text-align: center !important;
  width: 100% !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.footer-content {
  align-items: flex-start !important;
}

/* Back to top */
.back-to-top {
  background: #0a4d7c !important;
  color: #ffffff !important;
  border-radius: 4px !important;
}

/* Featured condition guides */
.condition-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.condition-feature-card {
  background: #ffffff;
  border: 1px solid #d9e4ec;
  border-top: 4px solid #0a4d7c;
  border-radius: 6px;
  padding: 1.4rem;
}

.condition-feature-card h3 {
  color: #173f5f;
  font-size: 1.12rem;
  margin: 0 0 0.65rem;
}

.condition-feature-card p {
  color: #425466;
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.condition-feature-card a {
  color: #0a4d7c;
  font-weight: 700;
  text-decoration: none;
}

.condition-feature-card a:hover,
.condition-feature-card a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 991px) {
  .condition-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .condition-feature-grid {
    grid-template-columns: 1fr;
  }
}

.provider-profile-link {
  color: #0a4d7c;
  display: inline-block;
  font-weight: 700;
  margin-top: 0.4rem;
  text-decoration: none;
}

.provider-profile-link:hover,
.provider-profile-link:focus-visible {
  text-decoration: underline;
}
