/*-----------------------------------------
 RESET & BASE/NORMALIZATION
-----------------------------------------*/
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #fff;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #21243a;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ol, ul {
  list-style: none;
  padding: 0;
}
a {
  text-decoration: none;
  color: #12537D;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #2B9D7F;
  outline: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  transition: background 0.2s, box-shadow 0.2s;
}
:focus {
  outline: 2px solid #12537D;
}

/*-----------------------------------------
 COLOR VARS (FALLBACKS)
-----------------------------------------*/
:root {
  --brand-blue: #12537D;
  --brand-blue-dark: #0e4062;
  --brand-light: #E2EEF5;
  --brand-accent: #2B9D7F;
  --brand-accent-dark: #14614d;
  --brand-warning: #FFD600;
  --brand-error: #FE6F61;
  --brand-fun-blue: #27a4eb;
  --brand-fun-yellow: #ffe47a;
  --brand-fun-green: #98e475;
  --brand-fun-coral: #FF7A87;
  --white: #FFFFFF;
  --light-grey: #F7FBFD;
  --mid-grey: #c5d9eb;
  --text-title: #1d273b;
  --text-body: #21243a;
  --shadow: 0 3px 20px 0 rgba(41,81,120,0.12);
}

/*-----------------------------------------
 TYPOGRAPHY (PLAYFUL & DYNAMIC)
-----------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: var(--text-title);
  font-weight: bold;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 0.7em;
  text-shadow: 1px 3px 0 var(--brand-fun-yellow);
}
h2 {
  font-size: 2rem;
  margin-bottom: 0.6em;
  text-shadow: 1px 2px 0 var(--brand-fun-green);
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4em;
}
p, ul li, ol li, .info-box {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text-body);
  font-size: 1rem;
}
strong {
  font-weight: 700;
  color: var(--brand-blue-dark);
}
.text-section > h1,
.text-section > h2 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  margin-bottom: 0.35em;
  line-height: 1.1;
}
.info-box {
  background: var(--brand-fun-yellow);
  border-radius: 14px;
  color: #222;
  font-weight: bold;
  padding: 18px 20px;
  margin: 18px 0;
  font-size: 1.1rem;
  box-shadow: 1px 2px 12px 0 rgba(255,228,122,0.14);
}

/*-----------------------------------------
 LAYOUT CONTAINERS and FLEXBOX
-----------------------------------------*/
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 30px 24px;
  transition: box-shadow 0.2s, transform 0.1s;
}
.card:hover {
  box-shadow: 0 8px 28px 0 rgba(41,81,120,0.21);
  transform: translateY(-2px) scale(1.018);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--brand-fun-blue);
  color: #222;
  border-radius: 20px;
  box-shadow: 0 4px 16px 0 rgba(39,164,235,0.11);
  margin-bottom: 20px;
  flex-direction: column;
  font-size: 1.1rem;
  position: relative;
}
.testimonial-card p {
  color: #192846;
}
.testimonial-card strong {
  color: var(--brand-accent-dark);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--brand-fun-green);
  border-radius: 15px;
  padding: 18px 20px;
}
.doctor-card {
  background: var(--brand-fun-yellow);
  border-radius: 14px;
  box-shadow: 0 4px 14px 0 rgba(255,228,122,0.13);
  margin-bottom: 20px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.doctor-card strong { font-size: 1.15rem; }
.doctor-card .cta { margin-top: 8px; }

.trusted-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0 0 0;
}
.trusted-icons > div {
  background: var(--brand-fun-green);
  color: #222;
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}
.rating-summary, .star-rating {
  color: var(--brand-blue-dark);
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0 0;
}

/* FAQ and Lists */
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  flex-direction: column;
}
.faq-item {
  background: var(--brand-light);
  border-radius: 15px;
  padding: 22px 18px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px 0 rgba(18,83,125,0.06);
  position: relative;
}
.faq-item h2, .faq-item h3 {
  margin-bottom: 10px;
  color: var(--brand-blue);
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 18px;
}
.footer-menu a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--brand-blue);
  transition: color 0.18s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--brand-accent);
}
.footer-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 1rem;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-contact img {
  height: 40px;
}

/*-----------------------------------------
 NAVBAR & HEADER
-----------------------------------------*/
header {
  background: var(--brand-light);
  box-shadow: 0 3px 17px 0 rgba(18,83,125,0.04);
  position: relative;
  z-index: 1020;
}
.main-navbar {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 0 10px 0;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
}
.main-navbar .logo-link {
  margin-right: 18px;
}
.main-navbar a {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.005em;
  color: var(--brand-blue);
  transition: color 0.19s, background 0.16s;
  border-radius: 10px;
  padding: 6px 13px;
}
.main-navbar a.cta.primary {
  background: var(--brand-accent);
  color: #fff;
  font-weight: 700;
  border-radius: 22px;
  padding: 9px 28px;
  margin-left: auto;
  box-shadow: 0 2px 10px 0 rgba(43,157,127,0.09);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.main-navbar a.cta.primary:hover, .main-navbar a.cta.primary:focus {
  background: var(--brand-accent-dark);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 4px 14px 0 rgba(43,157,127,0.15);
}
.main-navbar a:hover, .main-navbar a:focus {
  color: var(--brand-fun-blue);
}

/*-----------------------------------------
 RESPONSIVE: MOBILE NAVBAR MENU
-----------------------------------------*/
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 15px;
  right: 26px;
  z-index: 1050;
  background: var(--brand-blue);
  color: var(--white);
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--brand-accent);
}
.mobile-menu {
  position: fixed;
  left: 0;top: 0;bottom: 0;
  width: 100vw;height: 100vh;
  z-index: 2500;
  background: var(--white);
  box-shadow: -6px 0 44px 0 rgba(18,83,125,0.12);
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(0.6,0,0.3,1.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 36px;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 30px;
  font-size: 2.1rem;
  color: var(--brand-blue);
  background: var(--brand-fun-yellow);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(41,81,120,0.13);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: 34px 28px 0 32px;
  align-items: flex-start;
}
.mobile-nav a {
  font-size: 1.3rem;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: var(--brand-blue);
  border-radius: 12px;
  background: none;
  padding: 8px 14px;
  transition: color 0.18s, background 0.16s;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--brand-fun-green);
  color: var(--brand-accent-dark);
}

@media (max-width: 900px) {
  .main-navbar .cta.primary {
    margin-left: 0;
    order: 1000;
  }
}
@media (max-width: 850px) {
  .main-navbar {
    gap: 11px;
    font-size: 0.93em;
  }
}
@media (max-width: 800px) {
  .main-navbar {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/*-----------------------------------------
 BUTTONS (CTA & ACTIONS)
-----------------------------------------*/
.cta,
button.cta {
  background: var(--brand-fun-coral);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  border-radius: 20px;
  padding: 11px 34px;
  font-size: 1.12rem;
  border: none;
  margin-top: 10px;
  box-shadow: 0 4px 16px 0 rgba(255,122,135,0.13);
  transition: background 0.21s, transform 0.18s, box-shadow 0.2s;
  position: relative;
  letter-spacing: 0.02em;
}
.cta.primary {
  background: var(--brand-accent);
  color: #fff;
  box-shadow: 0 2px 14px 0 rgba(43,157,127,0.12);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--brand-accent-dark);
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 4px 20px 0 rgba(43,157,127,0.18);
}
.cta:hover, .cta:focus {
  background: var(--brand-fun-coral);
  color: #fff;
  transform: scale(1.04) translateY(-3px);
  box-shadow: 0 6px 22px 0 rgba(255,122,135,0.19);
  outline: none;
}

/*-----------------------------------------
 ANIMATIONS & MICRO-INTERACTIONS
-----------------------------------------*/
@keyframes bounceIn {
  0% { transform: scale(0.93); opacity: 0.5; }
  70% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.card, .testimonial-card, .doctor-card, .feature-item, .info-box {
  animation: bounceIn 0.75s cubic-bezier(0.19, 1, 0.22, 1) 1;
}
.cta.primary, .cta {
  animation: bounceIn 0.5s cubic-bezier(0.19, 1, 0.22, 1) 1;
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    transition: none !important;
    animation: none !important;
  }
}

/*-----------------------------------------
 COOKIE CONSENT BANNER
-----------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4000;
  background: var(--brand-fun-yellow);
  color: #333;
  padding: 18px 20px;
  box-shadow: 0 -2px 18px 0 rgba(41,81,120,0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  font-size: 1rem;
  flex-wrap: wrap;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.23s, transform 0.35s cubic-bezier(0.6,0,0.3,1.3);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-banner button {
  padding: 9px 23px;
  border-radius: 18px;
  font-family: 'Montserrat', sans-serif;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 10px 0 rgba(41,81,120,0.09);
  transition: background 0.16s, color 0.13s;
}
.cookie-banner .accept {
  background: var(--brand-accent);
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--brand-accent-dark);
}
.cookie-banner .reject {
  background: var(--brand-fun-coral);
  color: #fff;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #bf4654;
}
.cookie-banner .settings {
  background: var(--white);
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--brand-fun-blue);
  color: var(--white);
}

/* COOKIE MODAL */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31,55,81,0.30);
  z-index: 4050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--white);
  border-radius: 22px;
  max-width: 95vw;
  width: 420px;
  padding: 36px 30px;
  box-shadow: 0 8px 46px 0 rgba(18,83,125,0.16);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: bounceIn 0.6s cubic-bezier(0.21, 0.76, 0.18, 1.19);
  z-index: 4100;
}
.cookie-modal h2 {
  font-size: 1.7rem;
  margin-bottom: 4px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--brand-fun-yellow);
  color: var(--brand-blue);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.6em;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--mid-grey);
}
.cookie-modal .cookie-category:last-child {
  border-bottom: none;
}
.cookie-modal label {
  font-weight: 600;
  color: var(--brand-blue-dark);
}
.cookie-modal input[type="checkbox"] {
  width: 1.25em;
  height: 1.25em;
  accent-color: var(--brand-accent);
  margin-right: 8px;
}
.cookie-modal .save {
  margin-top: 20px;
  background: var(--brand-accent);
  color: #fff;
  border-radius: 14px;
  padding: 10px 0;
  font-weight: bold;
  width: 100%;
  font-size: 1.08rem;
  transition: background 0.24s;
}
.cookie-modal .save:hover, .cookie-modal .save:focus {
  background: var(--brand-accent-dark);
}

/*-----------------------------------------
 SECTIONS & CARD STYLES
-----------------------------------------*/
section {
  background: var(--white);
}
section:last-of-type {
  margin-bottom: 32px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

/*-----------------------------------------
 UTILITIES (BADGES, MISC)
-----------------------------------------*/
.badge-accent {
  background: var(--brand-fun-coral);
  color: #fff;
  border-radius: 12px;
  font-size: 0.97em;
  font-weight: 600;
  padding: 2px 12px;
  display: inline-block;
  margin-left: 6px;
}

/*-----------------------------------------
 FOOTER
-----------------------------------------*/
footer {
  background: var(--brand-light);
  padding: 42px 0 18px 0;
  margin-top: 60px;
  font-size: 1rem;
}
footer .container {
  padding-bottom: 0px;
}

/*-----------------------------------------
 RESPONSIVE DESIGN (Mobile-first)
-----------------------------------------*/
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .trusted-icons {
    gap: 10px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.33rem; }
  .container {
    padding-left: 7px; padding-right: 7px;
  }
  .content-wrapper, .faq-list {
    gap: 16px;
  }
  .section {
    padding: 28px 6px;
    margin-bottom: 36px;
  }
  .testimonial-card, .feature-item, .faq-item, .doctor-card {
    padding: 15px 8px;
    border-radius: 13px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    border-radius: 0;
    font-size: 0.99em;
    padding-left: 6px; padding-right: 6px;
  }
  .footer-contact {
    flex-direction: column; align-items: flex-start; gap: 12px;
  }
}
@media (max-width: 600px) {
  .testimonial-card, .feature-item, .faq-item, .doctor-card, .card {
    margin-bottom: 18px;
    padding: 8px 5px;
  }
  .section {
    margin-bottom: 20px;
  }
  .cookie-modal {
    width: 98vw;
    padding: 18px 6px;
  }
}
@media (max-width: 400px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.07rem; }
}
.text-image-section {
  flex-direction: row;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/*-----------------------------------------
 PLAYFUL VISUAL TOUCHES
-----------------------------------------*/
.card, .doctor-card, .feature-item, .testimonial-card {
  border: 3px solid transparent;
  transition: border 0.18s, box-shadow 0.18s, transform 0.17s;
}
.card:hover, .doctor-card:hover, .feature-item:hover, .testimonial-card:hover {
  border: 3px solid var(--brand-fun-blue);
  box-shadow: 0 10px 34px 0 rgba(18,83,125,0.21);
  transform: scale(1.02) translateY(-2px);
}
.card:active, .doctor-card:active, .feature-item:active, .testimonial-card:active {
  border: 3px solid var(--brand-fun-coral);
}

img[src*="icon-"] {
  vertical-align: middle;
  height: 1.3em;
  margin-right: 7px;
  filter: drop-shadow(0 2px 4px rgba(39,164,235,0.16));
}
/* Fun underline for sections */
h2:after {
  content: '';
  display: block;
  width: 46px;
  height: 7px;
  background: var(--brand-fun-green);
  border-radius: 8px;
  margin-top: 7px;
  margin-bottom: 0px;
  animation: bounceIn 0.65s cubic-bezier(0.19, 1, 0.22, 1);
}

/*-----------------------------------------
 PRINT STYLES
-----------------------------------------*/
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-backdrop { display: none !important; }
  main, .container { padding: 0 !important; margin: 0 !important; }
}

/* End of playful_dynamic MediDirect Portal styles */