/* ACE Medical Billing - Layout & UI Refinements */

/* Readable text over hero and page-banner images */
.cs_ace_hero_slider .cs_hero_style_1 {
  min-height: 720px;
}

.cs_ace_hero_slider .cs_hero_content {
  max-width: 850px;
  padding: 30px 38px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 45px rgba(5, 27, 63, 0.18);
}

.cs_ace_hero_slider .cs_hero_title,
.cs_ace_hero_slider .cs_hero_desc {
  color: #0b2c3d;
  text-shadow: none;
}

.cs_ace_hero_slider .cs_hero_title {
  font-size: clamp(48px, 3.5vw, 68px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.cs_ace_hero_slider .cs_hero_desc {
  margin-bottom: 28px;
}

.cs_ace_hero_slider .cs_hero_content.cs_white_color {
  background: rgba(5, 27, 63, 0.94);
}

.cs_ace_hero_slider .cs_hero_content.cs_white_color .cs_hero_title,
.cs_ace_hero_slider .cs_hero_content.cs_white_color .cs_hero_desc {
  color: #fff;
}

.cs_page_header_style_1 {
  position: relative;
  isolation: isolate;
  padding: 210px 0 105px;
}

.cs_page_header_style_1::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 27, 63, 0.88), rgba(5, 27, 63, 0.58));
}

.cs_page_header_style_1 .cs_page_header_title,
.cs_page_header_style_1 .cs_breadcrumb .breadcrumb-item,
.cs_page_header_style_1 .cs_breadcrumb .breadcrumb-item a,
.cs_page_header_style_1 .cs_breadcrumb .breadcrumb-item.active,
.cs_page_header_style_1 .cs_breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.cs_page_header_style_1 .cs_breadcrumb .breadcrumb-item a:hover {
  color: #ffb7b3;
}

/* Keep the About Us testimonial marquee in normal document flow.
   Without a reserved height, the following audit form can slide underneath it. */
.cs_testimonial_section_5 .swiper {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.cs_testimonial_section_5 .swiper-wrapper {
  align-items: stretch;
}

.cs_testimonial_section_5 .swiper-slide {
  height: auto;
}

/* The original Section 3 template offsets the form over a map column.
   The About Us audit form has no map, so it must remain below testimonials. */
.cs_about_audit_section .cs_appointment_right {
  margin-top: 0;
}

@media (max-width: 767px) {
  .cs_ace_hero_slider .cs_hero_style_1 {
    min-height: 620px;
  }

  .cs_ace_hero_slider .cs_hero_content {
    width: 100%;
    padding: 28px 22px;
  }

  .cs_ace_hero_slider .cs_hero_title {
    font-size: clamp(34px, 9vw, 48px);
  }

  .cs_page_header_style_1 {
    padding: 155px 0 65px;
  }

  .cs_testimonial_section_5 .swiper {
    min-height: 330px;
  }
}

/* Logo & Header */
.cs_logo_brand img {
  display: block;
  width: 170px;
  height: auto;
  max-height: 70px;
  object-fit: contain;
}

.cs_main_header_in {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Base Spacing & Section Padding */
.cs_section_padding {
  padding: 80px 0;
}

.cs_section_padding_top {
  padding-top: 80px;
}

.cs_section_padding_bottom {
  padding-bottom: 80px;
}

@media (max-width: 991px) {
  .cs_section_padding {
    padding: 60px 0;
  }
  .cs_section_padding_top {
    padding-top: 60px;
  }
  .cs_section_padding_bottom {
    padding-bottom: 60px;
  }
}

@media (max-width: 575px) {
  .cs_section_padding {
    padding: 45px 0;
  }
  .cs_logo_brand img {
    width: 155px;
  }
}

/* Service & Feature Cards */
.cs_service_card_4 {
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cs_service_card_4:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(11, 44, 61, 0.08);
}

.cs_service_card_4 .cs_card_body {
  padding: 30px 28px 24px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.cs_service_card_4 .cs_card_desc {
  flex-grow: 1;
  color: #596a75;
  line-height: 1.6;
}

.cs_card_tags {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs_card_tags li {
  display: inline-flex;
  align-items: center;
  background: #edf3f7;
  color: #1a4459;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(13, 110, 253, 0.08);
}

.cs_card_tags.cs_accent_tags li {
  background: rgba(226, 62, 56, 0.08);
  color: #c92a24;
  border-color: rgba(226, 62, 56, 0.15);
}

/* Specialty Cards */
.cs_specialty_card {
  background: #ffffff;
  border: 1px solid #e7edf0;
  border-radius: 16px;
  padding: 32px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.cs_specialty_card:hover {
  transform: translateY(-5px);
  border-color: #0b2c3d;
  box-shadow: 0 16px 36px rgba(11, 44, 61, 0.08);
}

.cs_specialty_card .cs_specialty_header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.cs_specialty_card .cs_specialty_icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f6fa;
}

.cs_specialty_card .cs_specialty_icon img {
  width: 28px;
  height: 28px;
}

.cs_specialty_card .cs_specialty_title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #0b2c3d;
}

.cs_specialty_card .cs_specialty_rules {
  background: #f8fafb;
  border-left: 3px solid #e23e38;
  padding: 12px 14px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-size: 13.5px;
  color: #495e6b;
}

.cs_specialty_card .cs_specialty_features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex-grow: 1;
}

.cs_specialty_card .cs_specialty_features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #556873;
  margin-bottom: 8px;
  line-height: 1.5;
}

.cs_specialty_card .cs_specialty_features li i {
  color: #27ae60;
  margin-top: 4px;
  font-size: 13px;
}

/* Forms & Inputs */
.cs_input_wrap {
  padding: 10px 16px;
  border: 1px solid #dbe3e8;
  transition: border-color 0.2s ease;
}

.cs_input_wrap:focus-within {
  border-color: #0b2c3d;
}

.cs_input_wrap label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c7f8a;
  margin-bottom: 4px;
}

.cs_form_field {
  border: none;
  background: transparent;
  width: 100%;
  padding: 4px 0;
  color: #0b2c3d;
  font-size: 15px;
  font-weight: 500;
  outline: none;
}

.cs_form_field:focus {
  outline: none;
}

textarea.cs_form_field {
  resize: vertical;
  min-height: 80px;
}

/* RPM / CCM Booking Block */
.cs_rpm_booking {
  padding: 48px;
  margin-top: 40px;
  border: 1px solid #e2eaef;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.04);
}

.cs_rpm_booking label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #0b2c3d;
}

.cs_rpm_booking .cs_form_field {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid #d8dfe4;
  border-radius: 6px;
  background: #ffffff;
}

.cs_rpm_booking textarea.cs_form_field {
  min-height: 110px;
}

@media (max-width: 767px) {
  .cs_rpm_booking {
    padding: 24px 18px;
  }
}

/* Metrics & Metric Badges */
.cs_metric_badge_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.cs_metric_badge_item {
  background: #f0f6fa;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.cs_metric_badge_item .cs_metric_val {
  font-size: 28px;
  font-weight: 700;
  color: #0b2c3d;
  line-height: 1.1;
  margin-bottom: 4px;
}

.cs_metric_badge_item .cs_metric_lbl {
  font-size: 12.5px;
  font-weight: 500;
  color: #556873;
}

/* Policy & HIPAA Content */
.cs_policy_block {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e7edf0;
}

.cs_policy_block:last-child {
  border-bottom: none;
}

.cs_policy_note {
  background: #fdf5e6;
  border-left: 4px solid #f39c12;
  padding: 18px 20px;
  border-radius: 0 8px 8px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cs_policy_note i {
  color: #f39c12;
  font-size: 20px;
  margin-top: 2px;
}

/* Footer refinements */
.cs_site_footer {
  padding-top: 0;
  background: #081d28;
}

.cs_site_footer .cs_section_padding {
  padding: 64px 0 40px;
}

.cs_site_footer .cs_footer_brand {
  margin-bottom: 16px;
}

.cs_site_footer .cs_footer_widget_title {
  font-size: 25px;
  line-height: 1.2;
}

.cs_site_footer .cs_footer_widget_nav {
  gap: 10px;
}

.cs_site_footer .cs_footer_widget_nav a {
  color: #aab8c6;
}

.cs_site_footer .cs_footer_widget_nav a:hover {
  color: #fff;
}

.cs_site_footer .cs_footer_widget_title {
  margin-bottom: 20px;
}

.cs_site_footer .cs_footer_bottom_content {
  margin-top: 0;
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.cs_site_footer .cs_social_btns_style_1 {
  margin-top: 18px;
}

@media (max-width: 991px) {
  .cs_site_footer .cs_section_padding {
    padding: 50px 0 30px;
  }
}

@media (max-width: 575px) {
  .cs_site_footer .cs_section_padding {
    padding: 40px 0 24px;
  }

  .cs_site_footer .cs_footer_bottom_content {
    justify-content: center;
    text-align: center;
  }

  .cs_site_footer .cs_footer_bottom_nav {
    justify-content: center;
    flex-wrap: wrap;
  }
}

.cs_contact_hours_list li,
.cs_contact_dept_list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(11, 44, 61, 0.12);
  font-size: 14px;
}

.cs_contact_hours_list li:last-child,
.cs_contact_dept_list li:last-child {
  border-bottom: none;
}

.cs_compare_wrap { border: 1px solid #dfe8ed; border-radius: 16px; box-shadow: 0 12px 35px rgba(11,44,61,.07); }
.cs_compare_table th, .cs_compare_table td { padding: 17px 20px; vertical-align: middle; }
.cs_compare_table thead th { background: #0b2c3d; color: #fff; border: 0; }
.cs_compare_table th:last-child, .cs_compare_table td:last-child { background: #f0f8f7; font-weight: 600; }
.cs_compare_table td:last-child i { color: #1b9b86; margin-right: 7px; }
.cs_platform_panel { background: #f4f8fa; padding: 30px; border-radius: 16px; }
.cs_platform_list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 16px; }
.cs_platform_list span { background: #fff; border: 1px solid #d9e3e8; border-radius: 999px; padding: 9px 16px; font-weight: 600; color: #0b2c3d; }
.cs_trust_strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; color: #0b2c3d; font-weight: 600; }
.cs_trust_strip span::before { content: '\2713'; color: #1b9b86; margin-right: 8px; }
.cs_specialty_link_grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.cs_specialty_link_grid a { display:flex; justify-content:space-between; align-items:center; padding:16px 18px; border:1px solid #dfe8ed; border-radius:10px; background:#fff; color:#0b2c3d; font-weight:600; }
.cs_specialty_link_grid a:hover { border-color:#1b9b86; color:#1b9b86; }
.cs_mobile_audit_cta { display:none; position:fixed; z-index:999; left:14px; right:14px; bottom:14px; padding:14px 18px; border-radius:999px; background:#d94545; color:#fff; text-align:center; font-weight:700; box-shadow:0 8px 28px rgba(0,0,0,.25); }
@media (max-width:767px) { .cs_specialty_link_grid { grid-template-columns:1fr; } .cs_mobile_audit_cta { display:block; } body { padding-bottom:70px; } }

/* RPM/CCM single-page landing hero */
.cs_site_header[aria-label="RPM CCM header"] {
  background: rgba(255,255,255,.96);
  border-top: 3px solid #1b9b86;
  box-shadow: 0 8px 30px rgba(11,44,61,.08);
  backdrop-filter: blur(14px);
}
.cs_site_header[aria-label="RPM CCM header"] .cs_main_header_in { height: 92px; }
.cs_site_header[aria-label="RPM CCM header"] .cs_logo_brand img { width: 185px; }
.cs_site_header[aria-label="RPM CCM header"] .cs_btn_style_1,
.cs_site_header[aria-label="RPM CCM header"] .cs_btn_style_2 { min-height: 50px; }
.cs_rpm_landing_hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  display: flex;
  align-items: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.cs_rpm_landing_hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 39%, rgba(255,255,255,.38) 58%, rgba(255,255,255,0) 76%);
}
.cs_rpm_hero_content { max-width: 680px; padding: 155px 0 80px; }
.cs_rpm_eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(217,69,69,.1);
  color: #d94545;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cs_rpm_hero_content h1 {
  max-width: 700px;
  margin-bottom: 22px;
  color: #0b2c3d;
  font-size: clamp(42px, 3.4vw, 62px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.cs_rpm_hero_content h1 span { color: #d94545; }
.cs_rpm_hero_content > p { max-width: 660px; margin-bottom: 30px; color: #405765; font-size: 18px; line-height: 1.75; }
.cs_rpm_hero_actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; }
.cs_rpm_call_link { display: inline-flex; align-items: center; gap: 12px; color: #0b2c3d; font-weight: 700; line-height: 1.25; }
.cs_rpm_call_link > i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #eaf4f3; color: #1b9b86; }
.cs_rpm_call_link span { display: flex; flex-direction: column; }
.cs_rpm_call_link small { color: #667985; font-size: 11px; font-weight: 500; }
.cs_rpm_hero_checks { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 30px 0 0; padding: 0; list-style: none; color: #294755; font-size: 14px; font-weight: 600; }
.cs_rpm_hero_checks i { margin-right: 6px; color: #1b9b86; }
.cs_rpm_trust_strip { position: relative; z-index: 2; background: #0b2c3d; color: #fff; box-shadow: 0 12px 35px rgba(11,44,61,.16); }
.cs_rpm_trust_strip .row > div { padding: 25px 15px; border-right: 1px solid rgba(255,255,255,.13); }
.cs_rpm_trust_strip .row > div:last-child { border-right: 0; }
.cs_rpm_trust_strip strong, .cs_rpm_trust_strip span { display: block; }
.cs_rpm_trust_strip strong { color: #fff; font-size: 21px; }
.cs_rpm_trust_strip span { margin-top: 2px; color: rgba(255,255,255,.68); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.cs_site_footer .cs_footer_brand img { padding: 7px 10px; border-radius: 6px; background: #fff; }

@media (max-width: 991px) {
  .cs_rpm_landing_hero { min-height: 620px; background-position: 62% center; }
  .cs_rpm_landing_hero::before { background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.93) 58%, rgba(255,255,255,.58) 100%); }
  .cs_rpm_hero_content { max-width: 650px; }
  .cs_site_header[aria-label="RPM CCM header"] .cs_main_header_in { height: 82px; }
}
@media (max-width: 767px) {
  .cs_rpm_landing_hero { min-height: auto; background-position: 70% center; }
  .cs_rpm_landing_hero::before { background: rgba(255,255,255,.93); }
  .cs_rpm_hero_content { padding: 125px 0 60px; }
  .cs_rpm_hero_content h1 { font-size: clamp(38px, 11vw, 52px); }
  .cs_rpm_hero_content > p { font-size: 16px; line-height: 1.65; }
  .cs_rpm_hero_actions { align-items: flex-start; flex-direction: column; }
  .cs_rpm_hero_checks { flex-direction: column; gap: 8px; }
  .cs_rpm_trust_strip .row > div { padding: 18px 8px; border-bottom: 1px solid rgba(255,255,255,.13); }
  .cs_rpm_trust_strip .row > div:nth-child(2) { border-right: 0; }
  .cs_site_header[aria-label="RPM CCM header"] .cs_logo_brand img { width: 142px; }
  .cs_site_header[aria-label="RPM CCM header"] .cs_header_btns_wrapper .cs_btn_style_1 { min-height: 44px; padding: 10px 14px; font-size: 13px; }
  .cs_site_header[aria-label="RPM CCM header"] .cs_header_btns_wrapper .cs_btn_style_1 img { display: none; }
}
