/* =============================================
   Floating Contact Sidebar
   ============================================= */

/* Container */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 9999;
    font-family: inherit;
}

/* Toggle Button */
.floating-contact-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-blue, #0044cc) 0%, #0066ff 100%);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 68, 204, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-contact-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 68, 204, 0.5);
}

.floating-contact-toggle.active {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    transform: rotate(90deg);
}

.floating-contact-toggle.active i::before {
    content: "\eb99"; /* ri-close-line */
}

/* Contact Panel */
.floating-contact-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.floating-contact-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Panel Header */
.floating-contact-header {
    background: linear-gradient(135deg, var(--brand-blue, #0044cc) 0%, #0066ff 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
}

.floating-contact-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.floating-contact-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Contact Items */
.floating-contact-items {
    padding: 12px;
}

.floating-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    position: relative;
}

.floating-contact-item:hover {
    background: #f5f7fa;
}

.floating-contact-item.hidden {
    display: none;
}

/* Icon Styles */
.fc-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--brand-blue, #0044cc);
    flex-shrink: 0;
}

.fc-icon.whatsapp {
    background: #dcf8c6;
    color: #25d366;
}

.fc-icon.wechat {
    background: #d4f5d4;
    color: #07c160;
}

.fc-icon.email {
    background: #ffeee6;
    color: #ff6b35;
}

/* Info */
.fc-info {
    flex: 1;
    min-width: 0;
}

.fc-label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.fc-value {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Copy Button */
.fc-copy-btn {
    background: #e8f4fd;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--brand-blue, #0044cc);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.fc-copy-btn:hover {
    background: var(--brand-blue, #0044cc);
    color: white;
}

.fc-copy-btn.copied {
    background: #10b981;
    color: white;
}

.fc-copy-btn.copied i::before {
    content: "\eb7b"; /* ri-check-line */
}

/* Social Links */
.floating-contact-social {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px 16px;
    border-top: 1px solid #eee;
}

.floating-contact-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 18px;
}

.floating-contact-social a:hover {
    background: var(--brand-blue, #0044cc);
    color: white;
    transform: translateY(-2px);
}

.floating-contact-social a.hidden {
    display: none;
}

/* Toast Notification */
.fc-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
}

.fc-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.fc-toast i {
    color: #10b981;
    font-size: 18px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-contact {
        right: 15px;
        bottom: 80px;
    }

    .floating-contact-toggle {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .floating-contact-panel {
        width: 280px;
        right: -5px;
    }
}

@media (max-width: 400px) {
    .floating-contact-panel {
        width: calc(100vw - 40px);
        right: -5px;
    }
}
