/* Contact Manager - Fixed Right Side */

.contact-manager {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.3s ease;
}

.contact-manager-main {
    width: 50px;
    background: var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-item {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.contact-item:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.contact-item.active {
    background: var(--text-light);
    transform: scale(1.1);
}

.contact-item.active i {
    color: var(--primary-color);
}

.contact-item i {
    font-size: 16px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

/* Contact Details Panel */
.contact-details {
    position: absolute;
    right: 60px;
    top: 0;
    width: 280px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 20px;
    transform: translateX(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
}

.contact-details.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.contact-details::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid var(--card-bg);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.contact-details-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.contact-details-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), #5a52d5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 18px;
}

.contact-details-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark-dark);
    margin: 0;
}

.contact-details-info p {
    font-size: 0.85rem;
    color: var(--text-dark-low);
    margin: 2px 0 0 0;
}

.contact-details-content {
    margin-bottom: 15px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: var(--bg-color);
    color: var(--text-dark-dark);
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

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

.contact-action-btn {
    background: linear-gradient(135deg, var(--primary-color), #5a52d5);
    color: var(--text-light);
    border: none;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.contact-action-btn i {
    font-size: 14px;
}

/* WhatsApp Specific Styles */
.contact-details.whatsapp .contact-details-icon {
    background: var(--primary-color);
}

.contact-details.whatsapp .contact-action-btn {
    background: var(--primary-color);
}

.contact-details.whatsapp .contact-action-btn:hover {
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Phone Specific Styles */
.contact-details.phone .contact-details-icon {
    background: var(--primary-color);
}

.contact-details.phone .contact-action-btn {
    background: var(--primary-color);
}

.contact-details.phone .contact-action-btn:hover {
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Email Specific Styles */
.contact-details.email .contact-details-icon {
    background: var(--primary-color);
}

.contact-details.email .contact-action-btn {
    background: var(--primary-color);
}

.contact-details.email .contact-action-btn:hover {
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Location Specific Styles */
.contact-details.location .contact-details-icon {
    background: var(--primary-color);
}

.contact-details.location .contact-action-btn {
    background: var(--primary-color);
}

.contact-details.location .contact-action-btn:hover {
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Contact Info Display */
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-icon {
    width: 24px;
    height: 24px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 12px;
}

.contact-info-icon i {
    font-size: 12px;
}

.contact-info-text {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-dark-low);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-manager {
        right: 15px;
    }
    
    .contact-manager-main {
        width: 45px;
        padding: 6px 0;
        gap: 6px;
    }
    
    .contact-item {
        width: 32px;
        height: 32px;
    }
    
    .contact-item i {
        font-size: 14px;
    }
    
    .contact-details {
        width: 260px;
        padding: 16px;
        right: 55px;
    }
    
    .contact-details-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .contact-manager {
        right: 10px;
    }
    
    .contact-manager-main {
        width: 42px;
        padding: 5px 0;
        gap: 5px;
    }
    
    .contact-item {
        width: 30px;
        height: 30px;
    }
    
    .contact-item i {
        font-size: 13px;
    }
    
    .contact-details {
        width: 240px;
        padding: 14px;
        right: 52px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .contact-action-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}

/* Animation Effects */
.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }
.contact-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.contact-manager {
    animation: slideInRight 0.6s ease-out;
}

/* Success Message */
.success-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #28a745;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.success-message.show {
    opacity: 1;
}
