/* Chiropractic Billing Page Styles */
:root {
    --brand-purple: #3b0d40;
    --brand-orange: #f07c24;
    --text-dark: #2d3748;
    --text-grey: #718096;
    --bg-light: #f8fafc;
    /* Specific Accent for Chiropractic (Clean Teal/Green for health/spine) - reusing brand but maybe darker green hint? keeping brand consistent as requested */
}

/* 1. Hero Section */
.chiro-hero {
    position: relative;
    height: 70vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    background: url('../images/chiropractic-hero.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 13, 64, 0.8), rgba(28, 6, 30, 0.7));
    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.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.chiro-hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #fff;
}

.chiro-hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 35px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 2. Intro Section (Clean White - No Image/Overlay) */
.intro-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    /* Simple clean light grey background */
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

/* Overlay Removed */
.intro-section::before {
    display: none;
}

.intro-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(59, 13, 64, 0.15);
    border: 2px solid rgba(240, 124, 36, 0.1);
    margin-bottom: 35px;
    color: var(--brand-orange);
    font-size: 32px;
    position: relative;
    z-index: 10;
    /* Elevated Z-Index */
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.intro-badge:hover {
    transform: rotate(0deg) scale(1.05);
}

.intro-section .section-title {
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
    /* Elevated Z-Index */
    font-size: 48px;
    font-weight: 800;
    color: #1a202c;
    /* Strong Black */
    text-shadow: none;
}

.intro-section .section-title .highlight-text {
    color: var(--brand-purple);
    background: none;
    -webkit-text-fill-color: initial;
}

.intro-text-wrapper {
    max-width: 900px;
    margin: 0 auto;
    /* Solid White Card */
    background: #ffffff;
    padding: 60px;
    border-radius: 24px;
    /* Strong shadow to lift it off the background */
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.08),
        0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    position: relative;
    z-index: 10;
    /* Elevated Z-Index */
}

/* Accent Top Border - FIXED MISSING CONTENT PROPERTY */
.intro-text-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    height: 5px;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-purple));
    border-radius: 0 0 5px 5px;
    z-index: 11;
}

.intro-text-wrapper p {
    color: #4a5568;
    /* Revert to Dark Grey */
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 400;
}

.intro-text-wrapper p:last-child {
    margin-bottom: 0;
}

.intro-text-wrapper strong {
    color: var(--brand-purple);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* Highlight underline effect for strong text - subtle on dark */
.intro-text-wrapper strong::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transform: skewX(-10deg);
}

/* 3. Services Grid / Codes Section (Premium) */
.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;
    color: var(--brand-purple);
    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;
}


.intro-section h2 {
    font-size: 42px;
    color: var(--brand-purple);
    font-weight: 800;
    margin-bottom: 20px;
}

.intro-card {
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.intro-card::top {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--brand-orange);
}

/* 3. Services Grid (Cards) */
.services-section {
    padding: 100px 0;
    background: #fff;
}

.service-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 40px 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--brand-purple);
}

.service-icon {
    font-size: 32px;
    color: var(--brand-orange);
    margin-bottom: 20px;
    background: #fff5eb;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* 4. Split Section */
.split-section {
    padding: 100px 0;
    background: #f8fafc;
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-image img {
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* 5. Benefits Strip */
.benefits-section {
    background: var(--brand-purple);
    color: #fff;
    padding: 80px 0;
}

.benefit-item {
    text-align: center;
}

.benefit-item i {
    font-size: 40px;
    color: var(--brand-orange);
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 992px) {
    .chiro-hero h1 {
        font-size: 42px;
    }

    .split-layout {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .chiro-hero {
        height: auto;
        padding: 100px 0;
    }

    .chiro-hero h1 {
        font-size: 32px;
    }

    .split-layout {
        gap: 40px;
    }
}

/* 5. Funnel / Form Section (Ported from Cardiology) */
.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('../images/chiropractic-consult.png');
    /* Reused chiropractic image */
    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;
}

.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;
        flex: none;
    }
}

@media (max-width: 768px) {
    .funnel-content h2 {
        font-size: 32px;
    }

    .funnel-form-card {
        padding: 25px;
    }

    .form-grid-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}