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

html {
    scroll-behavior: smooth;
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fff;
    min-height: 100vh;
}

/* ── Landing page sections (desktop only) ─────────────────────── */

.landing-nav {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.landing-nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.nav-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
}

.nav-subtitle {
    font-size: 0.75rem;
    color: #888;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #444;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #2d7a3e;
}

.landing-hero {
    background: #f8f9f8;
    text-align: center;
    padding: 3rem 2rem;
    border-bottom: 1px solid #e8e8e8;
}

.landing-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    max-width: 90%;
    margin: 0 auto 1rem;
    line-height: 1.35;
}

.landing-hero p {
    font-size: 1rem;
    color: #555;
    max-width: 65%;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-cta {
    display: inline-block;
    background: #2d7a3e;
    color: #fff;
    text-decoration: none;
    padding: 0.9rem 2.2rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s;
}

.hero-cta:hover {
    background: #236a31;
}

.landing-features {
    display: flex;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1.5rem 3.5rem;
}

.feature-card {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.75rem;
    background: #fff;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d7a3e;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
}

.carousel-track {
    display: contents;
}

.carousel-dots {
    display: none;
}

.landing-chat-label {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 1.25rem;
}

.landing-chat-label h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111;
}

/* ── Contact section ──────────────────────────────────────────── */

.contact-section {
    background: #f8f9f8;
    border-top: 1px solid #e8e8e8;
    padding: 3.5rem 2rem;
}

.contact-inner {
    max-width: 560px;
    margin: 0 auto;
}

.contact-inner h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 1.75rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2d7a3e;
}

.contact-form button {
    align-self: flex-start;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
}

/* ── Footer ───────────────────────────────────────────────────── */

.site-footer {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.82rem;
    color: #888;
}

/* ── Chat area wrapper ─────────────────────────────────────────── */

.chat-area {
    background: #f0f0f0;
    padding: 2rem 2rem 3rem;
    display: flex;
    justify-content: center;
}

.main-wrapper {
    display: flex;
    gap: 1rem;
    max-width: 1200px;
    width: 100%;
    height: 650px;
}

.faq-sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    width: 320px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    background: #2d7a3e;
    color: white;
    padding: 1rem;
    text-align: center;
}

.sidebar-header h3 {
    font-size: 1rem;
    font-weight: 500;
}

.categories-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.category-item {
    margin-bottom: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.category-header {
    background: #f5f5f5;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    user-select: none;
}

.category-header:hover {
    background: #e8f5e9;
}

.category-name {
    font-weight: 500;
    color: #2d7a3e;
    font-size: 0.9rem;
}

.toggle-icon {
    color: #666;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.category-item.expanded .category-header {
    background: #e8f5e9;
}

.questions-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.question-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #555;
    transition: all 0.2s;
}

.question-item:hover {
    background: #f9f9f9;
    color: #2d7a3e;
    padding-left: 1.25rem;
}

.question-item:active {
    background: #e8f5e9;
}

.container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


.chat-box {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    animation: fadeIn 0.3s ease-in;
    max-width: 75%;
    width: fit-content;
}

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

.user {
    background: #e8f5e9;
    color: #1b5e20;
    align-self: flex-end;
    margin-left: auto;
    border: 1px solid #a5d6a7;
}

.bot {
    background: white;
    border: 1px solid #e0e0e0;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.error-message {
    background: #fff8e1;
    border: 1px solid #ffe082;
    color: #7a5800;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.75rem 1rem;
    min-width: 52px;
}

.typing-indicator span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #aaa;
    animation: typing-bounce 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%            { transform: translateY(-5px); opacity: 1; }
}

.welcome-message {
    background: white;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1rem 1.25rem;
    text-align: left;
    border-radius: 12px;
    color: #333;
    max-width: 75%;
    align-self: flex-start;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.welcome-message strong {
    color: #2d7a3e;
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.faq-reference {
    background: #f0f0f0;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    color: #666;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.input-area {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #e0e0e0;
}

form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

input[type="text"] {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

input[type="text"]:focus {
    outline: none;
    border-color: #2d7a3e;
}

button {
    padding: 1rem 2rem;
    background: #2d7a3e;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #236a31;
}

button:active {
    background: #1b5023;
}

.mobile-submit {
    display: none;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.85rem;
}

.clear-link {
    color: #666;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.clear-link:hover {
    background: #f0f0f0;
    color: #333;
}

/* Scrollbar styling */
.chat-box::-webkit-scrollbar {
    width: 8px;
}

.chat-box::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-box::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.chat-box::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Scrollbar styling for sidebar */
.categories-list::-webkit-scrollbar {
    width: 6px;
}

.categories-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.categories-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.categories-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 768px) {

    /* ── Navbar ── */
    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
        padding: 0.85rem 1.25rem;
    }

    .nav-links {
        gap: 1.25rem;
        flex-wrap: wrap;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    /* ── Hero ── */
    .landing-hero {
        padding: 2.5rem 1.25rem;
    }

    .landing-hero h1 {
        font-size: 1.4rem;
        max-width: 100%;
    }

    .landing-hero p {
        font-size: 0.95rem;
        max-width: 100%;
    }

    /* ── Feature carousel ── */
    .landing-features {
        overflow: hidden;
        padding: 1.5rem 0;
        gap: 0;
        max-width: 100%;
    }

    .carousel-track {
        display: flex;
        transition: transform 0.35s ease;
        will-change: transform;
    }

    .feature-card {
        flex: 0 0 85vw;
        margin: 0 7.5vw;
    }

    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.5rem 0 1.5rem;
    }

    .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ccc;
        cursor: pointer;
        transition: background 0.2s;
    }

    .dot.active {
        background: #2d7a3e;
    }

    /* ── Chat area ── */
    .chat-area {
        padding: 1.5rem 1rem 2rem;
    }

    .main-wrapper {
        flex-direction: column;
        height: auto;
        gap: 0.75rem;
    }

    .faq-sidebar {
        width: 100%;
        height: auto;
    }

    .sidebar-header {
        cursor: pointer;
        background: #f5f5f5;
        border-bottom: 1px solid #e0e0e0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .sidebar-header h3 {
        font-size: 0.9rem;
        color: #2d7a3e;
        font-weight: 500;
    }

    .sidebar-header::after {
        content: '▼ Πατήστε για εμφάνιση';
        font-size: 0.7rem;
        color: #666;
    }

    .faq-sidebar.mobile-collapsed .categories-list {
        display: none;
    }

    .faq-sidebar.mobile-expanded .sidebar-header {
        background: #e8f5e9;
    }

    .faq-sidebar.mobile-expanded .sidebar-header::after {
        content: '▲ Πατήστε για απόκρυψη';
    }

    .categories-list {
        max-height: 50vh;
        overflow-y: auto;
        padding: 0.5rem;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .container {
        flex: none;
        height: 540px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .chat-box {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding: 1rem;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: auto;
    }

    .input-area {
        flex-shrink: 0;
        padding: 1rem;
    }

    form button[type="submit"] {
        display: none;
    }

    form {
        margin-bottom: 0.5rem;
    }

    form input[type="text"] {
        width: 100%;
    }

    .mobile-submit {
        display: block;
        flex: 0 0 auto;
    }

    .footer-links {
        justify-content: center;
        gap: 0.75rem;
    }

    .message {
        max-width: 85%;
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }

    .welcome-message {
        max-width: 90%;
        font-size: 0.9rem;
    }

    button {
        padding: 0.85rem 1.25rem;
        font-size: 0.9rem;
    }

    input[type="text"] {
        font-size: 0.9rem;
        padding: 0.85rem;
    }

    form {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .footer-links {
        font-size: 0.8rem;
    }

    .category-name {
        font-size: 0.85rem;
    }

    .question-item {
        font-size: 0.8rem;
        padding: 0.65rem 0.85rem;
    }

    .question-item:hover {
        padding-left: 1rem;
    }

    .faq-reference {
        font-size: 0.8rem;
        padding: 0.65rem 0.85rem;
    }

    /* ── Contact ── */
    .contact-section {
        padding: 2rem 1.25rem;
    }

    .contact-inner {
        max-width: 100%;
    }

    /* ── Footer ── */
    .site-footer {
        padding: 1.25rem 1rem;
        font-size: 0.78rem;
    }
}

/* ── No-match contact bubble ─────────────────────────────────────── */
.no-match-contact {
    margin-top: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: #fff3cd;
    border-left: 3px solid #f0a500;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #5a4000;
}

.no-match-contact a {
    color: #2d7a3e;
    font-weight: 600;
    text-decoration: none;
}

/* ── Contact form feedback ───────────────────────────────────────── */
.contact-direct {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-direct a {
    color: #2d7a3e;
    font-weight: 600;
    text-decoration: none;
}

.contact-status {
    padding: 0.65rem 0.9rem;
    border-radius: 6px;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.contact-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


