/* Cardiology Billing Page Styles (Standardized) */
:root {
    --brand-purple: #3b0d40;
    --brand-orange: #f07c24;
    --brand-orange-light: #fff0e0;
    --text-dark: #2d3748;
    --text-grey: #718096;
    --bg-light: #f8fafc;
}

/* 1. Hero Section (Matches Medical Billing Page) */
.cardio-hero {
    position: relative;
    height: 60vh;
    /* Reduced height like other inner pages usually are */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    /* Cardiology Themed Background (Heart/ECG) */
    background: url('https://images.unsplash.com/photo-1628348070889-cb656235b4eb?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Standard Overlay */
    background: linear-gradient(135deg, rgba(59, 13, 64, 0.9), rgba(28, 6, 30, 0.85));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.sub-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.cardio-hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #fff;
}

.highlight-text {
    color: var(--brand-orange);
    /* Orange highlight */
    position: relative;
    display: inline-block;
}

.cardio-hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 1.1 Stats Strip */
.stats-strip {
    background: #fff;
    padding: 40px 0;
    position: relative;
    z-index: 5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #eee;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-icon-wrap {
    width: 60px;
    height: 60px;
    background: rgba(59, 13, 64, 0.05);
    /* Purple Tint */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--brand-purple);
    font-size: 24px;
    transition: all 0.3s;
}

.stat-item:hover .stat-icon-wrap {
    background: var(--brand-purple);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(59, 13, 64, 0.2);
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-grey);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 2. Reduce A/R (Split Section) */
.split-section {
    padding: 100px 0;
    background: #fff;
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 80px;
}

.split-image {
    flex: 1;
    position: relative;
}

.split-image img {
    width: 100%;
    height: 100%;
    /* Fill container */
    min-height: 500px;
    /* Force taller height */
    object-fit: cover;
    /* Maintain aspect ratio */
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.floating-badge {
    position: absolute;
    bottom: -30px;
    right: 30px;
    background: #fff;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    color: var(--brand-purple);
    border-top: 4px solid var(--brand-orange);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.split-content {
    flex: 1;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 25px;
}

.section-title span {
    color: var(--brand-purple);
}

.lead-text {
    font-size: 20px;
    color: var(--text-grey);
    margin-bottom: 30px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 17px;
    color: #4a5568;
    align-items: flex-start;
}

.feature-list li i {
    color: var(--brand-orange);
    /* Orange checkmarks */
    font-size: 20px;
    margin-top: 4px;
}

/* 3. Complex Codes Grid */
.codes-section {
    padding: 100px 0;
    background: #f8fafc;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.code-card {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.code-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(59, 13, 64, 0.2);
}

.card-icon {
    font-size: 32px;
    /* Standardized size */
    color: var(--brand-purple);
    /* Standardized color */
    margin-bottom: 20px;
}

.icon-feature {
    font-size: 32px;
    color: var(--brand-purple);
    margin-bottom: 15px;
}

.code-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.code-card p {
    color: var(--text-grey);
    line-height: 1.6;
}

/* 4. Contact/Footer CTA */
/* 4. Contact/Footer CTA (Premium) */
.cta-section {
    padding: 120px 0;
    position: relative;
    background: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 13, 64, 0.92), rgba(28, 6, 30, 0.95));
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: #ffffff !important;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-section p {
    color: #ffffff !important;
    font-size: 22px;
    max-width: 700px;
    margin: 0 auto 45px;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-section .btn {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Responsive Hero & General */
@media (max-width: 992px) {
    .cardio-hero {
        height: auto;
        padding: 100px 0;
        /* Add padding since fixed height is removed/auto */
    }

    .cardio-hero h1 {
        font-size: 42px;
        /* Scale down heading */
    }

    .split-layout {
        flex-direction: column;
        text-align: center;
    }

    .floating-badge {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        width: 80%;
        justify-content: center;
    }

    .feature-list li {
        justify-content: center;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .cardio-hero {
        min-height: 400px;
        padding: 80px 0;
    }

    .cardio-hero h1 {
        font-size: 32px;
        /* Smaller heading for mobile */
        line-height: 1.2;
    }

    .cardio-hero p {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .section-title {
        font-size: 28px;
    }

    .split-layout {
        gap: 40px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        /* Allow full width */
        margin: 0 auto;
        gap: 15px;
        padding: 0 20px;
        /* Safe padding */
    }

    .hero-btns .btn {
        width: 100%;
        /* Full width buttons */
        display: block;
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .cardio-hero h1 {
        font-size: 28px;
    }

    .floating-badge {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px;
    }
}

/* 5. Funnel / Form Section (Ported from Medical Billing) */
.funnel-section {
    padding: 100px 0;
    /* Light Background with Doctor/Clinic Context Image */
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9)),
        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;
}

.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;
}

.funnel-content {
    flex: 1;
    color: var(--text-dark);
}

.funnel-content h2 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--brand-purple);
}

.funnel-content p {
    font-size: 18px;
    color: var(--text-grey);
    margin-bottom: 30px;
    max-width: 500px;
}

.text-gradient-gold {
    background: linear-gradient(135deg, var(--brand-orange) 0%, #ffb74d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.funnel-benefits {
    list-style: none;
    padding: 0;
}

.funnel-benefits li {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.funnel-benefits li i {
    color: var(--brand-orange);
    font-size: 20px;
}

/* Form Card */
.funnel-form-card {
    flex: 0 0 650px;
    /* Increased from 450px to make form wider */
    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, var(--brand-orange), transparent);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h3 {
    color: var(--brand-purple);
    font-size: 24px;
    margin-bottom: 10px;
}

.form-header p {
    color: var(--text-grey);
    font-size: 14px;
}

.premium-form .form-group {
    margin-bottom: 20px;
}

.form-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Hide labels visually if we want a cleaner look like the screenshot (placeholders only), 
   but for accessibility and standard practice, we'll keep them or make them subtle. 
   The screenshot uses placeholders as labels effectively. 
   I will keep visual labels for better UX unless requested to remove. */

.premium-form label {
    display: block;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.premium-form .form-control {
    width: 100%;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 15px;
    transition: all 0.3s ease;
}

.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;
}

.premium-form .form-control:focus {
    outline: none;
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 3px rgba(59, 13, 64, 0.1);
}

.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);
}

.form-privacy-text {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 15px;
    line-height: 1.5;
}

.form-privacy-text a {
    color: var(--brand-purple);
    text-decoration: underline;
}

/* Responsive Funnel */
@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: 800px;
        /* Increased width as requested */
        flex: none;
    }
}

@media (max-width: 768px) {
    .funnel-content h2 {
        font-size: 32px;
    }

    .funnel-form-card {
        padding: 25px;
    }

    .form-grid-row {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        gap: 0;
    }
}