/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    /* Cores Principais - Conforme paleta */
    --primary: #135992;
    --primary-light: #1c72b8;
    --primary-dark: #0c3e68;
    
    --bg-light: #f5f6f7;
    --white: #ffffff;
    
    /* Cores de Texto */
    --text-dark: #1a202c;
    --text-body: #4a5568;
    --text-muted: #718096;
    
    /* UI Elementos */
    --border-color: #e2e8f0;
    --accent: #38b2ac; /* Cor de acento suave e profissional */
    --success: #25d366; /* WhatsApp color */
    
    /* Tipografia */
    --font-family: 'Poppins', sans-serif;
    
    /* Sombras e Transições */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 15px -3px rgba(19, 89, 146, 0.08), 0 4px 6px -2px rgba(19, 89, 146, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(19, 89, 146, 0.1), 0 10px 10px -5px rgba(19, 89, 146, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(19, 89, 146, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--text-body);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.bg-light {
    background-color: var(--bg-light);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary);
}

.btn-whatsapp {
    background-color: var(--success);
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #1ebe5a;
    transform: translateY(-2px);
    color: var(--white);
}

.btn-dark-whatsapp {
    background-color: #05162a; /* Dark navy blue from image */
    color: var(--white);
    border: none;
}

.btn-dark-whatsapp i {
    color: var(--white);
}

.btn-dark-whatsapp:hover {
    background-color: #0a2542;
    transform: translateY(-2px);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(5, 22, 42, 0.4);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled {
    padding: 5px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 95px;
    transition: height 0.3s ease;
}

.header.scrolled .header-container {
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2.2rem;
    color: var(--primary);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-body);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

.mobile-only {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-whatsapp {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-whatsapp i {
    color: #25d366; /* WhatsApp green */
}

.header-whatsapp:hover {
    color: var(--primary);
}

.rounded-btn {
    border-radius: 50px !important;
    padding: 10px 24px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 220px 0 160px;
    /* Foto estilo contabilidade: documentos, caneta, calculadora — sem rostos */
    background-image: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Overlay azul mais transparente para a foto aparecer e contrastar */
    background: linear-gradient(135deg, rgba(12, 62, 104, 0.82), rgba(19, 89, 146, 0.72));
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
}

.badge {
    display: inline-block;
    padding: 8px 24px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--white);
    text-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 48px;
    max-width: 800px;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.125rem;
    border-radius: 12px;
    font-weight: 600;
}

/* ==========================================================================
   Sections General
   ========================================================================== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.subsection-title {
    font-size: 1.5rem;
    margin: 32px 0 16px;
    color: var(--primary-dark);
}

/* ==========================================================================
   About Section
   ========================================================================== */
/* ==========================================================================
   About Section (Creative Layout)
   ========================================================================== */
.about {
    padding: 0; /* Remove default section padding to allow full width/bleed if needed */
    position: relative;
    background-color: var(--bg-light);
}

.about-container-creative {
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0;
    min-height: 700px;
}

.about-image-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 65%;
    height: 100%;
    z-index: 1;
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
}

.about-office-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-card-creative {
    position: relative;
    z-index: 2;
    margin-left: auto; /* Push to the right */
    width: 55%;
    background-color: var(--primary); /* Deep blue */
    padding: 60px;
    border-radius: 24px;
    color: var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about-card-subtitle {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.about-card-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--white);
}

.about-card-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.about-card-topics strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--white);
}

.about-card-topics ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.about-card-topics li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
}

.about-card-topics i {
    color: var(--success); /* Bright green checkmarks */
    font-size: 1.3rem;
}

.about-btn {
    display: inline-flex;
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 12px;
    text-align: center;
    line-height: 1.4;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

@media (max-width: 1024px) {
    .about-container-creative {
        flex-direction: column;
        padding: 40px 20px 0; /* Remove bottom padding to fix the huge gap */
        min-height: auto; /* Allow height to fit content rather than forcing 700px */
    }
    
    .about-image-wrapper {
        position: relative;
        width: 100%;
        height: 400px;
        border-radius: 20px;
        overflow: hidden;
        margin-bottom: -100px; /* Overlap the card slightly */
    }
    
    .about-card-creative {
        width: 90%;
        margin: 0 auto;
        padding: 40px 30px;
    }
    
    .about-card-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .about-card-creative {
        width: 100%;
    }
}

/* ==========================================================================
   Services Section (Minimalist List)
   ========================================================================== */
.services-list-creative {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.service-icon-minimal {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary);
    background-color: transparent;
}

.service-content-minimal {
    flex-grow: 1;
}

.service-title-minimal {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.service-desc-minimal {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-body);
    margin: 0;
}

@media (max-width: 768px) {
    .service-item {
        gap: 16px;
    }
    
    .service-icon-minimal {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: 0 24px 100px;
}

.cta-container {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 178, 172, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding-top: 80px;
}

.footer .logo-title, 
.footer .logo-subtitle,
.footer .logo-icon {
    color: var(--white);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-desc {
    margin-top: 20px;
    max-width: 320px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-social-icons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.footer-social-icons a[aria-label="WhatsApp"]:hover {
    background-color: #25d366; /* WhatsApp green */
    transform: translateY(-3px);
}

.footer-social-icons a[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    transform: translateY(-3px);
}

.footer h4 {
    color: var(--white);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer ul a, .footer ul span {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    transition: color 0.3s;
}

.footer ul a:hover {
    color: var(--white);
}

.footer ul i {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    margin-top: 2px;
}

.footer-bottom {
    background-color: transparent;
    padding: 24px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-visual {
        order: 2;
    }
    
    .about-content {
        order: 1;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: inline-flex !important;
        margin-top: 24px;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 24px;
        flex-direction: column;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: -1;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        z-index: 999;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    
    .hero {
        padding: 130px 0 100px;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 20px;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: 40px;
    }
    
    .float-card {
        right: 0;
        left: 0;
        margin: 0 auto;
        width: max-content;
        bottom: -20px;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

/* ==========================================================================
   LGPD Banner
   ========================================================================== */
.lgpd-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 20px 0;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
}

.lgpd-banner.visible {
    transform: translateY(0);
}

.lgpd-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.lgpd-banner p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-body);
    flex: 1;
}

.lgpd-banner a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.lgpd-btn {
    white-space: nowrap;
    padding: 12px 24px;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: var(--white);
}

@media (max-width: 768px) {
    .lgpd-container {
        flex-direction: column;
        text-align: center;
    }
    
    .lgpd-btn {
        width: 100%;
    }
    
    .footer-bottom-container {
        justify-content: center;
        text-align: center;
    }
}

/* ==========================================================================
   Floating Social Buttons (Left Side)
   ========================================================================== */
.floating-social {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.floating-btn {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.floating-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.floating-whatsapp {
    animation: pulseWhatsapp 2s ease-in-out infinite;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.5);
}

.floating-whatsapp:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.floating-instagram {
    animation: pulseInstagram 2.5s ease-in-out infinite;
    box-shadow: 0 4px 14px rgba(225, 48, 108, 0.4);
    border-radius: 14px;
}

.floating-instagram img {
    border-radius: 14px;
}

.floating-instagram:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.5);
}

@keyframes pulseWhatsapp {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 24px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
        transform: scale(1.05);
    }
}

@keyframes pulseInstagram {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(225, 48, 108, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 24px rgba(225, 48, 108, 0.6), 0 0 0 10px rgba(225, 48, 108, 0.1);
        transform: scale(1.05);
    }
}

@media (max-width: 480px) {
    .floating-social {
        left: 16px;
        bottom: 16px;
    }
    
    .floating-btn {
        width: 48px;
        height: 48px;
    }
}

/* ==========================================================================
   Chat Widget
   ========================================================================== */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: var(--font-family);
}

/* Bubble */
.chat-bubble-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    justify-content: flex-end;
}

/* Online Dot (reusable) */
.online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    background: #25d366;
    border-radius: 50%;
    border: 2px solid var(--white);
    animation: pulseOnline 2s ease-in-out infinite;
}

@keyframes pulseOnline {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); }
}

/* Tooltip with avatar */
.chat-tooltip {
    background: var(--white);
    padding: 12px 32px 12px 12px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    position: relative;
    max-width: 280px;
}

.chat-tooltip.visible {
    display: flex;
    animation: fadeSlideUp 0.5s ease forwards;
}

.chat-tooltip-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.chat-tooltip-avatar img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-tooltip-avatar .online-dot {
    width: 10px;
    height: 10px;
    bottom: 0;
    right: 0;
}

.chat-tooltip-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.chat-tooltip strong {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.chat-tooltip-text span {
    color: #25d366;
    font-size: 0.8rem;
    font-weight: 500;
}

.chat-tooltip-close {
    position: absolute;
    top: 4px;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}

.chat-tooltip-close:hover {
    color: var(--text-dark);
}

.chat-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    bottom: 18px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--white);
}

.chat-tooltip.hidden {
    display: none;
}

/* Chat Bubble with Avatar */
.chat-bubble {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(19, 89, 146, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    padding: 0;
    overflow: visible;
    position: relative;
}

.chat-bubble-avatar {
    position: relative;
    width: 100%;
    height: 100%;
}

.chat-bubble-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.chat-bubble-avatar .online-dot {
    width: 14px;
    height: 14px;
    bottom: 0;
    right: 0;
    border-width: 2px;
}

.chat-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(19, 89, 146, 0.5);
}

/* Chat Window (Step 2) */
.chat-window,
.chat-form-window {
    display: none;
    flex-direction: column;
    width: 380px;
    height: 520px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    animation: fadeSlideUp 0.3s ease forwards;
}

.chat-window.active,
.chat-form-window.active {
    display: flex;
}

.chat-window-header {
    background: var(--primary);
    color: var(--white);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.chat-header-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}

.chat-header-avatar .online-dot {
    width: 10px;
    height: 10px;
    bottom: 0;
    right: 0;
    border-color: var(--primary);
}

.chat-header-status {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
}

.chat-window-header h4 {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.chat-window-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    line-height: 1;
}

.chat-window-close:hover {
    opacity: 1;
}

/* Chat Window Body */
.chat-window-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.chat-empty-state {
    text-align: center;
    color: var(--text-muted);
}

.chat-empty-state i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 16px;
}

.chat-empty-state p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-body);
    margin-bottom: 4px;
}

.chat-empty-state span {
    font-size: 0.85rem;
}

/* Chat Window Footer */
.chat-window-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.chat-new-conversation {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.chat-new-conversation:hover {
    background: var(--primary-dark);
}

/* Chat Form Window (Step 3) */
.chat-back-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 0;
}

.chat-back-btn:hover {
    opacity: 1;
}

.chat-form-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.chat-form-header-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.chat-form-body {
    flex: 1;
    padding: 24px 20px;
    overflow-y: auto;
}

.chat-form-group {
    margin-bottom: 20px;
}

.chat-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.chat-form-group input,
.chat-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font-family);
    color: var(--text-dark);
    transition: border-color 0.3s ease;
    outline: none;
    resize: none;
}

.chat-form-group input:focus,
.chat-form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(19, 89, 146, 0.1);
}

.chat-form-group input::placeholder,
.chat-form-group textarea::placeholder {
    color: var(--text-muted);
}

.chat-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s ease;
    margin-top: 8px;
}

.chat-submit-btn:hover {
    background: var(--primary-dark);
}

/* Animation */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat Widget Mobile */
@media (max-width: 480px) {
    .chat-window,
    .chat-form-window {
        width: calc(100vw - 32px);
        height: 70vh;
        right: 0;
    }
    
    .chat-widget {
        right: 16px;
        bottom: 16px;
    }
    
    .chat-tooltip {
        max-width: 180px;
    }
}
