* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: #202124;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.assistant-page {
    width: 100%;
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.assistant-card {
    width: 100%;
    max-width: 760px;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .07);
    overflow: hidden;
}

.assistant-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff, #f0fdf4);
    border-bottom: 1px solid #e5e7eb;
}

.assistant-avatar {
    width: 58px;
    min-width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #198754;
    color: #ffffff;
    font-size: 28px;
}

.assistant-eyebrow {
    margin: 0 0 3px;
    color: #198754;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.assistant-header h1 {
    margin: 0;
    color: #111827;
    font-size: 25px;
}

.assistant-status {
    margin: 4px 0 0;
    color: #667085;
    font-size: 13px;
}

.assistant-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;
    border-radius: 50%;
    background: #198754;
}

.assistant-welcome {
    padding: 28px 24px 20px;
}

.assistant-welcome h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 25px;
}

.assistant-welcome p {
    margin: 0 0 10px;
    color: #5b6470;
    font-size: 16px;
    line-height: 1.6;
}

.assistant-topics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 24px 24px;
}

.assistant-topic {
    width: 100%;
    min-height: 82px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    background: #ffffff;
    border: 1px solid #e2e6ea;
    border-radius: 11px;
    color: #202124;
    transition: background .2s, border-color .2s, transform .2s;
}

.assistant-topic:hover {
    background: #f0fdf4;
    border-color: #b9ddc8;
    transform: translateY(-1px);
}

.assistant-topic:focus-visible,
#assistant-send:focus-visible,
#assistant-input:focus-visible {
    outline: 3px solid rgba(25, 135, 84, .25);
    outline-offset: 2px;
}

.assistant-topic-icon {
    width: 42px;
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f0fdf4;
    font-size: 21px;
}

.assistant-topic strong,
.assistant-topic small {
    display: block;
}

.assistant-topic strong {
    margin-bottom: 4px;
    color: #111827;
    font-size: 15px;
}

.assistant-topic small {
    color: #68707d;
    font-size: 12px;
    line-height: 1.4;
}

.assistant-response {
    margin: 0 24px 24px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
}

.assistant-response h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 17px;
}

.assistant-response p {
    margin: 0 0 12px;
    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
}

.assistant-response a {
    display: inline-block;
    min-height: 44px;
    padding: 11px 15px;
    border-radius: 8px;
    background: #198754;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.assistant-response a:hover {
    background: #157347;
}

.assistant-question {
    padding: 20px 24px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.assistant-question label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

.assistant-input-row {
    display: flex;
    gap: 10px;
}

#assistant-input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #cfd5dc;
    border-radius: 8px;
    background: #ffffff;
    color: #202124;
    font-size: 16px;
}

#assistant-send {
    min-width: 78px;
    min-height: 48px;
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    background: #198754;
    color: #ffffff;
    font-weight: 700;
}

#assistant-send:hover {
    background: #157347;
}

.assistant-footer {
    padding: 18px 24px 24px;
    text-align: center;
}

.assistant-footer a {
    color: #198754;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 650px) {
    .assistant-page {
        padding: 15px 10px;
        align-items: flex-start;
    }

    .assistant-card {
        border-radius: 14px;
    }

    .assistant-header {
        padding: 20px 18px;
    }

    .assistant-welcome {
        padding: 22px 18px 16px;
    }

    .assistant-topics {
        grid-template-columns: 1fr;
        padding: 0 18px 20px;
    }

    .assistant-question {
        padding: 18px;
    }

    .assistant-input-row {
        flex-direction: column;
    }

    #assistant-send {
        width: 100%;
    }

    .assistant-footer {
        padding: 16px 18px 22px;
    }
}

/* Guided conversation options */
.assistant-response p:has(a) {
    margin: 8px 0;
}

.assistant-response p a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
}

