/* Medical Billing Page Styles */
/* Note: Relies on css/styles.css for base components */

/* 1. Hero Section */
.billing-hero {
    position: relative;
    height: 500px;
    background: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-1.2.1&auto=format&fit=crop&w=1600&q=80') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(82, 34, 88, 0.9), rgba(26, 5, 37, 0.95));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.sub-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--accent-color);
    /* Make it distinct using accent color */
    box-shadow: none;
    backdrop-filter: none;
    text-shadow: none;
}

.sub-badge::before {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: #ffffff;
    /* subtle drop shadow to lift it off the BG */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

/* Highlight "Billing" or specific words if wrapped in span, otherwise just glow */
.hero-content p {
    font-size: 20px;
    font-weight: 500;
    color: #e0e0e0;
    /* Lighter grey for better readability */
    margin-bottom: 45px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Primary Button - Pop! */
.hero-btns .btn-primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 10px 20px rgba(240, 124, 36, 0.4);
    /* Glow effect */
    padding: 15px 40px;
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-btns .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(240, 124, 36, 0.6);
}

/* Secondary Button - Visible & Elegant */
.btn-outline-white {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 18px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: #fff;
    border-color: #fff;
    color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

/* 2. Billing Details (Zig Zag) */
.billing-details-section {
    padding: 100px 0;
    background: radial-gradient(circle at 0% 0%, #f7f8fc 0%, #ffffff 100%);
    overflow: hidden;
    position: relative;
}

/* Decorative Background Elements */
.billing-details-section::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(106, 27, 154, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.billing-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
    position: relative;
    z-index: 1;
}

.billing-row:last-child {
    margin-bottom: 0;
}

.billing-row.reverse-layout {
    flex-direction: row-reverse;
}

/* Visual Side */
.billing-visual {
    flex: 1;
    position: relative;
    border-radius: 24px;
    /* Create a multi-layer depth effect */
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.08),
        -5px -5px 20px rgba(255, 255, 255, 0.8);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.billing-visual::after {
    content: '';
    position: absolute;
    inset: -15px;
    border: 2px solid rgba(106, 27, 154, 0.1);
    border-radius: 30px;
    z-index: -1;
    transition: inset 0.4s ease;
}

.billing-visual:hover {
    transform: translateY(-5px);
    box-shadow: 25px 25px 70px rgba(0, 0, 0, 0.12);
}

.billing-visual:hover::after {
    inset: -20px;
    border-color: rgba(106, 27, 154, 0.2);
}

.billing-visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

.visual-badge {
    position: absolute;
    bottom: 40px;
    right: -20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 18px 30px;
    border-radius: 16px;
    font-weight: 700;
    /* Glassmorphism Effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.visual-badge i {
    color: var(--accent-color);
    font-size: 20px;
}

.visual-badge.warning-badge {
    right: auto;
    left: -20px;
    bottom: 40px;
}

/* Text Side */
.billing-text {
    flex: 1;
}

.billing-text h2 {
    font-size: 42px;
    margin-bottom: 25px;
    position: relative;
    font-weight: 800;
    line-height: 1.2;
    /* Gradient Text */
    background: linear-gradient(135deg, var(--text-dark) 0%, #4a148c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.billing-text p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 35px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature-list li i {
    color: #fff;
    font-size: 14px;
    /* Gradient Icon Background */
    background: linear-gradient(135deg, var(--accent-color), #ff9f43);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(240, 124, 36, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .billing-hero {
        height: 400px;
    }

    .billing-hero h1 {
        font-size: 32px;
    }

    .billing-row,
    .billing-row.reverse-layout {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
    }

    .billing-visual,
    .billing-text {
        width: 100%;
        flex: auto;
    }

    .billing-text h2 {
        font-size: 28px;
    }
}

/* 3. Unique Payment Posting Card Style (New Redesign) */
.payment-posting-container {
    display: block !important;
    /* Override flex from billing-row */
    max-width: 100%;
}

.payment-card {
    background: linear-gradient(135deg, #1a0525 0%, #3a0d50 100%);
    border-radius: 30px;
    padding: 60px;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 30px 60px rgba(42, 10, 56, 0.3);
}

/* Abstract Background Shapes for Card */
.payment-card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%);
    border-radius: 50%;
}

.payment-card::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(240, 124, 36, 0.1), transparent 70%);
    border-radius: 50%;
}

.payment-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.payment-text {
    flex: 1;
}

.payment-text h2.light-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
}

.payment-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    margin-bottom: 40px;
}

.payment-badges-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.payment-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 140px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.payment-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.payment-badge i {
    font-size: 24px;
    color: var(--accent-color);
}

.payment-badge span {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.payment-visual-side {
    flex: 0.8;
    position: relative;
}

.payment-visual-side img {
    width: 100%;
    border-radius: 20px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.floating-stat {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.floating-stat .stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
}

.floating-stat .stat-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 1px;
    font-weight: 600;
}

@media (max-width: 992px) {
    .payment-content {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .payment-visual-side {
        width: 100%;
    }

    .floating-stat {
        left: 20px;
        bottom: 20px;
    }
}

/* 4. Onboarding Process Section */
.onboarding-section {
    padding: 100px 0;
    background: #fdfdfd;
    position: relative;
    overflow: hidden;
}

/* Timeline Container */
.onboarding-timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    position: relative;
    gap: 20px;
}

/* Connecting Line */
.onboarding-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    z-index: 1;
    border-radius: 4px;
}

.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    padding: 0 10px;
}

/* Icon Bubble */
.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: #fff;
    border: 4px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.timeline-step:hover .step-icon {
    transform: translateY(-10px);
    background: var(--accent-color);
    color: #fff;
}

/* Content */
.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.step-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive Timeline (Stack on Mobile) */
@media (max-width: 992px) {
    .onboarding-timeline {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 30px;
    }

    .onboarding-timeline::before {
        width: 4px;
        height: 100%;
        left: 30px;
        /* Align vertical line */
        top: 0;
    }

    .timeline-step {
        display: flex;
        text-align: left;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 40px;
    }

    .step-icon {
        margin: 0;
        /* Remove auto centering margins */
        min-width: 60px;
        /* Specific sizing for alignment */
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

/* 5. Billing Challenges Section (Dark Theme) */
.challenges-section {
    position: relative;
    padding: 100px 0;
    /* Dark background + Network/Tech Image Overlay (Reference Style) */
    background: linear-gradient(rgba(15, 5, 24, 0.94), rgba(15, 5, 24, 0.97)),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect for elegance */
    overflow: hidden;
}

/* Header Adjustments for Dark Mode */
.challenges-section .section-header h2 {
    color: #fff;
}

.challenges-section .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.text-gradient-gold {
    background: linear-gradient(135deg, #ffd700 0%, #f07c24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-divider {
    background: linear-gradient(90deg, transparent, #f07c24, transparent);
    height: 3px;
    width: 100px;
}

/* Carousel Layout */
.challenges-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 60px;
    /* Space for buttons */
}

.challenges-track-container {
    overflow: hidden;
    width: 100%;
    /* Added padding to prevent hover effect clipping */
    padding: 20px 10px;
    margin: -20px -10px;
    /* Negative margin to offset padding visually if needed, but simple padding is safer */
}

.challenges-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    gap: 30px;
}

/* Card Style Updates for Carousel */
.challenge-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    /* Flex settings for 3 items per view */
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px;
}

.challenge-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(240, 124, 36, 0.5);
}

/* Responsive Grid/Carousel */
@media (max-width: 992px) {
    .challenge-card {
        flex: 0 0 calc(50% - 15px);
        /* 2 items */
    }
}

@media (max-width: 768px) {
    .challenge-card {
        flex: 0 0 100%;
        /* 1 item */
        min-width: 100%;
    }

    .challenges-carousel-wrapper {
        padding: 0;
        /* Remove side padding on mobile */
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.5);
        /* Stronger bg for visibility */
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }
}

/* Icon */
.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.challenge-card:hover .card-icon {
    background: var(--accent-color);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

/* Text */
.challenge-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.challenge-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .challenges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .challenges-grid {
        grid-template-columns: 1fr;
    }
}

/* 6. Sales Funnel Section */
/* 6. Sales Funnel Section - Light Theme for Contrast */
.funnel-section {
    padding: 100px 0;
    /* Light Background with Doctor/Clinic Context Image */
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.85)),
        url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Background Decoration - Subtle Shapes */
.funnel-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(240, 124, 36, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.funnel-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
}

/* Left Side Content - Updated for Light Bg */
.funnel-content {
    flex: 1;
    color: #333;
    /* Dark text */
}

.funnel-content h2 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a0b2e;
    /* Dark Purple Heading */
}

.funnel-content p {
    font-size: 18px;
    color: #666;
    /* Grey text */
    margin-bottom: 30px;
    max-width: 500px;
}

.funnel-benefits {
    list-style: none;
    padding: 0;
}

.funnel-benefits li {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.funnel-benefits li i {
    color: var(--accent-color);
    /* Gold/Orange */
    font-size: 20px;
}

/* Right Side Form Card */
/* Right Side Form Card - Now Dark to POP */
/* Right Side Form Card - Clean Light Medical Look */
.funnel-form-card {
    flex: 0 0 650px;
    /* White Glass Effect */
    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(26, 11, 46, 0.15);
    /* Soft dark shadow */
    position: relative;
    overflow: hidden;
}

/* Gold Top Border - Kept for branding */
.funnel-form-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #f07c24, transparent);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h3 {
    color: #1a0b2e;
    /* Dark Purple Text */
    font-size: 24px;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    /* Grey Text */
    font-size: 14px;
}

/* Form Styles */
.premium-form .form-group {
    margin-bottom: 20px;
}

.form-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.premium-form label {
    display: block;
    color: #333;
    /* Dark Label */
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.premium-form .form-control {
    width: 100%;
    padding: 12px 15px;
    background: #f8f9fa;
    /* Light Input Bg */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #333;
    /* Dark Input Text */
    font-size: 16px;
    transition: all 0.3s ease;
}

/* Responsive Mobile Polish (Max Width 768px) */
@media (max-width: 768px) {

    /* Hero Adjustments */
    .billing-hero h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .hero-btns .btn,
    .hero-btns .btn-outline-white {
        width: 100%;
    }

    /* General Section Padding */
    .billing-details-section,
    .challenges-section,
    .funnel-section,
    .onboarding-section {
        padding: 60px 0;
    }

    /* Payment Card Mobile */
    .payment-card {
        padding: 30px 20px;
    }

    .payment-text h2.light-title {
        font-size: 28px;
    }

    .payment-badges-grid {
        gap: 10px;
    }

    .payment-badge {
        width: 100%;
        min-width: auto;
    }

    /* Onboarding Timeline */
    .onboarding-timeline {
        padding-left: 0;
        margin-top: 40px;
    }

    .onboarding-timeline::before {
        left: 29px;
        /* Align with icon center (60px width / 2 - 2px border) */
        top: 30px;
    }

    .timeline-step {
        gap: 15px;
    }

    /* Funnel Section Mobile */
    .funnel-content h2 {
        font-size: 32px;
    }

    .funnel-form-card {
        padding: 25px;
    }

    .form-grid-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-header h3 {
        font-size: 20px;
    }
}

.btn-glow {
    box-shadow: 0 0 20px rgba(240, 124, 36, 0.4);
    font-size: 16px;
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(240, 124, 36, 0.6);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .funnel-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .funnel-content p,
    .funnel-content h2 {
        margin-left: auto;
        margin-right: auto;
    }

    .funnel-benefits {
        display: inline-block;
        text-align: left;
    }

    .funnel-form-card {
        width: 100%;
        max-width: 650px;
        flex: none;
    }
}