@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap");

/* ChancePay Care - Healthcare theme matching reference */
:root {
  --primary: #2b59ff;
  --primary-dark: #1e3fcc;
  --primary-light: #5b7fff;
  --sky: #e8f0ff;
  --sky-mid: #c5d8ff;
  --text: #4a5568;
  --text-dark: #1a202c;
  --text-light: #718096;
  --white: #ffffff;
  --grey-bg: #f7f9fc;
  --border: #e2e8f0;
  --gradient: linear-gradient(90deg, #2b59ff 0%, #5b9dff 100%);
  --shadow: 0 4px 24px rgba(43, 89, 255, 0.08);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.06);
  --radius: 8px;
  --radius-lg: 12px;
  --font: Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--grey-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
}

.section-title .underline {
  width: 60px;
  height: 4px;
  background: var(--gradient);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Top bar */
.top-bar {
  background: var(--primary);
  color: var(--white);
  font-size: 0.875rem;
  padding: 10px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-link img.logo-img {
  height: 100px;
  min-height: 100px;
  width: auto;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-main a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--primary);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white) !important;
  box-shadow: 0 4px 14px rgba(43, 89, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 89, 255, 0.45);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary) !important;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: var(--sky);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: -60px;
  position: relative;
  z-index: 2;
}

.feature-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--sky);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.75rem;
}

.feature-card h3 {
  color: var(--text-dark);
  margin-bottom: 12px;
  font-size: 1.15rem;
}

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col img {
  border-radius: var(--radius-lg);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text);
}

.check-list .check {
  color: var(--primary);
  font-weight: bold;
  flex-shrink: 0;
}

/* Stats */
.stats-bar {
  background: var(--gradient);
  padding: 50px 0;
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.25rem;
  margin-bottom: 6px;
}

.stat-item p {
  opacity: 0.9;
  font-size: 0.95rem;
}

/* Services list */
.service-list-item {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.service-list-item .icon-box {
  width: 56px;
  height: 56px;
  background: var(--sky);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Doctors */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.doctor-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s;
}

.doctor-card:hover {
  transform: translateY(-4px);
}

.doctor-card .photo {
  height: 280px;
  overflow: hidden;
}

.doctor-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-card .info {
  padding: 24px;
  text-align: center;
}

.doctor-card h3 {
  color: var(--text-dark);
  margin-bottom: 6px;
}

.doctor-card .role {
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.doctor-social {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.doctor-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.85rem;
}

/* Testimonial */
.testimonial-box {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 32px;
  align-items: center;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.testimonial-box .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 4px solid var(--sky-mid);
}

.testimonial-box blockquote {
  font-style: italic;
  color: var(--text);
  margin-bottom: 16px;
}

.testimonial-box cite {
  color: var(--primary);
  font-weight: 600;
  font-style: normal;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

.pricing-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: var(--white);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-card h3 {
  color: var(--text-dark);
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 700;
  margin: 20px 0;
}

.pricing-card .price small {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 400;
}

.pricing-card ul {
  text-align: left;
  margin: 24px 0 32px;
}

.pricing-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.pricing-card ul li::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.blog-card .thumb {
  height: 220px;
  overflow: hidden;
}

.blog-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card .body {
  padding: 24px;
}

.blog-card .date {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.blog-card h3 {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

/* Contact form */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.form-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group label .required {
  color: #e53e3e;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 89, 255, 0.15);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: #e53e3e;
}

.field-error {
  color: #e53e3e;
  font-size: 0.85rem;
  margin-top: 6px;
  display: none;
}

.field-error.show {
  display: block;
}

.form-group.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.form-group.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.form-group.checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
  cursor: pointer;
  line-height: 1.5;
}

.form-success {
  display: none;
  background: #c6f6d5;
  color: #22543d;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 500;
}

.form-success.show {
  display: block;
}

/* Partners */
.partners {
  background: var(--grey-bg);
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.partners-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  opacity: 0.5;
  filter: grayscale(100%);
}

.partner-placeholder {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-light);
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #1a2d6d 0%, #0f1f4d 100%);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-grid h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-grid p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid ul a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-grid ul a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-legal a:hover {
  color: var(--white);
}

.footer-logo {
  height: 44px;
  margin-bottom: 16px;
}

/* Page hero */
.page-hero {
  background: var(--sky);
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--text-dark);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 12px;
}

.breadcrumb {
  color: var(--text-light);
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--primary);
}

/* Content pages */
.content-page {
  padding: 60px 0 80px;
}

.content-page .prose {
  max-width: 900px;
  margin: 0 auto;
}

.content-page h2 {
  color: var(--text-dark);
  margin: 32px 0 16px;
  font-size: 1.5rem;
}

.content-page h3 {
  color: var(--text-dark);
  margin: 24px 0 12px;
  font-size: 1.2rem;
}

.content-page p,
.content-page li {
  margin-bottom: 14px;
}

.content-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

/* Doctor finder */
.filter-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.filter-bar .form-group {
  flex: 1;
  min-width: 180px;
  margin-bottom: 0;
}

.filter-bar .form-group.checkbox-group {
  flex: 1 1 100%;
  align-items: flex-start;
}

.filter-bar .btn {
  flex: 0 0 auto;
}

/* Responsive */
@media (max-width: 992px) {
  .hero .container,
  .two-col,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .stats-grid,
  .doctors-grid,
  .pricing-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial-box {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-main {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 24px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transition: right 0.3s;
    gap: 0;
  }

  .nav-main.open {
    right: 0;
  }

  .nav-main a {
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .header-cta {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 50px 0;
  }
}