@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --secondary-color: #00897B;
    --accent-color: #FFA726;
    --bg-color: #F5F5F5;
    --chat-bg: rgba(255, 255, 255, 0.95);
    --user-msg-bg: #E8F5E9;
    --bot-msg-bg: #F1F3F4;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #E0E0E0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 25%, #7e8ba3 50%, #b8c5d1 75%, #e8edf3 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Modern building pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Geometric building shapes */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: rotate(45deg) translate(0, 0);
    }
    50% {
        transform: rotate(45deg) translate(-30px, -30px);
    }
}

/* Ensure content is above background effects */
.chat-container,
.faq-sidebar,
.forms-sidebar,
.modal {
    position: relative;
    z-index: 1;
}

/* Main Wrapper */
.main-wrapper {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    align-items: flex-start;
    justify-content: center;
}

.chat-container {
    width: 100%;
    max-width: 900px;
    height: 90vh;
    max-height: 800px;
    background: var(--chat-bg);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    display: none; /* Hidden by default, will be shown after user info is submitted */
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    transition: opacity 0.5s ease, transform 0.3s ease;
    flex: 1;
}

/* Header */
.chat-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 24px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 10;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.company-info i {
    font-size: 36px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.company-info h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 4px;
    backdrop-filter: blur(10px);
}

.btn-lang {
    background: transparent;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    min-width: 60px;
    justify-content: center;
}

.btn-lang:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-lang.active {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-weight: 600;
}

.btn-lang .lang-flag {
    font-size: 18px;
    line-height: 1;
}

.btn-lang .lang-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Language Selector in Modal - Top Position */
.modal-language-selector-top {
    padding: 20px 24px 16px 24px;
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    border-bottom: 1px solid #E9ECEF;
    border-radius: 24px 24px 0 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-language-selector-top label,
.modal-language-selector-top .language-selector-label {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px !important;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.modal-language-selector-top .language-selector-label i {
    color: var(--primary-color);
}

.modal-language-selector-top .language-selector-modal {
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

.modal-language-selector {
    margin-bottom: 24px;
    padding: 16px;
    background: #F8F9FA;
    border-radius: 12px;
    border: 1px solid #E9ECEF;
}

.language-selector-modal {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.btn-lang-modal {
    flex: 1;
    background: white;
    border: 2px solid #E0E0E0;
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    font-weight: 500;
}

.btn-lang-modal:hover {
    border-color: var(--primary-color);
    background: rgba(46, 125, 50, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
}

.btn-lang-modal.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
    font-weight: 600;
}

.btn-lang-modal .lang-flag {
    font-size: 20px;
    line-height: 1;
}

.btn-lang-modal .lang-text {
    font-size: 14px;
    font-weight: inherit;
    letter-spacing: 0.3px;
}

/* Chat Body */
.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: rgba(255, 255, 255, 0.6);
    scroll-behavior: smooth;
}

/* Scrollbar Styling */
.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-track {
    background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.chat-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

.message {
    display: flex;
    margin-bottom: 20px;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 75%;
    padding: 16px 20px;
    border-radius: 20px;
    line-height: 1.6;
    word-wrap: break-word;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.message.bot .message-content {
    background: white;
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.message.user .message-content {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.message.system .message-content {
    background: #FFF3E0;
    color: #E65100;
    max-width: 90%;
    text-align: center;
    border-radius: 12px;
    margin: 0 auto;
    font-size: 14px;
    border: 1px solid #FFE0B2;
}

/* Thank You Message Styling */
.message.thank-you .message-content {
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
    border: 2px solid #4CAF50;
    max-width: 85%;
    text-align: center;
    padding: 24px;
    border-radius: 16px;
    margin: 0 auto;
}

.thank-you-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.thank-you-content i {
    color: #4CAF50;
    font-size: 48px;
    margin-bottom: 8px;
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.thank-you-title {
    font-size: 18px;
    font-weight: 600;
    color: #2E7D32;
    margin: 0;
    line-height: 1.4;
}

.thank-you-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
    opacity: 0.9;
    font-style: italic;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.message-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 6px;
    display: block;
    opacity: 0.8;
}

.message.user .message-time {
    color: rgba(255, 255, 255, 0.8);
    text-align: right;
}

.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 16px 24px;
    background: white;
    border-radius: 20px;
    border-bottom-left-radius: 4px;
    width: fit-content;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
    opacity: 0.6;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* Contact Info */
.contact-info {
    margin-top: 16px;
    padding: 16px;
    background: #F8F9FA;
    border-radius: 12px;
    border: 1px solid #E9ECEF;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
    color: var(--text-primary);
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Suggestions */
.chat-suggestions {
    display: none; /* Hidden - FAQ moved to sidebar */
}

.suggestion-chip {
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.suggestion-chip:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

/* FAQ Sidebar */
.faq-sidebar {
    width: 400px;
    max-width: 400px;
    height: 90vh;
    max-height: 800px;
    background: var(--chat-bg);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    transition: opacity 0.5s ease, transform 0.3s ease;
}

.faq-sidebar-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 20px 24px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 10;
}

.faq-sidebar-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-sidebar-header i {
    font-size: 20px;
}

.faq-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.faq-table-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.faq-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.faq-table thead {
    position: sticky;
    top: 0;
    background: var(--primary-color);
    color: white;
    z-index: 5;
}

.faq-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.faq-table th:first-child {
    width: 40%;
}

.faq-table th:last-child {
    width: 60%;
}

.faq-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.faq-table tbody tr:hover {
    background-color: rgba(46, 125, 50, 0.05);
}

.faq-table td {
    padding: 14px 16px;
    vertical-align: top;
    line-height: 1.5;
}

.faq-table td:first-child {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 13px;
}

.faq-table td:last-child {
    color: var(--text-secondary);
    font-size: 12px;
}

.faq-loading {
    text-align: center;
    padding: 40px 20px !important;
    color: var(--text-secondary);
}

.faq-loading i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
    color: var(--primary-color);
}

.faq-loading span {
    display: block;
    margin-top: 10px;
}

.faq-empty {
    text-align: center;
    padding: 40px 20px !important;
    color: var(--text-secondary);
}

.faq-empty i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
    color: var(--border-color);
}

/* Forms Sidebar */
.forms-sidebar {
    width: 350px;
    max-width: 350px;
    height: 90vh;
    max-height: 800px;
    background: var(--chat-bg);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    transition: opacity 0.5s ease, transform 0.3s ease;
    margin-right: 20px;
}

.forms-sidebar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forms-sidebar-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.forms-language-selector {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 3px;
    backdrop-filter: blur(10px);
}

.btn-lang-small {
    background: transparent;
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 7px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 11px;
    font-weight: 500;
}

.btn-lang-small:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-lang-small.active {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    font-weight: 600;
}

.btn-lang-small .lang-flag {
    font-size: 14px;
    line-height: 1;
}

.btn-lang-small .lang-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.forms-sidebar-header i {
    font-size: 20px;
}

.forms-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.forms-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.form-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-link:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.form-link i:first-child {
    font-size: 20px;
    color: #667eea;
}

.form-link span {
    flex: 1;
}

.form-link i:last-child {
    font-size: 14px;
    color: var(--text-secondary);
    opacity: 0.7;
}

.forms-info {
    background: #F0F7FF;
    border-left: 4px solid #667eea;
    padding: 15px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.forms-info i {
    color: #667eea;
    margin-right: 8px;
}

/* Footer */
.chat-footer {
    padding: 24px;
    background: white;
    border-top: 1px solid var(--border-color);
}

.question-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    background: #F5F5F5;
    padding: 6px 12px;
    border-radius: 6px;
    width: fit-content;
}

.context-badge {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--primary-color);
    background: #E3F2FD;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(102, 126, 234, 0.4);
    margin-bottom: 12px;
}

.context-badge i {
    color: #667eea;
}

.input-container {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    background: #F8F9FA;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.input-container:focus-within {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

textarea {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    resize: none;
    font-family: inherit;
    font-size: 16px;
    max-height: 120px;
    outline: none;
    color: var(--text-primary);
}

.btn-send {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
}

.btn-send:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-send:disabled {
    background: #E0E0E0;
    color: #9E9E9E;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F8F9FA;
}

/* Ensure modal header h2 is centered when it's the only child */
.modal-header:has(h2:only-child) {
    justify-content: center;
}

.modal-header h2:only-child {
    width: 100%;
    text-align: center;
}

.modal-header h2 {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

.close-modal {
    background: white;
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-modal:hover {
    background: #F5F5F5;
    color: var(--error-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 15px;
}

.modal-body p:first-child {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group label i {
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    background: #FAFAFA;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

/* Scheme Options */
.scheme-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.scheme-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    background: #FAFAFA;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.scheme-option:hover {
    border-color: var(--primary-color);
    background: #F5F5F5;
}

.scheme-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.scheme-option input[type="checkbox"]:checked + .scheme-name {
    color: var(--primary-color);
    font-weight: 600;
}

.scheme-option:has(input[type="checkbox"]:checked) {
    border-color: var(--primary-color);
    background: #E8F5E9;
}

.scheme-name {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.info-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.info-btn:hover {
    background: rgba(46, 125, 50, 0.1);
    transform: scale(1.1);
}

.info-btn i {
    font-size: 16px;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 0;
    }

    .chat-container {
        height: 100vh;
        max-height: none;
        border-radius: 0;
        border: none;
    }

    .message-content {
        max-width: 85%;
    }

    .chat-header {
        padding: 16px;
    }

    .company-info i {
        font-size: 28px;
        padding: 8px;
    }

    .company-info h1 {
        font-size: 18px;
    }
    
    .language-selector {
        gap: 4px;
        padding: 3px;
    }
    
    .btn-lang {
        padding: 6px 10px;
        min-width: 50px;
        font-size: 12px;
    }
    
    .btn-lang .lang-flag {
        font-size: 16px;
    }
    
    .btn-lang .lang-text {
        font-size: 11px;
    }
    
    .main-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .forms-sidebar {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        margin-right: 0;
        margin-bottom: 20px;
        order: -2;
    }
    
    .faq-sidebar {
        width: 100%;
        max-width: 100%;
        height: 400px;
        max-height: 400px;
        order: -1;
    }
    
    .faq-table th:first-child,
    .faq-table td:first-child {
        width: 35%;
    }
    
    .faq-table th:last-child,
    .faq-table td:last-child {
        width: 65%;
    }
    
    .faq-table th,
    .faq-table td {
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* Language Selection Initial Modal */
.language-selection-modal-content {
    max-width: 500px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.language-selection-header {
    border-bottom: none !important;
    padding-bottom: 10px !important;
    text-align: center !important;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.language-selection-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.language-selection-title i {
    color: var(--primary-color);
    font-size: 28px;
}

.language-selection-body {
    padding: 40px 30px !important;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.language-selector-initial {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-lang-initial {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: 2px solid transparent;
    color: white;
    padding: 40px 50px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 180px;
    box-shadow: var(--shadow);
}

.btn-lang-initial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.btn-lang-initial:active {
    transform: translateY(-2px);
}

.btn-lang-initial.active {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(255, 167, 38, 0.2);
}

.btn-lang-initial .lang-flag {
    font-size: 64px;
    display: block;
    margin-bottom: 15px;
    line-height: 1;
}

.btn-lang-initial .lang-text {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Responsive for language selection modal */
@media (max-width: 600px) {
    .btn-lang-initial {
        padding: 30px 40px;
        min-width: 150px;
    }
    
    .btn-lang-initial .lang-flag {
        font-size: 48px;
        margin-bottom: 10px;
    }
    
    .btn-lang-initial .lang-text {
        font-size: 18px;
    }
    
    .language-selector-initial {
        gap: 15px;
    }
}