﻿* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f8f7;
    color: #18312d;
}

.site-header {
    height: 78px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 7%;
    background: #ffffff;
    border-bottom: 1px solid #e3ece9;
}

.brand-mark,
.chat-avatar {
    display: flex;
    align-items: center;
    justify-content: center; 
    font-weight: 700;
    background-image: url('../image/logo.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

.brand-mark {
    width: 46px;
    height: 46px;
    font-size: 24px;
}

.brand-title { font-size: 19px; font-weight: 700; }
.brand-subtitle { font-size: 12px; color: #76827f; margin-top: 2px; }

.hero {
    max-width: 1180px;
    min-height: calc(100vh - 78px);
    margin: 0 auto;
    padding: 80px 30px;
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    align-items: center;
    gap: 70px;
}

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.7px;
    color: #014185;
}

.hero h1 {
    max-width: 690px;
    font-size: 48px;
    line-height: 1.08;
    margin: 16px 0 22px;
    color: #103832;
}

.hero p {
    max-width: 680px;
    font-size: 18px;
    line-height: 1.7;
    color: #687774;
}

.primary-button {
    margin-top: 14px;
    padding: 14px 24px;
    border: 0;
    border-radius: 8px;
    background: #014185;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.feature-card {
    padding: 32px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(22, 74, 65, .11);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3f5f1;
    color: #014185;
    font-size: 24px;
}

.feature-card h3 { margin-bottom: 8px; font-size: 23px; }
.feature-card > p { color: #76827f; line-height: 1.5; margin-top: 0; }

.feature-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 0;
    border-top: 1px solid #edf1f0;
}

.feature-row > span {
    min-width: 31px;
    height: 31px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf7f5;
    color: #014185;
    font-weight: 700;
}

.feature-row div { display: flex; flex-direction: column; gap: 3px; }
.feature-row small { color: #84918e; }

.chat-launcher {
    position: fixed;
    right: 28px;
    bottom: 26px;
    height: 58px;
    border: 0;
    border-radius: 30px;
    /*padding: 0 22px 0 17px;*/
    display: flex;
    align-items: center;
    gap: 9px;
 /*   background: #014185;*/
    color: white;
    box-shadow: 0 10px 28px rgba(8, 116, 99, .28);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    z-index: 1000;
    transition: .2s ease;
}

.chat-launcher:hover { transform: translateY(-2px); }
.launcher-icon { font-size: 22px; }
.hidden-launcher { opacity: 0; pointer-events: none; transform: translateY(10px); }

.chat-window {
    position: fixed;
    right: 26px;
    bottom: 24px;
    width: 390px;
    height: 640px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
    overflow: hidden;
    z-index: 1100;

    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(.98);
    transition: .22s ease;
}

.chat-window.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chat-header {
    min-height: 74px;
    display: flex;
    align-items: center;
    padding: 14px 15px;
    background: #014185;
    color: #fff;
}

.chat-avatar {
    width: 43px;
    height: 43px;
    background: white;
    color: #014185;
    font-size: 20px;
    flex-shrink: 0;
}

.chat-heading {
    display: flex;
    flex-direction: column;
    margin-left: 11px;
    gap: 4px;
}

.chat-heading strong { font-size: 15px; }
.chat-heading span { font-size: 12px; opacity: .9; }
.chat-heading i {
    width: 7px; height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: #9af0c7;
    margin-right: 5px;
}

.close-button {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 27px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 18px 14px 8px;
    overflow-y: auto;
    background: #f6f9f8;
}

.message-row {
    display: flex;
    margin-bottom: 11px;
}

.message-row.bot { justify-content: flex-start; }
.message-row.user { justify-content: flex-end; }

.message-bubble {
    max-width: 82%;
    padding: 11px 13px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.48;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.bot .message-bubble {
    background: white;
    color: #31433f;
    border: 1px solid #e8efed;
    border-bottom-left-radius: 4px;
}

.user .message-bubble {
    background: #014185;
    color: white;
    border-bottom-right-radius: 4px;
}

.option-area {
    max-height: 150px;
    padding: 4px 12px 9px;
    overflow-y: auto;
    background: #f6f9f8;
}

.option-button {
    width: 100%;
    margin: 4px 0;
    padding: 9px 11px;
    border: 1px solid #92c7bd;
    border-radius: 9px;
    background: white;
    color: #014185;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.option-button:hover { background: #eaf6f3; }

.input-area {
    display: flex;
    padding: 10px 11px;
    gap: 7px;
    border-top: 1px solid #e5ecea;
    background: white;
}

.input-area input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #d7e1de;
    border-radius: 21px;
    outline: none;
}

.input-area input:focus { border-color: #014185; }

.input-area button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #014185;
    color: #fff;
    cursor: pointer;
}

.input-area button:disabled,
.input-area input:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.chat-footer-text {
    padding: 0 0 9px;
    background: white;
    color: #a1aaa8;
    text-align: center;
    font-size: 10px;
}

.typing {
    padding: 6px 17px 9px;
    background: #f6f9f8;
}

.typing span {
    width: 6px;
    height: 6px;
    margin-right: 3px;
    display: inline-block;
    border-radius: 50%;
    background: #94a6a2;
    animation: blink 1.2s infinite;
}

.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
.hidden { display: none; }

@keyframes blink {
    0%, 60%, 100% { opacity: .35; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 820px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 55px 24px 110px;
        gap: 35px;
    }

    .hero h1 { font-size: 36px; }
}

@media (max-width: 520px) {
    .site-header { padding: 0 18px; }
    .hero { padding-left: 18px; padding-right: 18px; }
    .hero h1 { font-size: 31px; }

    .chat-launcher {
        right: 16px;
        bottom: 16px;
    }

    .chat-window {
        inset: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}
.pdf-download-link {
    display: inline-block;
    margin: 10px;
    padding: 10px 15px;
    background: #0d6efd;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

    .pdf-download-link:hover {
        background: #0b5ed7;
        color: white;
    }