/* Texas Medical Billing Page Styles */
:root {
    --brand-purple: #3b0d40;
    --brand-orange: #f07c24;
    --brand-orange-light: #fff0e0;
    --text-dark: #2d3748;
    --text-grey: #718096;
}

/* 1. Premium Hero Section */
.texas-hero {
    position: relative;
    height: 90vh;
    /* Immersive full screen height */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.texas-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Placeholder for Texas Skyline / Modern City Video */
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    z-index: 1;
    animation: zoomSlow 20s infinite alternate;
}

@keyframes zoomSlow {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.texas-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient to ensure text readability (Darkened) */
    background: linear-gradient(135deg, rgba(30, 5, 35, 0.92), rgba(20, 5, 25, 0.88));
    z-index: 2;
    backdrop-filter: blur(1px);
}

.texas-hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeUp 1s ease-out;
}

.texas-hero h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    color: #ffffff;
    /* Added Shadow */
}

.texas-hero .highlight {
    color: var(--brand-orange);
    position: relative;
    display: inline-block;
}

.texas-hero p {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    /* Added Shadow */
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 1.1 Stats Strip (Premium) */
.stats-strip {
    background: linear-gradient(90deg, #3b0d40 0%, #5a1e60 100%);
    padding: 40px 0;
    position: relative;
    z-index: 5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.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: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    /* Glass effect */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stat-item:hover .stat-icon-wrap {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(240, 124, 36, 0.4);
    /* Glow Orange */
}

.stat-icon-wrap i {
    font-size: 28px;
    color: #fff;
    transition: color 0.3s;
}

.stat-item:hover .stat-icon-wrap i {
    color: var(--brand-purple);
    /* Flip color on hover */
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* 2.1 Empower Section */
.empower-section {
    padding: 100px 0;
    background: #fff;
    overflow: hidden;
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.empower-image {
    flex: 1;
    position: relative;
}

.empower-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.floating-card-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    color: var(--brand-purple);
    border-left: 5px solid var(--brand-orange);
    animation: float 5s ease-in-out infinite;
}

.empower-content {
    flex: 1;
}

.empower-content h2 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--brand-purple);
}

.highlight-text {
    color: var(--brand-orange);
    position: relative;
    display: inline-block;
}

.lead-text {
    font-size: 20px;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
}

.empower-list {
    list-style: none;
    padding: 0;
}

.empower-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.empower-list .icon-box {
    width: 60px;
    height: 60px;
    background: rgba(240, 124, 36, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.empower-list .icon-box i {
    font-size: 24px;
    color: var(--brand-orange);
}

.empower-list h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2d3748;
}

.empower-list p {
    color: #718096;
    margin: 0;
}

/* 2.2 Texas Expertise Section */
.expertise-section {
    padding: 100px 0;
    background: #f8fafc;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.expertise-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    text-align: center;
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 13, 64, 0.1);
    border-color: rgba(59, 13, 64, 0.1);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(59, 13, 64, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s;
}

.expertise-card:hover .card-icon {
    background: var(--brand-purple);
    transform: scale(1.1);
}

.card-icon i {
    font-size: 32px;
    color: var(--brand-purple);
    transition: all 0.3s;
}

.expertise-card:hover .card-icon i {
    color: #fff;
}

.expertise-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2d3748;
}

.expertise-card p {
    color: #718096;
    line-height: 1.6;
    margin: 0;
}

/* 2.3 Specialties Covered Section */
.specialties-section {
    padding: 100px 0;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.specialty-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #4a5568;
    cursor: default;
}

.specialty-item:hover {
    background: #fff;
    border-color: var(--brand-orange);
    box-shadow: 0 4px 15px rgba(240, 124, 36, 0.15);
    color: var(--brand-purple);
    transform: translateY(-2px);
}

.specialty-item i {
    font-size: 20px;
    color: var(--brand-orange);
    width: 30px;
    text-align: center;
}

.specialty-item span {
    font-size: 16px;
}

/* Hidden Items */
.specialty-hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.spec-visible-added {
    display: flex;
    /* Animated in via JS */
}

@media (max-width: 992px) {
    .split-layout {
        flex-direction: column;
        text-align: center;
    }

    .empower-image {
        margin-bottom: 40px;
        padding: 0 20px;
    }

    .empower-list li {
        text-align: left;
    }

    .floating-card-badge {
        right: 10px;
    }
}

/* 2. Trust Strip */
.trust-strip {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 50px;
    align-items: center;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.trust-badges:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* 3. Why Texas Trusts Us */
.why-texas-section {
    padding: 100px 0;
    background: #f8fafc;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 5px solid var(--brand-purple);
    position: relative;
    top: 0;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(59, 13, 64, 0.15);
}

.feature-icon {
    font-size: 40px;
    color: var(--brand-orange);
    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--brand-purple);
}

/* 4. Sales Funnel / Step Process */
.funnel-section {
    padding: 100px 0;
    background: #fff;
    text-align: center;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 60px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 0 20px;
}

.step-number {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--brand-purple), #5a1e60);
    color: #fff;
    border-radius: 50%;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.8), 0 10px 20px rgba(0, 0, 0, 0.1);
    /* Border effect */
    transition: all 0.3s ease;
}

.step-item:hover .step-number {
    background: linear-gradient(135deg, var(--brand-orange), #ff9f43);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.9), 0 15px 30px rgba(240, 124, 36, 0.3);
}

/* 5. Cities Showcase (Glassmorphism Premium) */
.cities-section {
    padding: 100px 0;
    /* Deep Modern Tech Background */
    background: radial-gradient(circle at top right, #2d3748 0%, #1a202c 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.cities-section h2 {
    color: #fff !important;
    /* Force visibility */
    margin-bottom: 10px;
    font-size: 36px;
    font-weight: 700;
}

.cities-section p {
    color: #cbd5e0 !important;
    font-size: 18px;
}

.cities-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.05;
    animation: rotateBg 120s linear infinite;
}

@keyframes rotateBg {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

/* Updated City Card Design (Image Top + White Footer) */
.city-card {
    background: #fff;
    height: 280px;
    /* Slightly taller to accommodate footer */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* Soft shadow like reference */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    /* For anchor tags */
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.city-image-wrap {
    height: 75%;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.city-footer {
    height: 25%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.city-name {
    color: var(--brand-purple);
    /* Purple text like reference */
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-shadow: none;
    background: none;
    -webkit-text-fill-color: initial;
    text-transform: none;
    /* Or capitalize */
    text-align: center;
}

/* View All Cities Container (Below Grid) */
.view-all-container {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.view-all-btn {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    /* Dark text "View All Cities" */
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-all-btn:hover {
    color: var(--brand-orange);
}

.view-all-btn i {
    font-size: 14px;
    transition: transform 0.3s;
}

.view-all-btn:hover i {
    transform: translateY(3px);
}

/* 6. FAQ Accordion */
.faq-section {
    padding: 100px 0;
    background: #f8fafc;
}

.accordion {
    max-width: 800px;
    margin: 40px auto 0;
}

.accordion-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.3s;
}

.accordion-item.active {
    box-shadow: 0 10px 25px rgba(59, 13, 64, 0.08);
    transform: translateY(-2px);
    border-color: rgba(59, 13, 64, 0.1);
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-dark);
    transition: background 0.3s;
}

.accordion-header:hover {
    background: #f1f5f9;
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    color: var(--text-grey);
    background: #fafafa;
}

.accordion-item.active .accordion-content {
    padding: 20px;
    max-height: 500px;
    /* arbitrary large height */
}

/* Responsive */
@media (max-width: 768px) {
    .texas-hero h1 {
        font-size: 42px;
    }

    .steps-container {
        flex-direction: column;
        gap: 40px;
    }

    .steps-container::before {
        display: none;
    }

    .hero-btns {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-btns .btn {
        width: 100%;
        padding: 12px 20px;
        /* Reduced padding */
        font-size: 16px;
        /* Reduced font size */
    }
}

/* Animations */
/* 8. Texas Contact Section (Form) */
.texas-contact-section {
    padding: 100px 0;
    /* Light Texas-themed Background */
    background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.97)),
        url('https://images.unsplash.com/photo-1531973576160-7125cd663d86?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    /* Austin/Texas feel or generic modern office */
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.texas-contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(240, 124, 36, 0.15) 0%, transparent 70%);
    z-index: 1;
}

.contact-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
}

/* Left Content */
.contact-content {
    flex: 1;
    color: #333;
}

.contact-content h2 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a0b2e;
}

.contact-content p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    max-width: 550px;
    line-height: 1.6;
}

.contact-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.contact-benefits li {
    font-size: 18px;
    color: #1a0b2e;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.contact-benefits li i {
    color: var(--accent-color);
    font-size: 20px;
}

/* Right Form Card */
.contact-form-card,
.funnel-form-card {
    flex: 0 0 650px;
    background: rgba(255, 255, 255, 0.98);
    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;
}

.contact-form-card::after,
.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;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    font-size: 14px;
}

/* Form Fields */
.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: #4a5568;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.premium-form .form-control {
    width: 100%;
    padding: 12px 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #2d3748;
    font-size: 16px;
    transition: all 0.3s ease;
}

.premium-form .form-control:focus {
    background: #fff;
    border-color: var(--brand-purple);
    outline: none;
    box-shadow: 0 0 0 3px rgba(106, 27, 154, 0.1);
}

.btn-glow {
    width: 100%;
    box-shadow: 0 4px 14px 0 rgba(240, 124, 36, 0.39);
}

.btn-glow:hover {
    box-shadow: 0 6px 20px rgba(240, 124, 36, 0.23);
    transform: translateY(-2px);
}

/* Responsive Form */
@media (max-width: 992px) {
    .contact-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .contact-content {
        margin-bottom: 20px;
    }

    .contact-content h2 {
        font-size: 32px;
    }

    .contact-benefits {
        display: inline-block;
        text-align: left;
    }

    .contact-form-card,
    .funnel-form-card {
        width: 100%;
        max-width: 650px;
        flex: none;
    }
}

@media (max-width: 768px) {
    .form-grid-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}