/* Internal Medicine Billing Page Styles (Fixed Footer/Form + Reverted Theme) */
:root {
    --brand-blue: #3b0d40;
    /* Reverted to Brand Purple */
    --brand-navy: #2d3748;
    /* Dark Text/Navy equivalent */
    --brand-accent: #f07c24;
    /* Reverted to Brand Orange */
    --brand-orange: #f07c24;
    --text-dark: #1f2937;
    --text-grey: #6b7280;
    --bg-light: #f3f4f6;
}

/* 1. Hero Section */
.im-hero {
    position: relative;
    height: 75vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Left Aligned */
    overflow: hidden;
    color: #fff;
    background: url('../images/internal-med-hero.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient from Left (Dark) to Right (Transparent) */
    background: linear-gradient(90deg, rgba(10, 37, 64, 0.9) 0%, rgba(10, 37, 64, 0.7) 50%, rgba(10, 37, 64, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 0 40px;
    margin-left: 5%;
    /* Offset from left */
    text-align: left;
}

.im-hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #fff;
}

.highlight-blue {
    color: var(--brand-accent);
}

.im-hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    font-weight: 400;
    line-height: 1.6;
}

/* 2. Challenges Section (Grid Layout) */
.challenges-section {
    padding: 100px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 38px;
    color: var(--brand-navy);
    font-weight: 800;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-grey);
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.challenge-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--brand-blue);
    transition: transform 0.3s ease;
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.challenge-card h3 {
    font-size: 20px;
    color: var(--brand-navy);
    margin-bottom: 10px;
    font-weight: 700;
}

.challenge-card p {
    font-size: 15px;
    color: var(--text-grey);
    line-height: 1.6;
}

/* 3. Solutions Section (Image Left + List) */
.solutions-section {
    padding: 100px 0;
    background: var(--brand-blue);
    /* Updated to Brand Purple match */
    color: #fff;
}

.solutions-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.solutions-image {
    flex: 1;
}

.solutions-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.solutions-content {
    flex: 1;
}

.solutions-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #ffffff;
    /* Explicitly set to white */
}

.check-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.check-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 17px;
    align-items: flex-start;
}

.check-list li i {
    color: var(--brand-accent);
    margin-top: 5px;
}

/* 4. Core Services (Dark Cards Grid) */
.core-services-section {
    padding: 100px 0;
    background: #f8fafc;
}

.service-grid-dark {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-card-dark {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.service-card-dark:hover {
    border-color: var(--brand-blue);
    transform: translateY(-5px);
}

.service-icon-circle {
    width: 70px;
    height: 70px;
    background: #e0f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--brand-blue);
}

/* 5. Benefits Strip */
.benefits-strip {
    background: var(--brand-blue);
    padding: 60px 0;
    color: #fff;
}

.benefits-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.benefit-block {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.benefit-block i {
    font-size: 40px;
    color: var(--brand-accent);
    /* Teal on Blue */
    margin-bottom: 15px;
}

.benefit-block h4 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    /* Explicitly set to white */
}

/* 6. Why Choose Us (Simple Text Grid) */
.why-us-section {
    padding: 100px 0;
    background: #fff;
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* 7. Steps (Horizontal Process) */
.steps-section {
    padding: 100px 0;
    background: #f1f5f9;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 50px auto 0;
}

/* Connecting Line */
.steps-container::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #cbd5e1;
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.step-num {
    width: 60px;
    height: 60px;
    background: var(--brand-navy);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
    border: 4px solid #fff;
}

/* ------------------------------------------- */
/* 8. Funnel Form & Footer (Ported from Cardiology) */
/* ------------------------------------------- */

/* Funnel Section */
.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));
    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-blue);
}

.funnel-content p {
    font-size: 18px;
    color: var(--text-grey);
    margin-bottom: 30px;
    max-width: 500px;
}

.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;
    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-blue);
    font-size: 24px;
    margin-bottom: 10px;
}

.premium-form .form-group {
    margin-bottom: 20px;
}

.form-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.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-blue);
    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);
}

/* Footer Grid */
.main-footer {
    background: #111;
    /* Dark footer like index */
    color: #fff;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--brand-orange);
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s;
}

.footer-socials a:hover {
    background: var(--brand-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .challenges-grid {
        grid-template-columns: 1fr;
    }

    .solutions-layout {
        flex-direction: column;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
        gap: 30px;
    }

    .steps-container::before {
        display: none;
    }

    .hero-content {
        margin-left: 0;
        text-align: center;
    }

    .im-hero {
        justify-content: center;
    }

    .funnel-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .funnel-form-card {
        width: 100%;
        max-width: 800px;
        flex: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-grid-row {
        grid-template-columns: 1fr;
    }
}