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


body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f8fb;
    color: #111827;
    min-height: 100vh;
}


/* =========================================
   HEADER
========================================= */

.ai-header {
    height: 78px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6%;
}


.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
    color: #111827;
    font-weight: 700;
}


.logo img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}


.back-link {
    text-decoration: none;
    color: #009fe3;
    font-weight: 600;
}


/* =========================================
   MAIN
========================================= */

.ai-page {
    min-height: calc(100vh - 78px);

    display: flex;
    justify-content: center;

    padding: 70px 20px;
}


.ai-container {
    width: 100%;
    max-width: 900px;
}


/* =========================================
   INTRO
========================================= */

.ai-intro {
    text-align: center;
    margin-bottom: 35px;
}


.ai-symbol {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: #009fe3;
    color: white;

    font-size: 22px;
    font-weight: 800;
}


.eyebrow {
    display: block;

    font-size: 12px;
    letter-spacing: 2px;

    color: #009fe3;
    font-weight: 700;

    margin-bottom: 12px;
}


.ai-intro h1 {
    font-size: 42px;
    margin-bottom: 14px;
}


.ai-intro p {
    max-width: 650px;
    margin: auto;

    color: #6b7280;
    line-height: 1.7;
}


/* =========================================
   SUGGESTIONS
========================================= */

.suggestions {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;

    margin-bottom: 25px;
}


.suggestions button {
    border: 1px solid #dfe7ed;

    background: #ffffff;

    padding: 16px;

    border-radius: 12px;

    cursor: pointer;

    text-align: left;

    font-size: 14px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.suggestions button:hover {
    transform: translateY(-2px);

    border-color: #009fe3;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.06);
}


/* =========================================
   CHAT
========================================= */

.chat-box {
    background: #ffffff;

    border:
        1px solid #dfe7ed;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.07);
}


.messages {
    min-height: 350px;
    max-height: 520px;

    overflow-y: auto;

    padding: 25px;
}


.message {
    display: flex;

    margin-bottom: 18px;
}


.message.user {
    justify-content: flex-end;
}


.message-content {
    max-width: 75%;

    padding: 13px 16px;

    border-radius: 14px;

    line-height: 1.6;

    font-size: 14px;
}


.message.ai .message-content {
    background: #f1f6f9;
    color: #1f2937;

    border-bottom-left-radius: 4px;
}


.message.user .message-content {
    background: #009fe3;
    color: #ffffff;

    border-bottom-right-radius: 4px;
}


/* =========================================
   TYPING
========================================= */

.typing {
    display: none;

    align-items: center;
    gap: 5px;

    padding: 0 25px 15px;

    color: #6b7280;
}


.typing.active {
    display: flex;
}


.typing span {
    width: 6px;
    height: 6px;

    background: #009fe3;

    border-radius: 50%;

    animation: typing 1.2s infinite;
}


.typing span:nth-child(2) {
    animation-delay: 0.15s;
}


.typing span:nth-child(3) {
    animation-delay: 0.3s;
}


.typing small {
    margin-left: 8px;
}


@keyframes typing {

    0%,
    60%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-3px);
    }

}


/* =========================================
   FORM
========================================= */

.chat-form {
    display: flex;

    gap: 10px;

    padding: 18px;

    border-top:
        1px solid #e5e7eb;
}


.chat-form input {
    flex: 1;

    border:
        1px solid #d1d5db;

    border-radius: 10px;

    padding: 14px;

    font-size: 15px;

    outline: none;
}


.chat-form input:focus {
    border-color: #009fe3;
}


.chat-form button {
    border: none;

    background: #009fe3;

    color: #ffffff;

    padding:
        0 25px;

    border-radius: 10px;

    font-weight: 700;

    cursor: pointer;
}


.chat-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .ai-header {
        padding: 0 20px;
    }


    .logo span {
        display: none;
    }


    .ai-page {
        padding: 40px 15px;
    }


    .ai-intro h1 {
        font-size: 32px;
    }


    .suggestions {
        grid-template-columns: 1fr;
    }


    .messages {
        min-height: 300px;
    }


    .message-content {
        max-width: 88%;
    }


    .chat-form button {
        padding: 0 18px;
    }

}