/* Chatbot Container */
.sc-chatbot-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

/* Toggle Button */
.sc-chatbot-toggle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d90429 0%, #ef233c 100%);
    color: #fff;
    border: none;
    box-shadow: 0 10px 25px rgba(217, 4, 41, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
}

.sc-chatbot-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(217, 4, 41, 0.5);
}

.sc-chatbot-toggle i {
    font-size: 28px;
    transition: all 0.3s ease;
}

.sc-chatbot-wrapper.open .sc-chatbot-toggle i {
    transform: rotate(180deg);
}

/* Chat Window */
.sc-chatbot-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 380px;
    height: 600px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: bottom right;
}

.sc-chatbot-wrapper.open .sc-chatbot-window {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Header */
.sc-chatbot-header {
    padding: 24px;
    background: linear-gradient(135deg, rgba(217, 4, 41, 0.2) 0%, rgba(15, 23, 42, 0) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sc-chatbot-header h5 {
    margin: 0;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sc-chatbot-header .status {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

/* Body Content */
.sc-chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Content Views */
.sc-chat-view {
    display: none;
    animation: fadeIn 0.4s ease;
}

.sc-chat-view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Options/Buttons */
.sc-btn {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff;
    text-align: left;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.sc-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(217, 4, 41, 0.5);
    transform: translateX(5px);
}

.sc-btn i {
    width: 20px;
    color: #ef233c;
}

/* FAQ Items */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

.faq-q { color: #fff; font-weight: 600; font-size: 0.95rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-a { color: rgba(255, 255, 255, 0.6); font-size: 0.88rem; margin-top: 10px; line-height: 1.5; display: none; }
.faq-item.active .faq-a { display: block; }
.faq-item.active .faq-q i { transform: rotate(180deg); }

/* Form Styles */
.sc-form-label { color: rgba(255, 255, 255, 0.5); font-size: 0.8rem; margin-bottom: 5px; display: block; }
.sc-input, .sc-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 15px;
    color: #fff;
    margin-bottom: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.sc-input:focus, .sc-textarea:focus { border-color: #ef233c; }

.sc-submit {
    background: linear-gradient(90deg, #d90429 0%, #ef233c 100%);
    border: none;
    border-radius: 12px;
    padding: 15px;
    color: #fff;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(217, 4, 41, 0.2);
}

/* Footer Section */
.sc-chatbot-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}

/* Scrollbar */
.sc-chatbot-body::-webkit-scrollbar { width: 4px; }
.sc-chatbot-body::-webkit-scrollbar-track { background: transparent; }
.sc-chatbot-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }

@media (max-width: 480px) {
    .sc-chatbot-window {
        width: calc(100vw - 40px);
        height: min(600px, calc(100vh - 120px));
        bottom: 75px;
        right: -10px;
    }
}
