/* RCM Services Page Styles */
/* Inherits from medical-billing.css for core layout, overriding where necessary */

/* 1. Denial Hero Customization */
/* 1. Denial Hero Customization */
/* 1. Denial Hero Customization */
section.denial-hero {
    background: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&q=80&w=1600') center/cover no-repeat fixed !important;
}

/* Reduced Overlay Opacity to show image */
.denial-hero .hero-overlay {
    background: linear-gradient(135deg, rgba(82, 34, 88, 0.6), rgba(15, 5, 20, 0.6));
}

/* 1b. Audit Hero Customization */
section.audit-hero {
    background: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&q=80&w=1600') center/cover no-repeat fixed !important;
}

.audit-hero .hero-overlay {
    background: linear-gradient(135deg, rgba(30, 50, 80, 0.9), rgba(10, 20, 30, 0.9));
    /* Deep Blue/Navy for Trust */
}

/* 1.5 Stats Strip Section */
.stats-strip {
    /* Minimalist Background */
    background: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    color: var(--text-dark);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    z-index: 5;
    margin-top: 0;
    border-bottom: 1px solid #eee;
}

/* Remove Wave Pattern Overlay */
.stats-strip::before {
    display: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: flex-start;
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 80px;
    height: 80px;
    /* Pop Style: Vivid Gradient Background */
    background: linear-gradient(135deg, #4a148c 0%, #7b1fa2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    /* White icon glyph */
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(74, 20, 140, 0.3);
    border: 4px solid #f3e5f5;
    /* Light purple ring for definition */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-item:hover .stat-icon {
    background: linear-gradient(135deg, #ffd700 0%, #ffca28 100%);
    color: #4a148c;
    /* Purple text on hover */
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.4);
    border-color: #fff8e1;
}

.stat-item h4 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    color: #333;
    /* Dark text for readability */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Override Spacing for RCM, Denial & Audit Hero */
.rcm-hero .hero-content,
.denial-hero .hero-content,
.audit-hero .hero-content {
    max-width: 950px;
    padding: 0 20px;
}

.rcm-hero .hero-content h1,
.denial-hero .hero-content h1,
.audit-hero .hero-content h1 {
    margin-bottom: 30px;
    font-size: 56px;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.rcm-hero .hero-content p,
.denial-hero .hero-content p,
.audit-hero .hero-content p {
    margin-bottom: 50px;
    font-size: 20px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.rcm-hero .hero-btns,
.denial-hero .hero-btns,
.audit-hero .hero-btns {
    gap: 25px;
    margin-top: 10px;
}

.rcm-hero .btn-primary,
.denial-hero .btn-primary,
.audit-hero .btn-primary {
    padding: 16px 45px;
    font-size: 18px;
    font-weight: 600;
}

.rcm-hero .btn-outline-white,
.denial-hero .btn-outline-white,
.audit-hero .btn-outline-white {
    padding: 16px 45px;
    font-size: 18px;
    font-weight: 600;
}

/* 2. Modern "Comprehensive RCM Solutions" Section */
.challenges-section {
    position: relative;
    padding: 120px 0;
    /* Deep Rich Gradient Background */
    background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 100%);
    overflow: hidden;
    color: #fff;
}

/* Abstract Background Shapes */
.challenges-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(240, 124, 36, 0.08), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.challenges-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.challenges-section .container {
    position: relative;
    z-index: 2;
}

/* Modern Typography for Section Header */
.challenges-section .section-header h2 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.challenges-section .section-header h2 span.text-gradient-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.challenges-section .section-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layout Updates (Replacing Carousel) */
.challenges-carousel-wrapper {
    margin-top: 60px;
    position: relative;
    padding: 0;
    max-width: 1200px;
    /* Increased to fit 3 columns */
    margin-left: auto;
    margin-right: auto;
}

.challenges-track-container {
    /* Reset scroll properties */
    overflow: visible;
    padding: 0;
    margin: 0;
}

.challenges-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns */
    gap: 30px;
    width: 100%;
}

/* Hide Carousel Buttons */
.carousel-btn {
    display: none !important;
}

/* Refined Glassmorphism Cards */
.challenge-card {
    /* Reset layout sizing */
    flex: auto;
    width: auto;
    min-width: 0;

    /* Visual Style */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.challenge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.challenge-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2);
    z-index: 2;
}

.challenge-card:hover::before {
    opacity: 1;
}

/* Animated Icons */
.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    /* Slight rounded square */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    /* Gradient Icon Color */
    color: #ffd700;
    /* Fallback */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.card-icon i {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    /* Shadow for depth */
}

.challenge-card:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4), inset 0 0 10px rgba(255, 215, 0, 0.2);
}

/* Card Text */
.challenge-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.challenge-card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* Responsive Grid Adjustments */
@media (max-width: 1200px) {
    .challenges-track {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns on Tablet */
    }
}

@media (max-width: 768px) {
    .challenges-track {
        grid-template-columns: 1fr;
        /* 1 Column on Mobile */
        gap: 20px;
    }

    .challenges-section {
        padding: 80px 0;
    }

    .challenges-carousel-wrapper {
        margin-top: 40px;
    }
}


/* 3. FAQ Section Styles (Consolidated) */
.faq-section {
    padding: 100px 0;
    background: #fff;
}

.faq-container {
    max-width: 850px;
    margin: 50px auto 0;
}

.faq-item {
    border: 1px solid #eee;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: background 0.3s ease;
}

.faq-question h4 {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    color: var(--text-dark);
}

.faq-question i {
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
    background: #fdfdfd;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    /* Optional: different icon behavior */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: #fdfdfd;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 25px 25px 25px;
    border-top: 1px solid #f0f0f0;
}

.faq-answer p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}


/* 5. EHR Section Styles */
.ehr-section {
    padding: 100px 0;
}

.ehr-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.ehr-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100px;
}

.ehr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.ehr-card img {
    max-width: 80%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.ehr-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 992px) {
    .ehr-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ehr-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

.testimonials-slider-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.quote-icon {
    font-size: 50px;
    color: var(--accent-color);
    margin-bottom: 25px;
    opacity: 0.2;
}

.testimonial-text {
    font-size: 22px;
    font-style: normal;
    line-height: 1.7;
    color: #333;
}

.testimonial-slide {
    display: none;
    animation: fadeIn 0.6s ease;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-content {
    flex: 1.2;
    text-align: left;
}

.testimonial-image {
    flex: 0.8;
    max-width: 350px;
}

.image-frame.blob-shape {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    overflow: hidden;
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.15);
    border: 8px solid #fff;
}

.image-frame img {
    width: 100%;
    display: block;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 50px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(240, 124, 36, 0.4);
}

@media (max-width: 992px) {
    .testimonials-slider-layout {
        flex-direction: column-reverse;
        text-align: center;
    }

    .testimonial-content {
        text-align: center;
    }

    .testimonial-image {
        margin: 0 auto;
    }
}

/* Funnel Form - Same horizontal style as Specialties */
.funnel-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.funnel-content {
    flex: 1;
}

.funnel-form-card {
    flex: 0 0 650px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(59, 13, 64, 0.15);
    position: relative;
    overflow: hidden;
}

.funnel-form-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #f07c24, transparent);
}

.form-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.premium-form .form-group {
    margin-bottom: 20px;
}

.premium-form select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b0d40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

@media (max-width: 992px) {
    .funnel-wrapper {
        flex-direction: column;
    }
    .funnel-form-card {
        flex: none;
        width: 100%;
        max-width: 650px;
    }
}

@media (max-width: 768px) {
    .funnel-form-card {
        padding: 25px;
    }
    .form-grid-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}