/* CRM wizard theme — applies to all templates */
:root {
  --crm-theme-primary: #1d90af;
  --crm-theme-secondary: #c49a3b;
  --crm-theme-primary-dark: #146277;
  --crm-theme-button: #197f9b;
  --crm-theme-button-hover: #156c84;
  --crm-dark-surface: #146277;
  --crm-theme-btn-radius: 8px;
  --crm-btn-solid-text: #ffffff;
  --crm-btn-outline-text: #2d2d2d;
  --crm-btn-outline-hover-bg: #89c5d5;
  --crm-btn-outline-hover-text: #2d2d2d;
  --crm-text-on-light: #2d2d2d;
  --crm-text-on-dark: #ffffff;
  --crm-text-muted-on-light: #333333;
  --text-on-color-pink-light: #2d2d2d;
  --text-muted-on-color-pink-light: #333333;
  --text-on-color-pink: #2d2d2d;
  --text-muted-on-color-pink: #333333;
  --text-on-color-rose-pink: #2d2d2d;
  --text-muted-on-color-rose-pink: #333333;
  --text-on-color-surface-muted: #2d2d2d;
  --text-muted-on-color-surface-muted: #333333;
  --text-on-color-surface-tint: #2d2d2d;
  --text-muted-on-color-surface-tint: #333333;
  --text-on-color-surface-alt: #2d2d2d;
  --text-muted-on-color-surface-alt: #333333;
  --text-on-mkt-surface: #2d2d2d;
  --text-muted-on-mkt-surface: #333333;
  --text-on-mkt-surface-alt: #2d2d2d;
  --text-muted-on-mkt-surface-alt: #333333;
  --text-on-brand-surface: #2d2d2d;
  --text-muted-on-brand-surface: #333333;
  --text-on-dark-purple: #ffffff;
  --text-muted-on-dark-purple: rgba(255, 255, 255, 0.92);
  --text-on-dark-purple-gray: #ffffff;
  --text-muted-on-dark-purple-gray: rgba(255, 255, 255, 0.92);
  --text-on-mkt-blue-dark: #ffffff;
  --text-muted-on-mkt-blue-dark: rgba(255, 255, 255, 0.92);
  --text-on-dark-blue: #ffffff;
  --text-muted-on-dark-blue: rgba(255, 255, 255, 0.92);
  --text-on-mkt-primary-dark: #ffffff;
  --text-muted-on-mkt-primary-dark: rgba(255, 255, 255, 0.92);
  --text-on-brand-dark: #ffffff;
  --text-muted-on-brand-dark: rgba(255, 255, 255, 0.92);
  --text-on-color-secondary: #ffffff;
  --text-muted-on-color-secondary: rgba(255, 255, 255, 0.92);
  --text-on-mkt-healow-blue: #ffffff;
  --text-muted-on-mkt-healow-blue: rgba(255, 255, 255, 0.92);
  --text-on-crm-dark-surface: #ffffff;
  --text-muted-on-crm-dark-surface: rgba(255, 255, 255, 0.92);
  --text-on-brand-teal: #2d2d2d;
  --text-muted-on-brand-teal: #333333;
  --text-on-color-accent: #ffffff;
  --text-muted-on-color-accent: rgba(255, 255, 255, 0.92);
  --text-on-mkt-accent: #ffffff;
  --text-muted-on-mkt-accent: rgba(255, 255, 255, 0.92);
  --text-on-mkt-accent-dark: #ffffff;
  --text-muted-on-mkt-accent-dark: rgba(255, 255, 255, 0.92);
  --text-on-color-primary: #2d2d2d;
  --text-muted-on-color-primary: #333333;
  --text-on-light-blue: #2d2d2d;
  --text-muted-on-light-blue: #333333;
  --text-on-teal: #ffffff;
  --text-muted-on-teal: rgba(255, 255, 255, 0.92);
  --text-on-hot-pink: #ffffff;
  --text-muted-on-hot-pink: rgba(255, 255, 255, 0.92);
  --text-on-orange: #ffffff;
  --text-muted-on-orange: rgba(255, 255, 255, 0.92);
  --text-on-color-app-button: #ffffff;
  --text-muted-on-color-app-button: rgba(255, 255, 255, 0.92);
  --text-on-color-pink-btn: #ffffff;
  --text-muted-on-color-pink-btn: rgba(255, 255, 255, 0.92);

  /* style1 */
  --color-primary: #1d90af;
  --color-primary-dark: #187690;
  --color-plum: #c49a3b;
  --color-pink-btn: #197f9b;
  --color-accent-red: #c49a3b;
  --color-rose-pink: #6cb7cb;

  /* style2 / healow marketing */
  --dark-purple: #146277;
  --dark-purple-gray: #187690;
  --light-purple: #1d90af;
  --pink: #6cb7cb;
  --hot-pink: #197f9b;
  --blue: #1d90af;
  --dark-blue: #146277;
  --teal: #1d90af;
  --light-blue: #6cb7cb;
  --mkt-blue: #1d90af;
  --mkt-blue-dark: #146277;
  --mkt-orange: #c49a3b;
  --mkt-accent: #197f9b;
  --mkt-accent-dark: #156c84;
  --mkt-link: #1d90af;
  --mkt-check: #1d90af;
  --mkt-surface: #ffffff;
  --mkt-surface-alt: #85c3d4;
  --mkt-tab-text: #495057;
  --mkt-bg-tab-inactive: #ececec;

  /* style3 classic healow */
  --color-secondary: #146277;
  --color-accent: #197f9b;
  --color-surface-muted: #f5f9fb;
  --color-surface-tint: #93cad9;
  --color-surface-alt: #f8f3e7;
  --color-faq-border: #c0e0e9;
  --color-faq-border-soft: #c9e4ec;
  --color-faq-border-light: #d2e9ef;
  --color-faq-gradient-start: #d6ebf1;
  --color-chip-bg: #cde7ed;
  --color-chip-border: #b7dbe5;
  --color-chip-text: #187690;
  --color-chip-hover: #98c5d2;
  --color-text-shadow: #e8f4f7;
  --color-insurance-muted: #95b8c2;
  --brand-heading: #187690;
  --brand-hero-accent: #1d90af;
  --brand-dark: #146277;
  --brand-teal: #197f9b;
  --brand-surface: #f5f9fb;
  --brand-red: #c49a3b;
  --brand-muted: #7ea9b4;
  --brand-highlight: #6aacbe;
  --brand-lime: #a8ced9;
  --mkt-warm-accent: #c49a3b;
  --hero-card-icon-bg: #197f9b;
  --social-icon-color: #197f9b;
  --footer-heading-color: #ffffff;

  /* bootstrap tokens */
  --bs-primary: #1d90af;
  --bs-primary-rgb: 29, 144, 175;
  --bs-link-color: #1d90af;
  --bs-link-hover-color: #187690;

  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', Georgia, 'Times New Roman', serif;
  --color-pink-border: #d1ae61;
  --color-orange: #c49a3b;
  --color-gray-dark: #2d2d2d;
  --color-gray: #6b6b6b;
  --color-gray-light: #9a9a9a;
  --mkt-orange-gold: #c49a3b;
  --mkt-text: #333333;
  --mkt-text-muted: #555555;
  --color-secondary: #146277;
  --color-surface-tint: #93cad9;
  --color-surface-alt: #f8f3e7;
  --brand-dark: #146277;
  --brand-teal: #4fa8c1;
  --brand-heading: #187690;
  --brand-hero-accent: #1d90af;
  --brand-surface: #f5f9fb;
  --mkt-warm-accent: #c49a3b;
  --mkt-surface: #ffffff;
  --mkt-surface-alt: #85c3d4;
  --hero-card-icon-bg: #197f9b;
  --social-icon-color: #197f9b;
  --footer-heading-color: #ffffff;
  --color-primary-darker: #125f74;
  --crm-theme-accent: #125f74;
  --mkt-healow-blue: #146277;
  --color-code-highlight: #f7efd8;
  --color-text-light: #6b7280;
  --color-text: #2d2d2d;
  --color-border: #d7e2e7;
  --color-nav-border: #c7d7de;
  --color-success: #2f7a45;
  --red: #197f9b;
  --color-text-on-light: #2d2d2d;
  --color-text-on-dark: #ffffff;
  --mkt-primary-dark: #146277;
  --crm-text-muted-on-light: #333333;
}

html, body {
  font-family: var(--font-body) !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading) !important;
}

.btn,
button,
input[type="button"],
input[type="submit"],
a.btn,
[class*="btn-"] {
  border-radius: var(--crm-theme-btn-radius) !important;
  font-weight: 600 !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

/* Universal solid primary CTA buttons */
.btn-primary,
.btn-header,
.btn-appointment,
.btn-hero-primary,
.btn-hero-card,
.btn-cta-primary,
.btn-schedule,
.btn-portal,
.btn-marketing-primary,
.btn-marketing-accent,
.portal-button,
.btn-modal-custom,
.qa-custom-btn,
.card.stores-cta .btn,
.card.portal-cta .portal-button,
.bg-primary {
  background-color: var(--crm-theme-button) !important;
  border: 1px solid var(--crm-theme-button) !important;
  color: var(--crm-btn-solid-text) !important;
}

.btn-primary:hover,
.btn-header:hover,
.btn-appointment:hover,
.btn-hero-primary:hover,
.btn-hero-card:hover,
.btn-cta-primary:hover,
.btn-schedule:hover,
.btn-portal:hover,
.btn-marketing-primary:hover,
.btn-marketing-accent:hover,
.portal-button:hover,
.btn-modal-custom:hover,
.qa-custom-btn:hover,
.card.stores-cta .btn:hover,
.card.portal-cta .portal-button:hover {
  background-color: var(--crm-theme-button-hover) !important;
  border-color: var(--crm-theme-button-hover) !important;
  color: var(--crm-btn-solid-text) !important;
}

/* Override Bootstrap text-dark on solid brand buttons */
.btn-primary.text-dark,
.btn-header.text-dark,
.btn-hero-card.text-dark,
.btn-cta-primary.text-dark,
.portal-button.text-dark,
a.btn.text-dark[class*="btn-"] {
  color: var(--crm-btn-solid-text) !important;
}

/* Universal outline / secondary buttons */
.btn-patient-login,
.btn-cta-outline,
.btn-outline-primary {
  background-color: #ffffff !important;
  color: var(--crm-btn-outline-text) !important;
  border: 1px solid var(--crm-theme-primary) !important;
}

.btn-patient-login:hover,
.btn-cta-outline:hover,
.btn-outline-primary:hover {
  background-color: var(--crm-btn-outline-hover-bg) !important;
  color: var(--crm-btn-outline-hover-text) !important;
  border-color: var(--crm-theme-primary) !important;
}

/* Section backgrounds derived from brand */
.hero-section {
  background: linear-gradient(135deg, #8ec8d7 0%, #80c1d2 100%) !important;
}

.hero-label {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--crm-theme-primary-dark) !important;
}

.hero-title,
.hero-title-accent {
  color: var(--crm-theme-primary-dark) !important;
}

.hero-desc {
  color: var(--color-gray, #6b6b6b) !important;
}

/* Dark band sections — always readable white text */
.insurance-section,
.section-dark,
.bg-dark-purple {
  background-color: var(--crm-dark-surface) !important;
  color: var(--crm-btn-solid-text) !important;
}

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

/* Service / care cards — brand teal and gold overlays */
.care-card-overlay.pink {
  background: linear-gradient(to top, rgba(29, 144, 175, 0.82), transparent 55%) !important;
}

.care-card-overlay.hot-pink {
  background: linear-gradient(to top, rgba(20, 98, 119, 0.85), transparent 55%) !important;
}

.care-card-overlay.purple {
  background: linear-gradient(to top, rgba(196, 154, 59, 0.78), transparent 55%) !important;
}

.care-card-content h3 {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.text-primary,
.navbar-brand,
a.nav-link:hover,
.service-link,
.portal-link {
  color: var(--crm-theme-primary) !important;
}

a {
  color: var(--crm-theme-primary);
}

a:hover {
  color: var(--crm-theme-primary-dark);
}

.service-icon i,
.care-card-icon,
[class*="accent"] {
  color: var(--crm-theme-primary);
}

/* Style 3 — header, footer, sections tied to global palette */
.main-logo {
  background: var(--crm-theme-primary) !important;
}

#footer,
.medicbuilding {
  background: var(--crm-dark-surface) !important;
  color: var(--crm-btn-solid-text) !important;
}

#footer .footer-link li a,
#footer .footer-link li a:visited,
.footer-link li a,
.footer-link li a:visited {
  color: var(--crm-btn-solid-text) !important;
}

#testimonials {
  background: var(--color-surface-muted) !important;
}

#meet-doctor {
  background: var(--color-surface-alt) !important;
}

.specialities-bx {
  background: var(--color-surface-tint) !important;
}

.card.stores-cta .card-body {
  background: var(--brand-teal) !important;
}

.services-tabs a.nav-link.active,
.nav-tabs .nav-link.active,
#faqs .nav-tabs .nav-link.active {
  background-color: var(--brand-teal) !important;
  border-color: var(--brand-teal) !important;
  color: #2d2d2d !important;
}

#quick-action .btn {
  background-color: var(--color-primary) !important;
  border-color: var(--color-surface) !important;
  color: #2d2d2d !important;
}

#quick-action .btn i {
  color: #2d2d2d !important;
}

div#insurance-providers h5 {
  color: #ffffff !important;
}

.practice-name {
  color: var(--brand-teal) !important;
}

.hero-card-icon.red,
.hero-card-icon.orange,
.hero-card-icon.purple,
.hero-card-icon.teal,
.hero-card-icon {
  background: var(--hero-card-icon-bg) !important;
  color: var(--crm-btn-solid-text) !important;
}

#footer h4,
#footer h3,
#footer h2,
.main-footer h4,
.footer-heading {
  color: var(--footer-heading-color) !important;
}

#footer .social-icons a,
.main-footer .social-icons a {
  color: var(--social-icon-color) !important;
  background: #ffffff !important;
}

#footer .social-icons a:hover,
.main-footer .social-icons a:hover {
  color: #ffffff !important;
  background: var(--crm-theme-primary) !important;
}

/* WCAG 2.1 AA — section text/background pairs */
.services-section { color: #2d2d2d !important }
.service-card { color: #2d2d2d !important }
.service-card h3 { color: #2d2d2d !important }
.service-card p { color: #2d2d2d !important }
.testimonials-section { color: #2d2d2d !important }
.testimonial-card { color: #2d2d2d !important }
#testimonials { color: #2d2d2d !important }
#testimonials p { color: #2d2d2d !important }
#meet-doctor { color: #2d2d2d !important }
#meet-doctor h4 { color: #2d2d2d !important }
#meet-doctor p { color: #2d2d2d !important }
.specialities-bx { color: #2d2d2d !important }
#patient-portal { color: #2d2d2d !important }
#patient-portal p { color: #2d2d2d !important }
#patient-tools { color: #2d2d2d !important }
#faqs .tab-content { color: #2d2d2d !important }
.serve-card { color: #2d2d2d !important }
.serve-card p { color: #2d2d2d !important }
#imp-notice { color: #2d2d2d !important }
#imp-notice small { color: #2d2d2d !important }
.section-desc { color: #2d2d2d !important }
.bx-highlight { color: #2d2d2d !important }
.hero-section .section-title { color: #2d2d2d !important }
.hero-desc { color: #2d2d2d !important }
.services-section .section-title { color: #2d2d2d !important }
.insurance-section { color: #ffffff !important }
.insurance-section h2 { color: #ffffff !important }
.insurance-section h3 { color: #ffffff !important }
.insurance-title { color: #ffffff !important }
.section-dark { color: #ffffff !important }
.bg-dark-purple { color: #ffffff !important }
#footer { color: #ffffff !important }
#footer p { color: #ffffff !important }
#footer h2 { color: #ffffff !important }
#footer h3 { color: #ffffff !important }
#footer h4 { color: #ffffff !important }
#footer h5 { color: #ffffff !important }
#footer li { color: #ffffff !important }
.main-footer { color: #ffffff !important }
.main-footer h4 { color: #ffffff !important }
.main-footer h3 { color: #ffffff !important }
.main-footer p { color: #ffffff !important }
.footer-heading { color: #ffffff !important }
.footer-desc { color: #ffffff !important }
.footer-logo .logo-text { color: #ffffff !important }
.medicbuilding { color: #ffffff !important }
.local-panel { color: #ffffff !important }
.local-panel h4 { color: #ffffff !important }
.local-panel h3 { color: #ffffff !important }
.local-panel p { color: #ffffff !important }
.local-panel td { color: #ffffff !important }
.local-panel th { color: #ffffff !important }
.footer-section { color: #ffffff !important }
.site-footer { color: #ffffff !important }
.insurance-section p { color: rgba(255, 255, 255, 0.92) !important }
.insurance-section li { color: rgba(255, 255, 255, 0.92) !important }
.insurance-section .insurance-list li { color: rgba(255, 255, 255, 0.92) !important }
#footer .text-muted { color: rgba(255, 255, 255, 0.92) !important }
.local-panel .text-muted { color: rgba(255, 255, 255, 0.92) !important }
#footer a { color: #ffffff !important }
#footer .footer-link li a { color: #ffffff !important }
.footer-link li a { color: #ffffff !important }
.footer-link li a:visited { color: #ffffff !important }
.main-footer ul li a { color: #ffffff !important }
.footer-links a { color: #ffffff !important }
.footer-links a:visited { color: #ffffff !important }
.insurance-section a { color: #ffffff !important }
.local-panel a { color: #ffffff !important }
#footer .social-icons a { color: #197f9b !important; background: #ffffff !important }
.main-footer .social-icons a { color: #197f9b !important; background: #ffffff !important }
footer .social-icons a { color: #197f9b !important; background: #ffffff !important }
#footer .social-icons a:hover { color: #ffffff !important; background: #1d90af !important }
.main-footer .social-icons a:hover { color: #ffffff !important; background: #1d90af !important }
footer .social-icons a:hover { color: #ffffff !important; background: #1d90af !important }
.contact-list li i { color: #ffffff !important }
#footer .contact-list i { color: #ffffff !important }
.main-footer .contact-list i { color: #ffffff !important }
.hero-card-icon { color: #ffffff !important; background: #197f9b !important }
.hero-card-icon.red { color: #ffffff !important; background: #197f9b !important }
.hero-card-icon.orange { color: #ffffff !important; background: #197f9b !important }
.hero-card-icon.purple { color: #ffffff !important; background: #197f9b !important }
.hero-card-icon.teal { color: #ffffff !important; background: #197f9b !important }
.hero-card-icon i { color: #ffffff !important; background: #197f9b !important }
#footer a:hover { color: #ffffff !important; opacity: 0.88 }
.footer-link li a:hover { color: #ffffff !important; opacity: 0.88 }
.insurance-section a:hover { color: #ffffff !important; opacity: 0.88 }
.local-panel a:hover { color: #ffffff !important; opacity: 0.88 }
.top-bar { color: #ffffff !important }
.top-bar a { color: #ffffff !important }
.top-bar span { color: #ffffff !important }
.navbar-dark { color: #ffffff !important }
.navbar-dark .nav-link { color: #ffffff !important }
.navbar-dark .navbar-brand { color: #ffffff !important }
#primary-nav { color: #ffffff !important }
#primary-nav .nav-link { color: #ffffff !important }
#primary-nav .navbar-brand { color: #ffffff !important }
.hero-overlay {
  background: linear-gradient(135deg, rgba(20, 98, 119, 0.9) 0%, rgba(29, 144, 175, 0.75) 60%, rgba(196, 154, 59, 0.28) 100%) !important;
  color: #ffffff !important;
}

.cta-content {
  background: linear-gradient(90deg, var(--crm-dark-surface) 0%, var(--crm-theme-primary) 55%, var(--crm-theme-secondary) 100%) !important;
}

.btn-appointment {
  background: linear-gradient(90deg, var(--crm-theme-secondary), var(--crm-theme-primary)) !important;
  border: 1px solid var(--crm-theme-primary) !important;
}

.btn-appointment:hover {
  background: linear-gradient(90deg, #a67f2f, var(--crm-theme-primary-dark)) !important;
  border-color: var(--crm-theme-primary-dark) !important;
}

.btn-cta {
  background: var(--crm-theme-secondary) !important;
  border: 1px solid var(--crm-theme-secondary) !important;
  color: #ffffff !important;
}

.btn-cta:hover {
  background: #a67f2f !important;
  border-color: #a67f2f !important;
  color: #ffffff !important;
}
.hero-content { color: #ffffff !important }
.hero-content h1 { color: #ffffff !important }
.hero-content p { color: #ffffff !important }
.hero-subtitle { color: #ffffff !important }
.nav-tabs .nav-link.active { color: #2d2d2d !important }
#faqs .nav-tabs .nav-link.active { color: #2d2d2d !important }
.services-tabs a.nav-link.active { color: #2d2d2d !important }
.card.stores-cta .card-body { color: #2d2d2d !important }
.card.stores-cta .card-body p { color: #2d2d2d !important }
.highlight-bx { color: #2d2d2d !important }
.highlight-bx p { color: #2d2d2d !important }
.portal-24-7-icon { color: #2d2d2d !important }
.portal-24-7-icon .material-icons { color: #2d2d2d !important }
.healow-steps-header { color: #2d2d2d !important }
.healow-step-number { color: #2d2d2d !important }
#quick-action .btn:hover { color: #2d2d2d !important }
#quick-action .btn:focus { color: #2d2d2d !important }
#quick-action .btn:active { color: #2d2d2d !important }
#quick-action .btn:hover i { color: #2d2d2d !important }
#quick-action .btn:focus i { color: #2d2d2d !important }
#quick-action .btn:active i { color: #2d2d2d !important }
#quick-action .btn { color: #2d2d2d !important }
#quick-action .btn i { color: #2d2d2d !important }
.portal-button-wrap .portal-button { color: #ffffff !important }
.btn-marketing-primary { color: #ffffff !important }
.btn-marketing-accent { color: #ffffff !important }
.healow-download-btn { color: #ffffff !important }
.marketing-cta-band { color: #ffffff !important }
#patient-tools .nav-tabs .nav-link.active { color: #ffffff !important }
#patient-tools .nav-tabs .nav-link.active i { color: #ffffff !important }
#patient-tools .nav-tabs .nav-link { color: #2d2d2d !important }
#faqs .nav-tabs .nav-link:not(.active) { color: #2d2d2d !important }
.section-title { color: #2d2d2d !important }
.hero-title { color: #2d2d2d !important }
.service-card h3 { color: #2d2d2d !important }
.testimonial-card .testimonial-name { color: #2d2d2d !important }
.services-section a:not(.btn):not(.nav-link) { color: #1d90af !important }
#patient-portal a:not(.btn):not(.nav-link) { color: #1d90af !important }
.hero-section a:not(.btn):not(.nav-link) { color: #1d90af !important }
.service-link { color: #1d90af !important }
.portal-link { color: #1d90af !important }
div#insurance-providers h5 { color: #ffffff !important }
#local-meet-doctors .material-icons { color: #ffffff !important }
#local-socials a ion-icon { color: #ffffff !important }
#local-socials a i.fa-brands { color: #ffffff !important }
.practice-name { color: #2d2d2d !important }
.serve-chip { color: #2d2d2d !important }
.serve-chip:hover { color: #2d2d2d !important }
