/* ===== CSS VARIABLES (NEW COLOR SCHEME) ===== */
:root {
    /* Light Mode Colors */
    --bg-color-light: #F9FAFB; /* gray-50 */
    --card-color-light: #FFFFFF; /* white */
    --heading-color-light: #111827; /* gray-900 */
    --text-color-light: #4B5563; /* gray-600 */
    --accent-color-light: #2563EB; /* blue-600 */
    --accent-hover-color-light: #1D4ED8; /* blue-700 */
    --border-color-light: #E5E7EB; /* gray-200 */

    /* Dark Mode Colors */
    --bg-color-dark: #111827; /* gray-900 */
    --card-color-dark: #1F2937; /* gray-800 */
    --heading-color-dark: #F9FAFB; /* gray-50 */
    --text-color-dark: #9CA3AF; /* gray-400 */
    --accent-color-dark: #3B82F6; /* blue-500 */
    --accent-hover-color-dark: #60A5FA; /* blue-400 */
    --border-color-dark: #374151; /* gray-700 */

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --line-height-body: 1.7;

    /* Other */
    --header-height: 4.5rem;
}

/* Default theme is light mode */
body {
    --bg-color: var(--bg-color-light);
    --card-color: var(--card-color-light);
    --heading-color: var(--heading-color-light);
    --text-color: var(--text-color-light);
    --accent-color: var(--accent-color-light);
    --accent-hover-color: var(--accent-hover-color-light);
    --border-color: var(--border-color-light);
}

/* Dark mode theme styles */
body.dark-mode {
    --bg-color: var(--bg-color-dark);
    --card-color: var(--card-color-dark);
    --heading-color: var(--heading-color-dark);
    --text-color: var(--text-color-dark);
    --accent-color: var(--accent-color-dark);
    --accent-hover-color: var(--accent-hover-color-dark);
    --border-color: var(--border-color-dark);
}

/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    line-height: var(--line-height-body);
}

body.nav-open {
    overflow: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.75rem;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-hover-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== LAYOUT & REUSABLE CLASSES ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section {
    padding: 6rem 0 2rem;
}

.section__title, .page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section__subtitle, .page-subtitle {
    font-size: 1.15rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(to right, #1e3a8a, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

body.dark-mode .text-gradient {
     background: linear-gradient(to right, #93c5fd, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.w-100 { width: 100%; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.ml-1 { margin-left: 1rem; }

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.header.scrolled {
     box-shadow: 0 4px 6px rgba(0,0,0,0.08);
}

body.dark-mode .header {
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

body.dark-mode .header.scrolled {
     box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    z-index: 120;
}

.nav__desktop-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--heading-color);
    transition: color 0.3s;
}

.nav__link:hover {
    color: var(--accent-color);
}

.nav__mobile-menu {
    display: none;
}

.nav__toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Theme Toggle Switch */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--heading-color);
}
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 22px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--accent-color);
}
input:checked + .slider:before {
    transform: translateX(18px);
}

/* Mobile Menu Styles - Breakpoint at 992px */
@media screen and (max-width: 992px) {
    .nav__desktop-menu {
        display: none;
    }
    .nav__toggle {
        display: block;
    }
    .nav__mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background-color: var(--bg-color);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        z-index: 110;
    }
    .nav__mobile-menu.show-menu {
        right: 0;
    }
    .nav__mobile-menu .nav__list {
        flex-direction: column;
    }
    .nav__mobile-menu .nav__link {
        font-size: 1.5rem;
    }
    .nav__mobile-menu .nav__item--cta {
        margin-top: 2rem;
    }
    .nav__mobile-menu .nav__item--cta .nav__link {
        font-size: 1.2rem;
    }
    .nav__close {
        display: block;
        position: absolute;
        top: 1.25rem;
        right: 1.5rem;
        font-size: 2rem;
        cursor: pointer;
        color: var(--heading-color);
    }
}


/* ===== BUTTONS ===== */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    border-radius: 6px;
    font-weight: 700;
    font-family: var(--font-body);
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}
.button--primary {
    background-color: var(--accent-color);
    color: #fff;
}
.button--primary:hover {
    background-color: var(--accent-hover-color);
    color: #fff;
    transform: translateY(-2px);
}
.button--secondary {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--heading-color);
}
.button--secondary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}
.button--light {
    background: #fff;
    color: var(--accent-hover-color);
    font-weight: 700;
}
.button--light:hover {
    background: #f0f0f0;
    color: var(--accent-hover-color);
    transform: translateY(-2px);
}
.button--lg {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

/* ===== CARDS ===== */
.card {
    background-color: var(--card-color);
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    text-align: left;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}
body.dark-mode .card:hover {
    box-shadow: 0 10px 20px rgba(2,12,27,0.7);
}
.card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card__content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card__icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
}
.card h3, .card h4 {
    margin-bottom: 0.5rem;
}
.card--link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--text-color);
}
.card--link:hover {
    color: var(--text-color);
    border-color: var(--accent-color);
}
.card--link h4 {
    color: var(--heading-color);
}
.card__category {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.card__meta {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1rem;
}
.card__excerpt {
    flex-grow: 1;
}


/* ===== HERO SECTION ===== */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero__container {
    max-width: 800px;
}
.hero__title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.hero__subtitle {
    font-size: 1.25rem;
    line-height: var(--line-height-body);
    margin-bottom: 2.5rem;
}

/* ===== SERVICES SECTION ===== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.services .card {
    text-align: center;
}

/* ===== ROI SECTION ===== */
.roi-section {
    background-color: var(--card-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.roi-section .container {
    max-width: 800px;
    text-align: center;
}
.roi-section p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ===== ABOUT SECTION ===== */
.about__container {
    grid-template-columns: 1fr;
    align-items: center;
    gap: 2rem;
}
@media (min-width: 768px) {
    .about__container {
        grid-template-columns: 200px 1fr;
    }
}
.about__image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    border: 5px solid var(--card-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.about__content p:not(:last-child) {
    margin-bottom: 1rem;
}
.about__credentials {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.credentials__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 992px) {
    .credentials__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.credential__badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s, background-color 0.3s;
}
.credential__badge:hover {
    border-color: var(--accent-color);
}
.credential__badge i {
    font-size: 1.75rem;
    color: var(--accent-color);
    flex-shrink: 0;
}
.credential__badge div {
    text-align: left;
}
.credential__badge strong {
    font-weight: 700;
    color: var(--heading-color);
    display: block;
    font-size: 0.9rem;
    line-height: 1.3;
}
.credential__badge span {
    font-size: 0.9rem;
    line-height: 1.3;
}

/* ===== MY PROCESS SECTION ===== */
.process__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}
.process__card {
    text-align: center;
    position: relative;
}
.process__card .card__content {
    padding: 2rem;
}
.process__number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 3rem;
    font-weight: 700;
    color: var(--border-color);
    line-height: 1;
}
.process__icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}
@media (min-width: 768px) {
    .process__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== TESTIMONIALS & SWIPER.JS ===== */
.testimonials {
    overflow: hidden; 
}
.testimonials__swiper {
    padding-bottom: 3rem !important;
}
.testimonial__card {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 0 0.5rem;
    height: 100%; /* Let swiper handle height */
    display: flex;
    flex-direction: column;
}
.testimonial__content {
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.testimonial__card p {
    font-style: italic;
    margin-bottom: 1rem;
    flex-grow: 1;
}
.testimonial__card p.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Show ~5 lines */
    -webkit-box-orient: vertical;  
    overflow: hidden;
}
.testimonial__stars {
    color: #FFD700;
    margin-bottom: 1rem;
}
.testimonial__card h4 {
    color: var(--heading-color);
    font-family: var(--font-body);
    margin-top: 1rem;
}
.read-more-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-top: 0.5rem;
    text-align: left;
    align-self: flex-start;
}
.read-more-btn:hover {
    text-decoration: underline;
}
.swiper-pagination-bullet {
    background-color: var(--text-color) !important;
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    background-color: var(--accent-color) !important;
    opacity: 1;
}

/* ===== INSIGHTS PREVIEW SECTION ===== */
.insights__grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile-first: 1 column */
    gap: 2rem;
    margin-top: 3rem;
}
@media screen and (min-width: 768px) {
    .insights__grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }
}
@media screen and (min-width: 1024px) {
    .insights__grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for desktops */
    }
}
.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
    color: var(--accent-color);
}
.read-more i {
    transition: transform 0.3s;
    margin-left: 0.25rem;
}
.card--link:hover .read-more i {
    transform: translateX(5px);
}

/* ===== FAQ SECTION ===== */
.faq__container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 3rem;
}
.faq__item {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
}
.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--heading-color);
}
.faq__question-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}
.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq__answer p, .faq__answer ul {
    padding: 0 1.5rem 1.5rem;
    line-height: var(--line-height-body);
}
.faq__item.active .faq__answer {
    max-height: 300px; /* Adjust as needed */
}
.faq__item.active .faq__question-icon {
    transform: rotate(45deg);
}


/* ===== FINAL CTA SECTION ===== */
.cta__card {
    background-color: #2563EB; /* Changed from #1D4ED8 */
    background-image: 
        radial-gradient(circle at 100% 10%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 30%),
        radial-gradient(circle at 0% 90%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 30%);
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 16px;
    box-shadow: 0 15px 30px -10px rgba(37, 99, 235, 0.4);
    overflow: hidden;
    position: relative;
}
.cta__card h2 {
    color: #fff;
    font-size: 2.2rem;
}
.cta__card p {
    max-width: 600px;
    margin: 1rem auto 2rem;
    opacity: 0.9;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #1F2937; /* gray-800 */
    color: #D1D5DB; /* gray-300 */
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s, border-color 0.3s;
}
.footer__container {
    text-align: center;
    font-size: 0.8rem;
}
.footer__block {
    margin-bottom: 1rem;
}
.footer__block:last-child {
    margin-bottom: 0;
}
.footer__block p {
    line-height: 1.6;
}
.footer__block:first-of-type {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.footer__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.footer__logo-img {
    max-height: 50px;
}
.footer__logos .cpa-logo-dark { display: block; }
.footer__logos .cpa-logo-light { display: none; }
body.dark-mode .footer__logos .cpa-logo-dark { display: none; }
body.dark-mode .footer__logos .cpa-logo-light { display: block; }


/* ===== ARTICLE & SERVICE PAGES ===== */
.page-header {
    padding-top: calc(var(--header-height) + 4rem);
}
.article.section, .service-page.section {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 4rem;
}
.page-content-container {
    max-width: 900px;
    background: var(--card-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.page-content-container h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: center;
}
.service-page__intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}
.service-page__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
@media (min-width: 768px) {
    .service-page__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.service-page__content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.service-page__checklist {
    list-style: none;
    padding: 0;
}
.service-page__checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.service-page__checklist i {
    color: var(--accent-color);
    margin-top: 5px;
}
.service-page__cta-box {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}
.page-content-container h2, .page-content-container h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}
.article__content p, .article__content li,
.service-page__content p, .service-page__content li {
    margin-bottom: 1.5rem;
}
.article__content ul, .service-page__content ul {
    list-style: none;
    padding-left: 0;
}
.article__takeaways {
    background-color: var(--bg-color);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}
.article__references {
    margin-top: 3rem;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}
.article__references h4 {
    font-size: 1rem;
}
.article__references ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
}

@media (min-width: 768px) {
    .page-content-container {
        padding: 3rem;
    }
}


/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: calc(2rem + 60px + 1rem); /* Positioned to the left of the chat icon */
    background-color: var(--accent-color);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: opacity 0.4s, visibility 0.4s, transform 0.4s;
    opacity: 0;
    visibility: hidden;
    z-index: 999; /* Ensure it's above other content but below chat modal */
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background-color: var(--accent-hover-color);
    color: #fff;
    transform: translateY(-4px);
}

/* ===== CHAT WIDGET ===== */
.chat-widget-icon {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 1000;
}
.chat-widget-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.chat-widget-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.chat-widget-modal.open {
    display: block;
    opacity: 1;
}
.chat-widget-window {
    position: absolute;
    bottom: 90px;
    right: 2rem;
    width: 350px;
    max-width: 90vw;
    background-color: var(--card-color);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.chat-widget-modal.open .chat-widget-window {
    opacity: 1;
    transform: translateY(0);
}
.chat-widget-header {
    background-color: var(--accent-color);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-widget-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}
.chat-widget-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.chat-widget-close:hover {
    opacity: 1;
}
.chat-widget-body {
    padding: 1.5rem;
}
.chat-widget-form .form-group {
    margin-bottom: 1rem;
}
.chat-widget-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--heading-color);
}
.chat-widget-form input,
.chat-widget-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
}
.chat-widget-form textarea {
    resize: vertical;
    min-height: 80px;
}
.chat-widget-form .button {
    width: 100%;
}
#chat-form-status {
    margin-top: 1rem;
    text-align: center;
    line-height: 1.5;
}
@media screen and (max-width: 768px) {
    .chat-widget-window {
        width: 90vw;
        height: 80vh;
        bottom: 5vh;
        left: 5vw;
        right: 5vw;
    }
}

/* ===== ON-SCROLL FADE-IN ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MEDIA QUERIES for Responsiveness ===== */
@media screen and (max-width: 1024px) {
    .hero__title {
        font-size: 2.8rem;
    }
    .section__title, .page-title {
        font-size: 2rem;
    }
}
@media screen and (max-width: 767px) {
    .section {
        padding: 4rem 0 1rem;
    }
    .hero {
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 2rem;
    }
}
@media screen and (max-width: 480px) {
    body { font-size: 15px; }
    .hero__title { font-size: 2.2rem; }
    .hero__subtitle { font-size: 1.1rem; }
    .button { padding: 0.8rem 1.2rem; }
    .testimonial__card { min-height: 250px; }
    .page-content-container h1 { font-size: 2rem; }
    .cta__card h2 { font-size: 1.8rem; }
}
