/* Root Variables */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004d99;
    --primary-light: #3399ff;
    --secondary-color: #f8f9fa;
    --accent-color: #ff6b35;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --background-primary: #ffffff;
    --background-secondary: #f8f9fa;
    --background-dark: #1a1a1a;
    --border-color: #e0e0e0;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-primary);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

    /* Prevent body scroll when mobile menu is open */
    body.menu-open {
        overflow: hidden;
    }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* List Styles */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
    color: var(--text-secondary);
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Nested lists */
ul ul, ol ol, ul ol, ol ul {
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

/* Second level list items */
ul ul {
    list-style-type: circle;
}

    /* Third level list items */
    ul ul ul {
        list-style-type: square;
    }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

    a:hover {
        color: var(--primary-dark);
    }

/* Header and Navigation */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 0 2rem;
    position: relative;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.brand-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1rem;
}

    .nav-link:hover {
        color: var(--primary-color);
    }

.nav-cta {
    background: var(--primary-color);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

    .nav-cta:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-medium);
    }

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    padding: 0.5rem 0;
}

.dropdown-icon {
    transition: var(--transition);
}

.dropdown-toggle[aria-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-heavy);
    padding: 1rem 0;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    z-index: 1000;
}

    .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    transition: var(--transition);
    border-left: 3px solid transparent;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-item:hover {
        background: var(--background-secondary);
        border-left-color: var(--primary-color);
        color: var(--primary-color);
        text-decoration: none;
    }

.dropdown-item-content {
    display: flex;
    flex-direction: column;
}

.dropdown-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
}

.dropdown-item-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    display: block;
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background-color: var(--text-primary);
        border-radius: 3px;
        transition: all 0.3s ease;
        transform-origin: 1px;
    }

    .mobile-menu-toggle.active span:first-child {
        transform: rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
    }

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
        opacity: 0.3;
    }

.hero-content {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

    .btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-medium);
        color: white;
    }

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

    .btn-secondary:hover {
        background: var(--primary-color);
        color: white;
    }

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

    .btn-outline:hover {
        background: white;
        color: var(--primary-color);
    }
.btn-outline-dark {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

    .btn-outline-dark:hover {
        background: var(--primary-color);
        color: white;
    }
.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--background-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-medium);
    }

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-content {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

    .card-link:hover {
        gap: 0.75rem;
    }

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
    }

    .form-control.textarea {
        min-height: 120px;
        resize: vertical;
    }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Footer */
.main-footer {
    background: var(--background-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-subtitle {
    font-size: 1rem;
    font-weight: 600;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

    .social-link:hover {
        background: var(--primary-color);
        color: white;
    }

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.7);
        transition: var(--transition);
    }

        .footer-links a:hover {
            color: white;
        }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

    .footer-bottom-links a {
        color: rgba(255, 255, 255, 0.7);
        transition: var(--transition);
    }

        .footer-bottom-links a:hover {
            color: white;
        }

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
        z-index: 1000;
    }

        .nav-menu.active {
            right: 0;
        }

        .nav-menu .nav-link,
        .nav-menu .dropdown-toggle {
            width: 100%;
            padding: 1rem 0;
            border-bottom: 1px solid #f0f0f0;
            color: var(--text-primary);
            text-decoration: none;
            font-size: 1.1rem;
            justify-content: space-between;
        }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        min-width: auto;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--primary-color);
        border-radius: 0;
        margin-left: 1rem;
        background: #f8f9fa;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        padding: 0;
    }

        .dropdown-menu.show {
            max-height: 500px;
            opacity: 1;
            visibility: visible;
            transform: none;
            padding: 0;
        }

    .dropdown-item {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e9ecef;
        border-left: none;
    }

        .dropdown-item:hover {
            background-color: #e9ecef;
        }

    /* Close button overlay */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: -300px;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }
}

/* Additional mobile improvements */
@media (max-width: 480px) {
    .nav-menu {
        width: 280px;
        padding: 70px 1.5rem 1.5rem;
    }

    .dropdown-menu {
        margin-left: 0.5rem;
    }

    .dropdown-item-title {
        font-size: 0.95rem;
    }

    .dropdown-item-desc {
        font-size: 0.8rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

/* Grid dropdown styles */
.dropdown-menu-grid {
    min-width: 600px; /* Wider to accommodate grid */
    max-width: 800px;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 8px;
    padding: 8px;
}

.grid-item {
    padding: 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

    .grid-item:hover {
        background-color: #f8f9fa; /* Light background on hover */
    }

/* Responsive behavior */
@media (max-width: 768px) {
    .dropdown-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .dropdown-menu-grid {
        min-width: auto;
        max-width: 100vw;
    }
}


/* Chatbot Styles - Add this to the end of your site.css file */

/* Chatbot Container */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Chat Bubble */
.chat-bubble {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    position: relative;
}

    .chat-bubble:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-heavy);
    }

    .chat-bubble::before {
        content: '';
        position: absolute;
        top: -5px;
        right: -5px;
        width: 16px;
        height: 16px;
        background: var(--accent-color);
        border-radius: 50%;
        border: 2px solid white;
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-heavy);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat Header */
.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-agent-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-agent-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.chat-agent-status {
    font-size: 0.8rem;
    opacity: 0.9;
}

.chat-close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

    .chat-close-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fafafa;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.user {
    align-self: flex-end;
}

.chat-message.agent {
    align-self: flex-start;
}

.message-content {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-lg);
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-message.user .message-content {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.chat-message.agent .message-content {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 0.25rem;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    padding: 0 0.5rem;
}

.chat-message.user .message-time {
    text-align: right;
}

.chat-message.agent .message-time {
    text-align: left;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    border-bottom-left-radius: 0.25rem;
    max-width: 85%;
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-light);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

    .typing-dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .typing-dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-10px);
    }
}

/* Chat Input */
.chat-input-container {
    border-top: 1px solid var(--border-color);
    background: white;
}

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    gap: 0.75rem;
}

.chat-input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    font-size: 0.9rem;
    resize: none;
    min-height: 40px;
    max-height: 80px;
    line-height: 1.4;
    font-family: inherit;
    transition: var(--transition);
}

    .chat-input:focus {
        outline: none;
        border-color: var(--primary-color);
    }

.chat-send-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

    .chat-send-btn:hover:not(:disabled) {
        background: var(--primary-dark);
        transform: translateY(-1px);
    }

    .chat-send-btn:disabled {
        background: var(--text-light);
        cursor: not-allowed;
    }

.chat-clear-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: var(--transition);
}

    .chat-clear-btn:hover {
        color: var(--primary-color);
    }

/* Error Message */
.error-message {
    background: #fee !important;
    color: #d00 !important;
    border: 1px solid #fcc !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chatbot-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }

    .chat-bubble {
        position: fixed;
        bottom: 20px;
        right: 20px;
        left: auto;
    }

    .chat-window {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        animation: slideUpMobile 0.3s ease-out;
    }

    @keyframes slideUpMobile {
        from {
            opacity: 0;
            transform: translateY(100%);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 480px) {
    .chat-input-wrapper {
        padding: 0.75rem;
    }

    .chat-send-btn {
        width: 36px;
        height: 36px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .chat-bubble::before {
        animation: none;
    }

    .typing-dot {
        animation: none;
    }

    .chat-window {
        animation: none;
    }

    .chat-message {
        animation: none;
    }
}

/* Scrollbar Styling for Chat Messages */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

    .chat-messages::-webkit-scrollbar-thumb:hover {
        background: var(--text-light);
    }

/* Additional CSS for Markdown Support - Add to your site.css */

/* Markdown formatting in chat messages */
.chat-message .message-content h1,
.chat-message .message-content h2,
.chat-message .message-content h3 {
    margin: 0.5rem 0;
    color: inherit;
    font-size: 1rem;
    font-weight: 600;
}

.chat-message .message-content h1 {
    font-size: 1.1rem;
}

.chat-message .message-content h2 {
    font-size: 1.05rem;
}

.chat-message .message-content h3 {
    font-size: 1rem;
}

.chat-message .message-content p {
    margin: 0.5rem 0;
    color: inherit;
}

    .chat-message .message-content p:first-child {
        margin-top: 0;
    }

    .chat-message .message-content p:last-child {
        margin-bottom: 0;
    }

.chat-message .message-content strong {
    font-weight: 600;
}

.chat-message .message-content em {
    font-style: italic;
}

.chat-message .message-content code {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Consolas', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
}

.chat-message.user .message-content code {
    background: rgba(255, 255, 255, 0.2);
}

.chat-message .message-content pre {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    margin: 0.5rem 0;
    overflow-x: auto;
}

.chat-message.user .message-content pre {
    background: rgba(255, 255, 255, 0.2);
}

.chat-message .message-content pre code {
    background: none;
    padding: 0;
    font-size: 0.8rem;
    line-height: 1.4;
}

.chat-message .message-content ul,
.chat-message .message-content ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    color: inherit;
}

.chat-message .message-content li {
    margin-bottom: 0.25rem;
    line-height: 1.4;
    color: inherit;
}

.chat-message .message-content a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.chat-message.user .message-content a {
    color: rgba(255, 255, 255, 0.9);
}

.chat-message.agent .message-content a {
    color: var(--primary-color);
}

.chat-message .message-content a:hover {
    opacity: 0.8;
}

/* Ensure proper spacing for consecutive elements */
.chat-message .message-content > *:first-child {
    margin-top: 0;
}

.chat-message .message-content > *:last-child {
    margin-bottom: 0;
}