/* ============================================================
   Medical Billing Sub-Pages - Global Stylesheet
   Used for all state-specific medical billing pages
   ============================================================ */

/* ---------- Reset & Base ---------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a1a;
    color: #ffffff;
    overflow-x: hidden;
    max-width: 100%;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 16px;
}

a {
    text-decoration: none;
    color: #31ADDE;
    transition: all 0.3s ease;
}

a:hover {
    color: #1a8ab8;
}

/* ---------- Accent Color ---------- */
.accent {
    color: #31ADDE;
}

.accent-bg {
    background: #31ADDE;
    color: #fff;
}

/* ---------- Skip Link ---------- */
.skip-link {
    position: absolute;
    top: -999px;
    left: 50%;
    transform: translateX(-50%);
    background: #31ADDE;
    color: #fff;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
    text-decoration: none;
    font-weight: 700;
}

.skip-link:focus {
    top: 0;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-nav {
    padding: 20px 15px 0;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
}

@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 10px 10px 0;
    }
}

.breadcrumb-nav ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
    padding: 4px 2px;
}

.breadcrumb-nav a:hover,
.breadcrumb-nav a:focus {
    color: #31ADDE;
    text-decoration: underline;
}

.breadcrumb-nav li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.3);
}

.breadcrumb-nav li[aria-current="page"] {
    color: #31ADDE;
    font-weight: 600;
}

@media (max-width: 768px) {
    .breadcrumb-nav ol {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #31ADDE;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 14px;
    border: 1px solid rgba(49, 173, 222, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 10px;
}

.back-button:hover {
    background: rgba(49, 173, 222, 0.1);
    border-color: #31ADDE;
    transform: translateX(-3px);
    color: #31ADDE;
}

.back-button i {
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .back-button {
        font-size: 0.8rem;
        padding: 4px 12px;
        margin-left: 5px;
    }
}

/* ---------- Hero Section ---------- */
.service-hero {
    padding: 40px 0 30px;
    text-align: center;
    position: relative;
    z-index: 10;
    max-width: 100%;
}

.service-hero h1 {
    margin-bottom: 1.2rem;
}

@media (max-width: 992px) {
    .service-hero h1 {
        font-size: 2.6rem;
    }
}

@media (max-width: 768px) {
    .service-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .service-hero h1 {
        font-size: 1.7rem;
    }
}

.service-hero .hero-badge {
    display: inline-block;
    background: rgba(49, 173, 222, 0.15);
    border: 1px solid rgba(49, 173, 222, 0.3);
    border-radius: 50px;
    padding: 6px 20px;
    color: #31ADDE;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .service-hero .hero-badge {
        font-size: 0.7rem;
        padding: 4px 16px;
    }
}

.service-hero .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 850px;
    margin: 0 auto 30px;
    line-height: 1.7;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .service-hero .hero-subtitle {
        font-size: 1rem;
        padding: 0 5px;
    }
}

.service-hero .hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 50px;
    margin-top: 30px;
}

@media (max-width: 992px) {
    .service-hero .hero-stats {
        gap: 20px 30px;
    }
}

@media (max-width: 768px) {
    .service-hero .hero-stats {
        gap: 15px 20px;
    }
}

@media (max-width: 480px) {
    .service-hero .hero-stats {
        flex-direction: column;
        gap: 10px;
    }
}

.service-hero .stat-item {
    text-align: center;
}

.service-hero .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #31ADDE;
    line-height: 1;
}

@media (max-width: 992px) {
    .service-hero .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .service-hero .stat-number {
        font-size: 1.6rem;
    }
}

.service-hero .stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

@media (max-width: 768px) {
    .service-hero .stat-label {
        font-size: 0.75rem;
    }
}

/* ---------- Direct Answer Block ---------- */
.direct-answer {
    max-width: 900px;
    margin: 20px auto 40px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid #31ADDE;
    border-radius: 0 16px 16px 0;
    padding: 30px 35px;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .direct-answer {
        padding: 20px;
        margin: 10px 10px 30px 10px;
    }
    .direct-answer p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .direct-answer {
        padding: 15px;
        margin: 10px 10px 20px 10px;
    }
}

.direct-answer p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.direct-answer p:last-child {
    margin-bottom: 0;
}

.direct-answer .highlight {
    color: #31ADDE;
    font-weight: 600;
}

/* ---------- Section Header ---------- */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .section-header {
        padding: 0 10px;
        margin: 0 auto 25px;
    }
}

.section-header .section-eyebrow {
    display: inline-block;
    color: #31ADDE;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-header h2 {
    margin-bottom: 15px;
    word-wrap: break-word;
}

@media (max-width: 992px) {
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.8rem;
    }
}

.section-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.7;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .section-header p {
        font-size: 0.95rem;
    }
}

/* ---------- Content Sections ---------- */
.content-section {
    padding: 40px 0;
    position: relative;
    z-index: 10;
    max-width: 100%;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 0 10px;
    }
}

.content-wrapper p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 16px;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .content-wrapper p {
        font-size: 0.95rem;
    }
}

.content-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.content-wrapper ul li {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    padding: 6px 0;
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .content-wrapper ul li {
        font-size: 0.9rem;
        padding: 5px 0;
        padding-left: 24px;
    }
}

.content-wrapper ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #31ADDE;
    font-weight: 700;
}

.content-wrapper .highlight-box {
    background: rgba(49, 173, 222, 0.06);
    border: 1px solid rgba(49, 173, 222, 0.15);
    border-radius: 12px;
    padding: 25px 30px;
    margin: 25px 0;
}

@media (max-width: 768px) {
    .content-wrapper .highlight-box {
        padding: 20px;
        margin: 20px 0;
    }
}

.content-wrapper .highlight-box h4 {
    color: #31ADDE;
    margin-bottom: 10px;
}

.content-wrapper .highlight-box p {
    margin-bottom: 8px;
}

/* ---------- Services Grid ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
        gap: 15px;
    }
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 25px 22px;
    transition: all 0.3s ease;
    max-width: 100%;
}

.service-card:hover {
    border-color: rgba(49, 173, 222, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
}

.service-card .service-icon {
    font-size: 2rem;
    color: #31ADDE;
    margin-bottom: 12px;
    display: inline-block;
}

.service-card h4 {
    color: #fff;
    margin-bottom: 8px;
}

.service-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ---------- Specialty Tags ---------- */
.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 1000px;
    margin: 20px auto 0;
    padding: 0 15px;
}

.specialty-tag {
    display: inline-block;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.specialty-tag:hover {
    background: rgba(49, 173, 222, 0.12);
    border-color: #31ADDE;
    color: #31ADDE;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .specialty-tag {
        font-size: 0.78rem;
        padding: 6px 14px;
    }
}

/* ---------- Cities Grid ---------- */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 900px;
    margin: 20px auto 0;
    padding: 0 15px;
}

@media (max-width: 992px) {
    .cities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 10px;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .cities-grid {
        grid-template-columns: 1fr;
    }
}

.city-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.city-item:hover {
    border-color: rgba(49, 173, 222, 0.3);
    background: rgba(49, 173, 222, 0.06);
    color: #31ADDE;
    transform: translateY(-2px);
}

/* ---------- FAQ Section ---------- */
.faq-section {
    padding: 50px 0;
    position: relative;
    z-index: 10;
    max-width: 100%;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .faq-list {
        padding: 0 10px;
    }
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 5px 25px;
    transition: border-color 0.3s ease;
    max-width: 100%;
}

.faq-item:hover {
    border-color: rgba(49, 173, 222, 0.15);
}

@media (max-width: 768px) {
    .faq-item {
        padding: 5px 15px;
    }
}

.faq-item summary {
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 18px 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
    word-wrap: break-word;
}

.faq-item summary:hover {
    color: #31ADDE;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    color: #31ADDE;
    font-size: 1.4rem;
    margin-left: 15px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: "\2212";
}

@media (max-width: 768px) {
    .faq-item summary {
        font-size: 0.95rem;
        padding: 14px 0;
    }
}

.faq-item .faq-answer {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    padding-bottom: 20px;
    margin: 0;
    word-wrap: break-word;
}

/* ---------- CTA Section ---------- */
.cta-section {
    padding: 50px 0;
    position: relative;
    z-index: 10;
    max-width: 100%;
}

.cta-box {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(49, 173, 222, 0.08) 0%, rgba(49, 173, 222, 0.02) 100%);
    border: 1px solid rgba(49, 173, 222, 0.2);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    margin-left: 15px;
    margin-right: 15px;
}

@media (max-width: 768px) {
    .cta-box {
        padding: 30px 20px;
        margin: 0 10px;
    }
    .cta-box h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .cta-box {
        padding: 25px 15px;
        margin: 0 10px;
    }
}

.cta-box h2 {
    margin-bottom: 15px;
    word-wrap: break-word;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto 30px;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .cta-box p {
        font-size: 0.95rem;
    }
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .cta-buttons .btn {
        text-align: center;
    }
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
}

.btn-primary {
    background: #31ADDE;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #1a8ab8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(49, 173, 222, 0.3);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #31ADDE;
    border: 2px solid #31ADDE;
}

.btn-outline:hover,
.btn-outline:focus {
    background: rgba(49, 173, 222, 0.1);
    transform: translateY(-2px);
    color: #31ADDE;
}

/* ---------- Focus Styles ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid #31ADDE;
    outline-offset: 2px;
}

/* ---------- Utility ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- High Contrast ---------- */
@media (prefers-contrast: high) {
    .service-card,
    .faq-item,
    .city-item {
        border-color: rgba(255, 255, 255, 0.3);
    }
    .btn-primary {
        background: #31ADDE;
        color: #fff;
    }
}

/* ---------- Responsive Images ---------- */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

.container > * {
    max-width: 100%;
}