/* Design System - CGA Naumur (Professional Redesign) */
:root {
    /* Color Palette - Naumur Visual Identity */
    --primary-color: #6109B0;
    /* Primary (Dark) */
    --primary-mid: #6109B0;
    /* Primary (Mid) */
    --secondary-color: #6109B0;
    /* Accent (Purple) */
    --accent-magenta: #6109B0;
    --accent-gold: #FBC414;
    /* Accent (Magenta) */
    --text-on-primary: #FFFFFF;

    --success-color: #00C851;
    --danger-color: #FF4444;
    --text-color: #333333;
    /* Dark Grey for better readability on text */
    --light-bg: #F9FAFB;
    /* Very light grey for background */
    --white: #FFFFFF;
    --border-color: #E5E7EB;

    /* Typography */
    --font-main: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Montserrat', 'Georgia', serif;

    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--light-bg);
    margin: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

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

body.nav-open {
    overflow: hidden;
}

/* --- Top Bar --- */
.uicore-top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.78rem;
    padding: 6px 0;
    border-bottom: 2px solid var(--accent-gold);
}

.uicore-top-bar .elementor-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
    white-space: nowrap;
}

.ui-tb-col-1 p,
.ui-tb-col-2 p {
    margin: 0;
    white-space: nowrap;
}

.uicore-icon-wrapp {
    display: inline-flex;
    align-items: center;
}

/* --- Header --- */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--primary-color);
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

.nav-toggle i {
    font-size: 1.1rem;
}

.nav-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(18, 0, 94, 0.12);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 12, 24, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 900;
}

body.nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
}

/* Rounded Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    /* Rounded Border */
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--primary-mid);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    /* Solid Color, No Gradient */
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Navigation */
.main-nav>ul {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
    align-items: center;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    max-width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-mid);
}

/* Dropdown Menu Styles */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 250px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid var(--border-color);
    display: block !important;
    /* Explicitly vertical */
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
    margin: 0 !important;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-transform: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0;
}

.dropdown-menu a:hover {
    background-color: var(--light-bg);
    color: var(--primary-mid) !important;
}

.dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 0.8rem;
    vertical-align: middle;
}

/* Mobile Sidebar Head */
.nav-mobile-head {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 10px 5px 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.nav-mobile-head span {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: 0.3px;
}

.nav-close {
    border: none;
    background: var(--light-bg);
    color: var(--primary-color);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    cursor: pointer;
}

/* Buttons (Solid Colors) */
.btn {
    padding: 10px 24px;
    border-radius: 4px;
    /* Slightly rounded, classic pro look */
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-mid);
    color: var(--white) !important;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-accent {
    background-color: var(--accent-gold);
    color: #2b2100 !important;
}

.btn-logout {
    background: none;
    border: 1px solid var(--danger-color);
    color: var(--danger-color) !important;
    padding: 8px 16px;
}

.btn-logout:hover {
    background-color: var(--danger-color);
    color: var(--white) !important;
}

/* --- Main Content --- */
.main-content {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    min-width: 0;
}

table {
    max-width: 100%;
}

/* --- Rich Footer --- */
.main-footer {
    background-color: var(--primary-color);
    color: #e0e0e0;
    padding: 60px 0 20px;
    margin-top: 60px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-gold);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #bbbbbb;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
}

.footer-link:hover {
    color: #ffffff;
    text-decoration: none;
}

/* --- Flyer Preview Modal --- */
.flyer-modal {
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 24, 0.75);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.flyer-modal.open {
    display: flex;
    opacity: 1;
}

.flyer-modal-content {
    background: #fff;
    border-radius: 14px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    padding: 18px 18px 22px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    transform: translateY(10px) scale(0.98);
    transition: transform 0.2s ease;
}

.flyer-modal.open .flyer-modal-content {
    transform: translateY(0) scale(1);
}

.flyer-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.flyer-modal-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--primary-color);
    margin: 0;
}

.flyer-modal-content img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 10px;
    padding: 8px;
}

.flyer-modal-close {
    border: none;
    background: #f3f4f6;
    color: #111;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.flyer-modal-close:hover {
    transform: scale(1.05);
    background: #e5e7eb;
}

.flyer-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.flyer-modal-actions .btn {
    border-radius: 999px;
    padding: 10px 22px;
}

@media (max-width: 600px) {
    .flyer-modal-content {
        padding: 14px;
    }

    .flyer-modal-content img {
        max-height: 60vh;
    }
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

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

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

/* Service Cards */
.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-mid);
}

/* --- Responsive Design (Mobile & Tablet) --- */

@media (max-width: 992px) {

    /* Tablet & Small Desktop adjustment */
    .container {
        padding: 0 20px;
    }

    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-section p {
        border-left: none !important;
        border-bottom: 4px solid var(--secondary-color);
        padding-bottom: 20px;
        padding-left: 0 !important;
    }

    .hero-section .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 992px) {

    /* Mobile Navigation */
    .main-header .container {
        gap: 12px;
    }

    .logo {
        margin: 0;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(86vw, 340px);
        height: 100vh;
        background: var(--white);
        box-shadow: -12px 0 30px rgba(0, 0, 0, 0.12);
        z-index: 1001;
        padding: 20px 18px 30px;
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    body.nav-open .main-nav {
        right: 0;
    }

    .nav-mobile-head {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 8px;
        align-items: stretch;
    }

    .main-nav a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        text-align: left;
        background-color: #f8f9fa;
        border-radius: 8px;
    }

    .main-nav a.active,
    .main-nav a:hover {
        background-color: var(--primary-mid);
        color: white;
    }

    .main-nav a.btn-primary {
        background: var(--primary-mid);
        color: white;
        justify-content: center;
    }

    .nav-item.dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.3s ease;
    }

    .nav-item.dropdown.open .dropdown-menu {
        max-height: 600px;
        padding: 8px 0;
    }

    .dropdown-menu a {
        background: transparent;
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {

    /* Top Bar Stacking */
    .uicore-top-bar .elementor-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .uicore-icon-wrapp {
        display: block;
        margin-bottom: 5px;
    }

    .uicore-icon-wrapp i {
        padding: 0 !important;
        /* Reset padding for mobile */
    }

    /* Footer Stacking */
    .footer-grid {
        grid-template-columns: 1fr;
        /* Single column */
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
        /* Center underline */
    }

    /* Form Fields */
    input,
    select,
    textarea {
        font-size: 16px !important;
        /* Prevent zoom on iOS */
    }

    /* Typography sizing */
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }
}

/* --- Adhesion & Tarifs Responsive Fixes --- */
.adhesion-card {
    max-width: 100%;
    width: 100%;
    min-width: 0;
}

.adhesion-form input,
.adhesion-form select {
    max-width: 100%;
    box-sizing: border-box;
}

.adhesion-form input,
.adhesion-form select,
.adhesion-form textarea {
    width: 100% !important;
    border: 1px solid #d9d9d9 !important;
    border-bottom: 2px solid var(--primary-mid) !important;
    border-radius: 8px !important;
    padding: 12px 12px !important;
    background: #fff !important;
}

.adhesion-form input:focus,
.adhesion-form select:focus,
.adhesion-form textarea:focus {
    border-color: var(--primary-mid) !important;
    box-shadow: 0 0 0 3px rgba(63, 0, 181, 0.08) !important;
}

.adhesion-page,
.adhesion-form,
.adhesion-summary {
    min-width: 0;
}

.adhesion-page {
    overflow-x: hidden;
}

.adhesion-payments label {
    min-width: 0;
}

.tarifs-table {
    max-width: 100%;
}

.tarifs-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tarifs-tab-btn {
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--primary-color);
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tarifs-tab-btn.active {
    background: var(--primary-mid);
    color: #fff;
    border-color: var(--primary-mid);
}

.tarifs-tab-panel {
    display: none;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #eee;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.tarifs-tab-panel.active {
    display: block;
}

.tarifs-tab-panel h2 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.7rem;
}

.tarifs-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tarifs-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: #fafafa;
}

.tarifs-card h4 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tarifs-card .price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-mid);
}

.tarifs-note {
    color: #555;
}

.tarifs-table-wrap {
    overflow-x: auto;
}

.tarifs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.tarifs-table th,
.tarifs-table td {
    padding: 14px;
    border: 1px solid #e6e6e6;
    text-align: left;
}

.tarifs-table thead th {
    background: var(--primary-color);
    color: #fff;
}

@media (max-width: 768px) {
    .tarifs-tab-panel {
        padding: 20px;
    }

    .tarifs-table {
        min-width: 520px;
    }
}

@media (max-width: 1024px) {
    .adhesion-card {
        grid-template-columns: 1fr 300px !important;
    }

    .adhesion-form,
    .adhesion-summary {
        padding: 32px !important;
    }
}

@media (max-width: 900px) {
    .adhesion-card {
        grid-template-columns: 1fr !important;
    }

    .adhesion-form {
        border-right: 0 !important;
        border-bottom: 1px solid #eee;
    }

    .adhesion-summary {
        background: #fafafa;
    }
}

@media (max-width: 768px) {
    .adhesion-page {
        padding: 40px 0 !important;
    }

    .adhesion-form,
    .adhesion-summary {
        padding: 24px !important;
    }

    .adhesion-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .adhesion-payments {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .tarifs-hero {
        padding: 56px 0 !important;
    }

    .tarifs-hero h1 {
        font-size: 2.2rem !important;
    }

    .tarifs-hero p {
        font-size: 1rem !important;
    }

    .tarifs-page {
        padding: 40px 0 !important;
    }

    .tarifs-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 20px !important;
    }

    .tarifs-table th,
    .tarifs-table td {
        padding: 10px !important;
        font-size: 0.88rem !important;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .adhesion-page {
        padding: 32px 0 !important;
    }

    .adhesion-form h1 {
        font-size: 1.4rem !important;
    }

    .tarifs-hero h1 {
        font-size: 1.9rem !important;
    }

    .tarifs-table th,
    .tarifs-table td {
        font-size: 0.82rem !important;
    }
}

@media (max-width: 480px) {
    .whatsapp-icon-bg {
        width: 52px;
        height: 52px;
        padding: 10px;
    }

    .chatbot-toggle {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }
}

/* --- Home Responsive --- */
@media (max-width: 1024px) {
    .home-hero-inner {
        gap: 32px !important;
    }
}

@media (max-width: 768px) {
    .home-hero {
        padding: 56px 0 !important;
    }

    .home-hero h1 {
        font-size: 2.2rem !important;
    }

    .home-hero p {
        font-size: 1rem !important;
    }

    .home-hero-actions {
        flex-direction: column !important;
        align-items: stretch;
    }

    .home-hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .home-hero-inner > div {
        min-width: 0 !important;
    }
}

@media (max-width: 480px) {
    .home-hero h1 {
        font-size: 1.9rem !important;
    }
}

@media (max-width: 900px) {
    .hero-section .container {
        gap: 24px !important;
    }
}

@media (max-width: 768px) {
    .hero-section .container > div {
        width: 100% !important;
        min-width: 0 !important;
    }

    .hero-section .container > div[style*="min-width: 300px"] {
        min-width: 0 !important;
    }
}

@media (max-width: 700px) {
    .hero-section h1 {
        word-break: break-word;
    }

    .hero-section p {
        border-left: 0 !important;
        padding-left: 0 !important;
    }
}

@media (max-width: 600px) {
    .hero-section .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .home-hero {
        overflow-x: hidden;
    }

    .home-hero-actions {
        gap: 12px !important;
    }

    .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* --- Services Responsive --- */
@media (max-width: 900px) {
    .services-page {
        padding: 48px 0 !important;
    }

    .service-block,
    .service-block-reverse {
        flex-direction: column !important;
        gap: 24px !important;
        margin-bottom: 60px !important;
    }

    .service-block > div,
    .service-block-reverse > div {
        min-width: 0 !important;
    }
}

@media (max-width: 768px) {
    .services-page {
        padding: 40px 0 !important;
    }

    .services-page h1 {
        font-size: 2rem !important;
    }

    .services-page h2 {
        font-size: 1.4rem !important;
    }
}

/* --- Form Styling --- */
.form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    /* Reduced from 800px */
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-mid);
    box-shadow: 0 0 0 3px rgba(18, 0, 94, 0.05);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 25px;
    }
}


/* --- WhatsApp Widget --- */
.whatsapp-widget {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    right: 20px;
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.whatsapp-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    border-radius: 50%;
    text-decoration: none;
}

.whatsapp-icon-bg {
    background: #25D366;
    /* Official WhatsApp Green */
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 40px;
    height: 40px;
}

/* --- Chatbot Widget --- */
.chatbot-widget {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: 20px;
    z-index: 9999;
}

.chatbot-toggle {
    background: var(--primary-mid);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, background 0.3s;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    background: var(--primary-color);
}

.chatbot-container {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 320px;
    height: 450px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chatbot-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chatbot-header {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1rem;
}

#chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #fdfdfd;
}

.message {
    margin-bottom: 12px;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    max-width: 85%;
}

.message.bot {
    background: #f1efef;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.message.user {
    background: var(--primary-mid);
    color: white;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.chatbot-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

#chatbot-input-field {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.9rem;
    outline: none;
}

#chatbot-send {
    background: var(--primary-mid);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

#chatbot-send:hover {
    background: var(--primary-color);
}
