@import url('https://fonts.googleapis.com/css2?family=Futura:wght@700&family=Oswald:ital@1&display=swap');

.chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 50000;
}

.chatbot-icon {
    width: 90px;
    height: 90px;
    background: url('https://josephginsberg.com/wp-content/uploads/2025/05/Picture3-1.webp') center/cover;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 10px #FF6200;
    transition: transform 0.3s;
    position: relative;
    z-index: 50001;
}

.chatbot-icon:hover {
    transform: scale(1.1);
}

.chatbot-window {
    display: none;
    width: 350px;
    height: 500px;
    background: #FFFFFF;
    border: 2px solid #FF6200;
    border-radius: 15px;
    position: fixed;
    bottom: 100px;
    right: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    padding: 10px;
    font-family: 'Oswald', sans-serif;
    color: #000000;
    text-align: left;
    z-index: 10000;
}

.chatbot-header {
    background: #FF6200;
    padding: 15px;
    font-family: 'Futura', sans-serif;
    color: #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 13px;
    border-top-right-radius: 13px;
}

.minimize-button, .close-button {
    background: none;
    border: none;
    color: #000000;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
    position: relative;
    z-index: 10001;
}

.secondary-close-button {
    background: none;
    border: none;
    color: #000000;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    display: block;
    margin: 5px auto 0;
    text-align: center;
    z-index: 10001;
}

.chatbot-messages {
    padding: 20px;
    height: 300px;
    overflow-y: auto;
    background: #FFFFFF;
    color: #000000;
}

.bot-message, .user-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
}

.bot-message {
    background: #FFFFFF;
    color: #FF6200;
    border: 1px solid #000000;
    animation: glow 2s infinite;
}

.bot-message::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    border-width: 10px;
    border-style: solid;
    border-color: #FFFFFF transparent transparent transparent;
}

.user-message {
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
    text-align: right;
}

.typing-indicator {
    padding: 10px;
    color: #000000;
    font-style: italic;
}

/* ✅ Repaired Suggestions Section */
.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    justify-content: center;
    max-width: 100%;
    box-sizing: border-box;
}

.suggestion {
    background: #FF6200;
    color: #000000;
    border: 1px solid #000000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    flex: 1 1 calc(45% - 10px);
    min-width: 140px;
    max-width: 100%;
    text-align: center;
    transition: transform 0.3s;
}

.suggestion:hover {
    transform: scale(1.05);
}

.chatbot-input {
    width: calc(100% - 20px);
    margin: 0 10px;
    padding: 10px;
    border: none;
    background: #FFFFFF;
    color: #FF6200;
    border-bottom-left-radius: 13px;
    border-bottom-right-radius: 13px;
    position: relative;
    z-index: 10001;
}

.chatbot-input:focus {
    outline: none;
    border: none;
}

.voice-bubble {
    display: none;
}

.motivational-line {
    position: absolute;
    bottom: 115px;
    left: 270px;
    color: #FFFFFF;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    white-space: nowrap;
    background: #000000;
    padding: 10px 20px;
    border: 2px solid #FF6200;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    animation: unroll 40s linear forwards;
    z-index: 10002;
}

@keyframes unroll {
    0% { transform: translateX(0) scaleX(0); transform-origin: left; }
    5% { transform: translateX(0) scaleX(1); }
    90% { transform: translateX(-100vw) scaleX(1); }
    100% { transform: translateX(-110vw) scaleX(1); }
}

@keyframes glow {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}
