#gic-chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#gic-chatbot-bubble {
    width: 60px;
    height: 60px;
    background-color: #008080;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#gic-chatbot-bubble:hover {
    transform: scale(1.1);
}

#gic-chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 550px;
    background-color: white;
    max-height: calc(100vh - 140px);
    border-radius: 20px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

#gic-chatbot-window.active {
    display: flex;
}

.gic-chatbot-header {
    background-color: #008080;
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gic-chatbot-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.gic-chatbot-header-title {
    font-weight: 600;
    font-size: 16px;
}

.gic-chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
}

.gic-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.gic-message.bot {
    align-self: flex-start;
    background-color: white;
    color: #333;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.gic-message.user {
    align-self: flex-end;
    background-color: #008080;
    color: white;
    border-bottom-right-radius: 2px;
}

.gic-typing {
    padding: 0 20px 10px;
    font-size: 12px;
    color: #888;
    background-color: #f8f9fa;
}

/* Embedded Form Styles */
.gic-form-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 5px;
}

.gic-form-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: #008080;
    display: block;
    font-size: 15px;
}

.gic-form-group {
    margin-bottom: 12px;
}

.gic-form-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
}

.gic-form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.gic-form-input:focus {
    border-color: #008080;
}

.gic-form-textarea {
    height: 80px;
    resize: none;
}

.gic-form-error {
    color: #c0392b;
    font-size: 12px;
    margin-bottom: 8px;
}

.gic-form-success {
    color: #008080;
    font-weight: 600;
}

.gic-form-verse {
    margin-top: 10px;
    font-style: italic;
    font-size: 13px;
}

.gic-form-submit {
    width: 100%;
    background: #008080;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 5px;
}

.gic-form-submit:hover {
    background: #006666;
}

.gic-form-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.gic-chatbot-input-area {
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
}

.gic-chatbot-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
}

.gic-chatbot-send {
    background: none;
    border: none;
    color: #008080;
    cursor: pointer;
    padding: 5px;
}

.gic-chatbot-send:disabled {
    opacity: 0.5;
    cursor: default;
}

@media (max-width: 480px) {
    #gic-chatbot-container {
        bottom: 16px;
        right: 16px;
    }

    #gic-chatbot-window {
        position: fixed;
        inset: 0;
        width: auto;
        height: auto;
        max-height: none;
        border-radius: 0;
    }

    .gic-chatbot-input {
        font-size: 16px; /* prevents iOS zoom on focus */
    }
}
