/* ===================================
   Billing & RCM Pages Specific Styles
   =================================== */

/* Theme Colors (matching site palette) */
:root {
  --primary-blue: #1d4462;
  --primary-text: #222121;
  --accent-blue: #0078b6;
  --light-bg: #e4eaef;
  --white: #ffffff;
  --success-green: #6fbf73;
  --warning-orange: #ffa41e;
}

/* Prevent section overlap */
section {
  position: relative;
  z-index: 1;
  background-clip: padding-box;
  transform: none !important;
  will-change: auto !important;
}

.hero-home {
  z-index: 2;
}

.billing-section {
  position: relative;
  z-index: 3;
  isolation: isolate;
  transform: none !important;
}

/* Prevent AOS from affecting section positions */
section[data-aos] {
  transform: none !important;
}

/* Only allow transforms on child elements, not sections */
section > * {
  transform: translateZ(0);
}

/* Section Headings */
.billing-section-heading {
  color: #222121; /* Fallback */
  color: #222121; /* Fallback */
  color: var(--primary-text);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.billing-section-heading i {
  color: #0078b6; /* Fallback */
  color: #0078b6; /* Fallback */
  color: var(--accent-blue);
  margin-right: 0.75rem;
}

/* Icon Boxes */
.icon-box {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  transition: box-shadow 0.2s ease;
  background: #ffffff; /* Fallback */
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  height: 100%;
}

.icon-box:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.icon-box i {
  font-size: 3rem;
  color: #0078b6; /* Fallback */
  color: #0078b6; /* Fallback */
  color: var(--accent-blue);
  margin-bottom: 1rem;
  display: block;
}

.icon-box h4 {
  color: #222121; /* Fallback */
  color: #222121; /* Fallback */
  color: var(--primary-text);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.icon-box p {
  color: #222121; /* Fallback */
  color: #222121; /* Fallback */
  color: var(--primary-text);
  font-size: 0.95rem;
  margin-bottom: 0;
  opacity: 0.9;
}

/* Feature Cards with Icons */
.feature-card {
  background: #ffffff; /* Fallback */
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.feature-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.feature-card .feature-number {
  width: 50px;
  height: 50px;
  background:#dabda7;
  color: #ffffff; /* Fallback */
  color: #ffffff; /* Fallback */
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.feature-card .feature-content {
  flex: 1;
}

.feature-card h3 {
  color: #222121; /* Fallback */
  color: #222121; /* Fallback */
  color: var(--primary-text);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-card p,
.feature-card li {
  color: #222121; /* Fallback */
  color: #222121; /* Fallback */
  color: var(--primary-text);
  opacity: 0.9;
}

/* Accordion Styling */
.accordion-item {
  border: 1px solid rgba(29, 68, 98, 0.15);
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.accordion-button {
  background-color: #ffffff; /* Fallback */
  background-color: #ffffff; /* Fallback */
  color: var(--white);
  color: #222121; /* Fallback */
  color: #222121; /* Fallback */
  color: var(--primary-text);
  font-size: 1rem;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  text-align: left;
  width: 100%;
  border: none;
  transition: all 0.3s ease;
}

.accordion-button:hover {
  background-color: rgba(0, 120, 182, 0.05);
}

.accordion-button:not(.collapsed) {
  background-color: #0078b6; /* Fallback */
  background-color: var(--accent-blue);
  color: #ffffff; /* Fallback */
  color: var(--white);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: #0078b6; /* Fallback */
  border-color: var(--accent-blue);
}

.accordion-button::after {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  content: "\f078"; /* Font Awesome chevron-down */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222121;
  transition: transform .2s ease-in-out;
}

.accordion-button:not(.collapsed)::after {
  content: "\f078"; /* Font Awesome chevron-down */
  color: #ffffff;
  transform: rotate(-180deg);
}

.accordion-body {
  padding: 1.5rem;
  background-color: #ffffff; /* Fallback */
  background-color: #ffffff; /* Fallback */
  color: var(--white);
  color: #222121; /* Fallback */
  color: #222121; /* Fallback */
  color: var(--primary-text);
}

.accordion-body ul {
  margin-bottom: 0;
  padding-left: 1.5rem;
}

.accordion-body li {
  margin-bottom: 0.75rem;
  color: #222121; /* Fallback */
  color: #222121; /* Fallback */
  color: var(--primary-text);
  line-height: 1.6;
}

.accordion-body strong {
  color: #222121; /* Fallback */
  color: #222121; /* Fallback */
  color: var(--primary-text);
  font-weight: 600;
}

/* Stats/Numbers Display */
.stat-box {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #0078b6; /* Fallback */
  color: #0078b6; /* Fallback */
  color: var(--accent-blue);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: #222121; /* Fallback */
  color: #222121; /* Fallback */
  color: var(--primary-text);
  font-weight: 500;
}

/* Highlight Boxes */
.highlight-box {
  background: linear-gradient(135deg, #0078b6 0%, #1d4462 100%); /* Fallback */
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--primary-blue) 100%);
  color: #ffffff; /* Fallback */
  color: #ffffff; /* Fallback */
  color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 8px 24px rgba(29, 68, 98, 0.2);
}

.highlight-box h3 {
  color: #ffffff; /* Fallback */
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1rem;
}

.highlight-box p,
.highlight-box li {
  color: #ffffff; /* Fallback */
  color: var(--white);
  opacity: 0.95;
}

/* Icon List Styling */
.icon-list {
  list-style: none;
  padding-left: 0;
}

.icon-list li {
  padding-left: 2.5rem;
  position: relative;
  margin-bottom: 1rem;
  color: #222121; /* Fallback */
  color: var(--primary-text);
}

.icon-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #6fbf73; /* Fallback */
  color: var(--success-green);
  font-size: 1.2rem;
  top: 2px;
}

/* Negative/Problem Icon List */
.problem-list {
  list-style: none;
  padding-left: 0;
}

.problem-list li {
  padding-left: 2.5rem;
  position: relative;
  margin-bottom: 1rem;
  color: #222121; /* Fallback */
  color: var(--primary-text);
}

.problem-list li::before {
  content: "\f057";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #e74c3c;
  font-size: 1.2rem;
  top: 2px;
}

/* Problem Boxes */
.problem-box {
  background: #fff;
  border: 2px solid #e4eaef;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.problem-box:hover {
  border-color: #ff5b00;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.12);
}

.problem-box i {
  font-size: 2.5rem;
  color: #ff5b00;
  margin-bottom: 1rem;
  display: block;
}

.problem-box p {
  margin: 0;
  color: #222121; /* Fallback */
  color: var(--primary-text);
  font-size: 1rem;
}

.problem-box strong {
  color: #1d4462; /* Fallback */
  color: var(--primary-blue);
}

/* CTA Buttons Enhancement */
.btn-cta-custom {
  background: var(--warning-orange);
  color: #ffffff; /* Fallback */
  color: var(--white);
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(255, 164, 30, 0.3);
  display: inline-block;
  text-decoration: none;
}

.btn-cta-custom:hover {
  background: #e8903d;
  color: #ffffff; /* Fallback */
  color: var(--white);
  box-shadow: 0 4px 18px rgba(255, 164, 30, 0.4);
}

.btn-outline-custom {
  border: 2px solid var(--accent-blue);
  color: #0078b6; /* Fallback */
  color: var(--accent-blue);
  background: transparent;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background 0.2s ease, color 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-outline-custom:hover {
  background: #0078b6; /* Fallback */
  background: var(--accent-blue);
  color: #ffffff; /* Fallback */
  color: var(--white);
}

/* Pricing Badge */
.pricing-badge {
  background: #6fbf73; /* Fallback */
  background: var(--success-green);
  color: #ffffff; /* Fallback */
  color: var(--white);
  padding: 1.2rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.3rem;
  display: inline-block;
  margin: 1rem 0;

}

/* Section Divider */
.section-divider {
  width: 60px;
  height: 4px;
  background: #0078b6; /* Fallback */
  background: var(--accent-blue);
  margin: 1.5rem auto;
  border-radius: 2px;
}

/* Text Color Utilities for Billing Pages */
.text-billing-primary {
  color: var(--primary-text) !important;
}

.text-billing-accent {
  color: var(--accent-blue) !important;
}

.text-billing-white {
  color: var(--white) !important;
}

/* Hero Title on Billing Pages */
.billing-hero-title {
  color: #222121; /* Fallback */
  color: var(--primary-text);
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.billing-tagline {
  color: #222121; /* Fallback */
  color: var(--primary-text);
  font-size: 1.4rem;
  font-weight: 500;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 991px) {
  .icon-box {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .icon-box i {
    font-size: 2.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .feature-card .feature-number {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .billing-hero-title {
    font-size: 2.25rem;
  }
  
  .billing-tagline {
    font-size: 1.2rem;
  }
}

@media (max-width: 767px) {
  .billing-hero-title {
    font-size: 2rem;
  }
  
  .billing-tagline {
    font-size: 1.1rem;
  }
  
  .icon-box i {
    font-size: 2.25rem;
  }
  
  .icon-box h4 {
    font-size: 1rem;
  }
  
  .feature-card h3 {
    font-size: 1.3rem;
  }
  
  .feature-card .feature-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    margin-right: 0;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .btn-cta-custom,
  .btn-outline-custom {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    width: 100%;
    text-align: center;
  }
  
  .accordion-button {
    font-size: 0.95rem;
    padding: 1rem;
  }
  
  .accordion-body {
    padding: 1rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 575px) {
  .billing-hero-title {
    font-size: 1.75rem;
  }
  
  .billing-tagline {
    font-size: 1rem;
  }
  
  .icon-box {
    padding: 1.25rem 1rem;
  }
  
  .icon-box i {
    font-size: 2rem;
  }
  
  .highlight-box {
    padding: 1.5rem 1.25rem;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .pricing-badge {
    font-size: 1.1rem;
    padding: 1.2rem 1.2rem;
  }
}

/* Ensure proper spacing */
.billing-section {
  padding: 4rem 0;
}

@media (max-width: 767px) {
  .billing-section {
    padding: 3rem 0;
  }
}

/* Icon Colors - Make them pop */
.fa-check-circle,
.fa-check {
  color: var(--success-green) !important;
}

.fa-times-circle,
.fa-exclamation-circle {
  color: #e74c3c !important;
}

.fa-info-circle {
  color: var(--accent-blue) !important;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading state for accordions */
.accordion-button[aria-expanded="true"] {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--primary-blue) 100%);
}

