/* Chat Support Fix for Poola.php */

.support-message {
    position: relative;
}

.chat-box {
    position: absolute;
    bottom: 100%;
    right: 0;
    width: 400px;
    max-width: 90vw;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border: 1px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999999;
    margin-bottom: 20px;
}

.chat-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-title {
    padding: 20px 25px 15px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #2964fa 0%, #1d4ed8 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.chat-title h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-chat {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.close-chat:hover {
    background: rgba(255,255,255,0.2);
}

.chat-messages {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.chat-message {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.message-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.message-content {
    flex: 1;
}

.message-content p {
    margin: 0 0 5px 0;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.message-time {
    font-size: 12px;
    color: #64748b;
}

.quick-replies {
    padding: 15px 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-reply-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-reply-btn:hover {
    background: #2964fa;
    color: white;
    border-color: #2964fa;
}

.chat-input-area {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #f1f5f9;
}

.chat-input-area input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
}

.chat-input-area input:focus {
    border-color: #2964fa;
}

.chat-input-area button {
    background: #2964fa;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.chat-input-area button:hover {
    background: #1d4ed8;
}

.chat-footer {
    padding: 10px 20px 20px;
    text-align: center;
}

.chat-footer small {
    color: #64748b;
    font-size: 12px;
}

/* Call Support Styles */
.call-support {
    position: absolute;
    bottom: 100%;
    right: 0;
    width: 350px;
    max-width: 90vw;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border: 1px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999999;
    margin-bottom: 20px;
}

.call-support.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.call-content {
    padding: 25px;
}

.call-content h5 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.call-description {
    margin: 0 0 20px 0;
    color: #64748b;
    font-size: 14px;
}

.call-options {
    margin-bottom: 20px;
}

.call-number {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.2s;
}

.call-number:hover {
    background: #2964fa;
    color: white;
    transform: translateY(-2px);
}

.call-number.primary {
    background: linear-gradient(135deg, #2964fa 0%, #1d4ed8 100%);
    color: white;
}

.call-label {
    font-size: 12px;
    font-weight: 500;
}

.number {
    font-weight: 600;
}

.call-hours,
.call-emergency {
    margin-bottom: 10px;
}

.call-hours small,
.call-emergency small {
    color: #64748b;
    font-size: 12px;
}

.call-emergency a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
}

.call-emergency a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chat-box,
    .call-support {
        width: 320px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .chat-box,
    .call-support {
        width: 280px;
        right: -20px;
    }
    
    .quick-replies {
        flex-direction: column;
    }
    
    .quick-reply-btn {
        text-align: center;
    }
}