/* FieldScore AI - Main Stylesheet */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #1a1a1a;
    background: #ffffff;
    padding-top: 70px; /* Space for fixed navbar */
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    gap: 15px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f4c2e;
    letter-spacing: 0.01em;
}

.nav-brand .logo {
    font-size: 1.8rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #0f4c2e;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    margin: 0;
    flex-wrap: nowrap;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 8px 0;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.nav-link:hover {
    color: #2d8659;
}

.nav-cta {
    background: linear-gradient(135deg, #0f4c2e 0%, #2d8659 100%);
    color: white !important;
    padding: 10px 25px !important;
    border-radius: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 134, 89, 0.3);
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.custom-select-wrapper {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px 11px 14px;
    border: 2px solid rgba(45, 134, 89, 0.15);
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #0f4c2e;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 
                0 1px 3px rgba(0, 0, 0, 0.08),
                inset 0 1px 2px rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
    white-space: nowrap;
    min-width: 145px;
}

.language-btn .globe-icon {
    font-size: 1rem;
}

.language-btn .chevron {
    transition: transform 0.3s ease;
    margin-left: auto;
}

.language-btn:hover {
    background: linear-gradient(135deg, #f0f7f4 0%, #e8f5e9 100%);
    border-color: rgba(45, 134, 89, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 134, 89, 0.12), 
                0 3px 10px rgba(45, 134, 89, 0.08),
                inset 0 1px 2px rgba(255, 255, 255, 1);
}

.language-btn:focus {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7f4 100%);
    border-color: #2d8659;
    box-shadow: 0 0 0 3px rgba(45, 134, 89, 0.15), 
                0 4px 16px rgba(45, 134, 89, 0.18);
}

.language-btn.active .chevron {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15),
                0 4px 12px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(45, 134, 89, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

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

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.language-option:hover {
    background: linear-gradient(135deg, #f0f7f4 0%, #e8f5e9 100%);
    border-left-color: #2d8659;
}

.language-option.selected {
    background: linear-gradient(135deg, #e8f5e9 0%, #d4edda 100%);
    border-left-color: #2d8659;
}

.language-option .lang-code {
    font-weight: 700;
    color: #2d8659;
    font-size: 0.85rem;
    min-width: 28px;
}

.language-option .lang-name {
    color: #0f4c2e;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Chat Language Selector */
.chat-lang-select {
    position: relative;
}

.chat-lang-select .language-btn {
    min-width: 90px;
    padding: 6px 10px;
    font-size: 0.75rem;
    border-radius: 8px;
    gap: 5px;
}

.chat-lang-select .chevron {
    width: 10px;
    height: 10px;
}

.chat-lang-select .language-dropdown {
    min-width: 120px;
    right: 0;
    left: auto;
}

.chat-lang-select .language-option {
    padding: 10px 12px;
    gap: 8px;
}

.chat-lang-select .lang-code {
    font-size: 1rem;
    min-width: 22px;
}

.chat-lang-select .lang-name {
    font-size: 0.8rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f4c2e 0%, #1a5c3d 50%, #2d8659 100%);
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero .tagline {
    font-size: 1.4rem;
    margin-bottom: 10px;
    opacity: 0.95;
}

.hero .subtitle {
    font-size: 1rem;
    opacity: 0.85;
    margin-top: 20px;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 20px;
    border-bottom: 1px solid #e5e5e5;
}

section:last-child {
    border-bottom: none;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #0f4c2e;
    margin-bottom: 10px;
    font-weight: 700;
}

.section-header .rubric {
    display: inline-block;
    background: #e7f3ff;
    color: #0066cc;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layouts */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

/* Cards */
.card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #2d8659;
}

.card h3 {
    color: #0f4c2e;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.card p {
    color: #333;
    margin-bottom: 15px;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #333;
}

.card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2d8659;
    font-weight: bold;
}

/* Impact Statistics */
.impact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-box {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
}

.stat-box .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d8659;
    margin-bottom: 10px;
}

.stat-box .label {
    color: #666;
    font-size: 1rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.team-member .avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #2d8659 0%, #1a5c3d 100%);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
}

.team-member h3 {
    color: #0f4c2e;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.team-member .role {
    color: #2d8659;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.team-member .skills {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.team-member .links {
    margin-top: 15px;
}

.team-member .links a {
    display: inline-block;
    margin: 0 5px;
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
}

.team-member .links a:hover {
    text-decoration: underline;
}

/* Strength Section */
.strength-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 35px;
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f7ff 100%);
    border-radius: 8px;
    border-left: 6px solid #0066cc;
}

.strength-section p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
}

/* Roadmap Section */
.roadmap-stage {
    text-align: center;
    margin: 40px 0;
}

.roadmap-stage .current {
    display: inline-block;
    background: #2d8659;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(45, 134, 89, 0.3);
}

.roadmap-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.roadmap-phase {
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
    position: relative;
}

.roadmap-phase .phase-number {
    position: absolute;
    top: -20px;
    left: 20px;
    background: #2d8659;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.roadmap-phase h3 {
    color: #0f4c2e;
    margin-bottom: 10px;
    font-size: 1.3rem;
    margin-top: 10px;
}

.roadmap-phase .duration {
    color: #2d8659;
    font-weight: 600;
    margin-bottom: 15px;
}

.roadmap-phase ul {
    list-style: none;
    padding-left: 0;
}

.roadmap-phase ul li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: #333;
    font-size: 0.95rem;
}

.roadmap-phase ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2d8659;
}

/* Technology Stack */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.tech-category {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
}

.tech-category h3 {
    color: #0f4c2e;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid #2d8659;
    padding-bottom: 10px;
}

.tech-category ul {
    list-style: none;
    padding-left: 0;
}

.tech-category ul li {
    padding: 8px 0;
    color: #333;
    font-size: 0.95rem;
}

.tech-category ul li strong {
    color: #0f4c2e;
}

/* AI Highlight Box */
.ai-highlight {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
}

.ai-highlight h3 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.ai-highlight p {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.8;
}

.ai-highlight ul {
    margin-top: 15px;
    padding-left: 20px;
}

.ai-highlight ul li {
    color: #333;
    padding: 5px 0;
}

/* Demo Video Section */
.video-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.video-container h2 {
    font-size: 2.5rem;
    color: #0f4c2e;
    text-align: center;
    margin-bottom: 10px;
}

.video-container p {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.video-wrapper {
    position: relative;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    margin-bottom: 40px;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-description {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.video-description h3 {
    color: #0f4c2e;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.video-description ol {
    margin-bottom: 30px;
    padding-left: 25px;
}

.video-description li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
}

.video-description li strong {
    color: #0f4c2e;
}

.video-description .btn {
    display: inline-block;
    background: linear-gradient(135deg, #0f4c2e 0%, #2d8659 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(15, 76, 46, 0.3);
}

.video-description .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 76, 46, 0.4);
}

/* Responsive Video Section */
@media (max-width: 768px) {
    .video-container {
        padding: 60px 20px;
    }
    
    .video-container h2 {
        font-size: 2rem;
    }
    
    .video-description {
        padding: 30px 20px;
    }
    
    .video-description h3 {
        font-size: 1.5rem;
    }
    
    .video-description li {
        font-size: 1rem;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0f4c2e 0%, #2d8659 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-section .btn {
    display: inline-block;
    background: white;
    color: #0f4c2e;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

footer p {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .tagline {
        font-size: 1.1rem;
    }
    
    .two-column,
    .impact-stats,
    .team-grid,
    .roadmap-timeline,
    .tech-stack {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #e5e5e5;
}

.modal-header h2 {
    color: #0f4c2e;
    font-size: 1.8rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #666;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #0f4c2e;
}

.modal-body {
    padding: 30px;
}

.modal-description {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 30px;
}

/* Demo Form Styles */
.demo-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #0f4c2e;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2d8659;
}

.form-group small {
    color: #666;
    font-size: 0.85rem;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e5e5e5;
}

.btn-primary,
.btn-secondary {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #0f4c2e 0%, #2d8659 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 134, 89, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e5e5e5;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #2d8659;
}

/* Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Result Section */
.result-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #2d8659;
}

.result-header h3 {
    color: #0f4c2e;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-score {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
}

.score-value {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.score-value.low-risk {
    color: #28a745;
}

.score-value.medium-risk {
    color: #ffc107;
}

.score-value.high-risk {
    color: #dc3545;
}

.score-label {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 10px;
}

.score-category {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
}

.score-category.low-risk {
    background: #d4edda;
    color: #155724;
}

.score-category.medium-risk {
    background: #fff3cd;
    color: #856404;
}

.score-category.high-risk {
    background: #f8d7da;
    color: #721c24;
}

.result-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.result-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
}

.result-item strong {
    color: #0f4c2e;
    display: block;
    margin-bottom: 5px;
}

.result-recommendation {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.result-recommendation h4 {
    color: #0f4c2e;
    margin-bottom: 10px;
}

.result-recommendation p {
    color: #333;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Body menu-open state */
body.menu-open {
    overflow: hidden;
}

/* Hamburger animation */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Responsive for Navbar and Modal */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        gap: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 22px 15px;
        border-bottom: 1px solid #e5e5e5;
    }
    
    .nav-link:last-of-type {
        border-bottom: none;
    }
    
    .nav-cta {
        text-align: center;
        margin-top: 15px;
        padding: 22px 15px;
        border-top: 2px solid #e5e5e5;
    }
    
    .language-switcher {
        width: 100%;
        padding: 25px 15px;
        justify-content: center;
        margin-top: 15px;
        border-top: 2px solid #e5e5e5;
        display: flex;
    }
    
    .language-switcher::before {
        display: none;
    }
    
    .language-switcher select {
        width: 90%;
        max-width: 280px;
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .result-details {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* AI Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.chatbot-toggle {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f4c2e 0%, #2d8659 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(45, 134, 89, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(45, 134, 89, 0.6);
}

.chatbot-icon {
    width: 28px;
    height: 28px;
    color: white;
}

.chatbot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.chatbot-window.active {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-header {
    background: linear-gradient(135deg, #0f4c2e 0%, #2d8659 100%);
    color: white;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.chatbot-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chatbot-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.chatbot-status {
    font-size: 0.8rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chatbot-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.chatbot-close:hover {
    opacity: 0.7;
}

.chatbot-close svg {
    width: 24px;
    height: 24px;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8f9fa;
}

.chatbot-message {
    display: flex;
    gap: 10px;
    animation: messageIn 0.3s ease;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #0f4c2e 0%, #2d8659 100%);
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.message-content {
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 75%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.user-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.message-content p {
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.message-content ul li {
    margin: 4px 0;
    line-height: 1.4;
}

.chatbot-typing {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #666;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

.chatbot-input-container {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-top: 2px solid #e5e5e5;
}

.chatbot-input {
    flex: 1;
    border: 2px solid #ddd;
    border-radius: 24px;
    padding: 12px 24px 12px 18px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: none;
    max-height: 100px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    line-height: 1.4;
    overflow-y: auto;
    box-sizing: border-box;
}

.chatbot-input::-webkit-scrollbar {
    width: 8px;
}

.chatbot-input::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 4px 8px 0;
}

.chatbot-input::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 10px;
    border: 2px solid white;
}

.chatbot-input::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.chatbot-input:focus {
    outline: none;
    border: 2px solid #2d8659;
    box-shadow: 0 0 0 3px rgba(45, 134, 89, 0.1), 0 4px 12px rgba(45, 134, 89, 0.15);
}

.chatbot-send {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f4c2e 0%, #2d8659 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chatbot-send:hover {
    transform: scale(1.1);
}

.chatbot-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chatbot-send svg {
    width: 20px;
    height: 20px;
}

/* Mobile Responsive for Chatbot */
@media (max-width: 768px) {
    .chatbot-window {
        width: calc(100vw - 20px);
        height: calc(100vh - 120px);
        right: 10px;
        bottom: 80px;
    }
    
    .chatbot-toggle {
        width: 55px;
        height: 55px;
        right: 15px;
        bottom: 15px;
    }
    
    .message-content {
        max-width: 85%;
    }
}
