.hero-logo-amsd {
    max-width: 180px;
    height: auto;
    display: block;
    margin-bottom: 22px;
}

.amsd-chatbot {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    font-family: inherit;
}

.amsd-chatbot-toggle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: none;
    background: #46b7f8;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.amsd-chatbot-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
}

.amsd-chatbot-window {
    position: absolute;
    right: 0;
    bottom: 78px;
    width: 370px;
    max-width: calc(100vw - 32px);
    height: 540px;
    max-height: calc(100vh - 120px);
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.30);
    display: none;
    flex-direction: column;
    border: 1px solid rgba(70, 183, 248, 0.25);
}

.amsd-chatbot-window.open {
    display: flex;
}

.amsd-chatbot-header {
    background: linear-gradient(135deg, #071827, #0f2a3f);
    color: #ffffff;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.amsd-chatbot-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.amsd-chatbot-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 12px;
    padding: 5px;
}

.amsd-chatbot-brand strong {
    display: block;
    font-size: 15px;
}

.amsd-chatbot-brand small {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.amsd-chatbot-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.amsd-chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f5f8fb;
}

.amsd-message {
    padding: 11px 13px;
    border-radius: 15px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.45;
    max-width: 88%;
    white-space: pre-wrap;
}

.amsd-message.bot {
    background: #ffffff;
    color: #17202a;
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-right: auto;
}

.amsd-message.user {
    background: #46b7f8;
    color: #ffffff;
    margin-left: auto;
}

.amsd-message.loading {
    color: #64748b;
    font-style: italic;
}

.amsd-chatbot-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.amsd-chatbot-form input {
    flex: 1;
    border: 1px solid #d7dee8;
    border-radius: 999px;
    padding: 12px 14px;
    outline: none;
    font-size: 14px;
}

.amsd-chatbot-form input:focus {
    border-color: #46b7f8;
    box-shadow: 0 0 0 3px rgba(70, 183, 248, 0.18);
}

.amsd-chatbot-form button {
    border: none;
    border-radius: 999px;
    padding: 0 16px;
    background: #46b7f8;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

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

.amsd-chatbot-footer {
    padding: 10px 12px 14px;
    font-size: 12px;
    text-align: center;
    color: #64748b;
    background: #ffffff;
}

.amsd-chatbot-footer a {
    color: #0f75bc;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 600px) {
    .amsd-chatbot {
        right: 14px;
        bottom: 14px;
    }

    .amsd-chatbot-window {
        width: calc(100vw - 28px);
        height: calc(100vh - 110px);
        right: 0;
        bottom: 76px;
        border-radius: 18px;
    }

    .hero-logo-amsd {
        max-width: 145px;
    }
}