/* Contact Service Popup Styles */
.contact-service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-service-modal.active {
    opacity: 1;
    visibility: visible;
}

.contact-service-modal-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.contact-service-modal.active .contact-service-modal-content {
    transform: translateY(0);
}

.contact-service-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-service-header {
    text-align: center;
    margin-bottom: 20px;
}

.contact-service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff9900, #e88a00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.contact-service-icon svg {
    color: white;
    width: 24px;
    height: 24px;
}

.contact-service-header h3 {
    margin: 0;
    color: #232f3e;
    font-size: 18px;
}

.contact-service-header p {
    margin: 8px 0 0;
    color: #666;
    font-size: 13px;
}

.contact-service-options {
    display: grid;
    gap: 12px;
}

.contact-service-option {
    display: flex;
    align-items: center;
    padding: 12px;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-service-option:visited,
.contact-service-option:active,
.contact-service-option:focus {
    color: white !important;
}

.contact-service-option:hover {
    filter: brightness(1.08);
    color: white !important;
}

.contact-service-whatsapp {
    background: #25d366;
}

.contact-service-email {
    background: #ea4335;
}

.contact-service-phone {
    background: #34a853;
}

.contact-service-option svg {
    width: 24px;
    height: 24px;
    margin-right: 16px;
    flex-shrink: 0;
}

.contact-service-info div:first-child {
    font-size: 16px;
}

.contact-service-info div:last-child {
    font-size: 12px;
    opacity: 0.9;
}

.contact-service-hours {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.contact-service-hours p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.contact-service-hours svg {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
    display: inline-block;
}

/* Floating Button */
.contact-service-floating-btn {
    position: fixed;
    right: 20px;
    bottom: 100px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff9900, #e88a00);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 呼吸灯动画 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(255, 153, 0, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 10px rgba(255, 153, 0, 0);
    }
}

/* 波纹效果 - 第一个波纹 */
.contact-service-floating-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 153, 0, 0.5);
    transform: translate(-50%, -50%) scale(1);
    animation: ripple 2s ease-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* 波纹效果 - 第二个波纹 */
.contact-service-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 153, 0, 0.4);
    transform: translate(-50%, -50%) scale(1);
    animation: ripple 2s ease-out infinite 1s;
    pointer-events: none;
    z-index: -1;
}

/* 红点 */
.contact-service-floating-btn::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    background: #ff0000;
    border-radius: 50%;
    border: 2px solid white;
    animation: redPulse 1.5s ease-in-out infinite;
    z-index: 2;
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
}

/* 波纹动画 */
@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* 红点呼吸灯动画 */
@keyframes redPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 4px rgba(255, 0, 0, 0);
    }
}

/* 悬停时优化效果 */
.contact-service-floating-btn:hover {
    box-shadow: 0 8px 25px rgba(255, 153, 0, 0.4), 0 0 0 8px rgba(255, 153, 0, 0.1);
    animation: none;
}

/* 悬停时波纹保持原来的动态效果 */
.contact-service-floating-btn:hover::before {
    animation: ripple 2s ease-out infinite;
    background: rgba(255, 153, 0, 0.5);
}

.contact-service-floating-btn:hover .contact-service-ripple {
    animation: ripple 2s ease-out infinite 1s;
    background: rgba(255, 153, 0, 0.4);
}

/* 悬停时红点继续闪烁 */
.contact-service-floating-btn:hover::after {
    animation: redPulse 1.5s ease-in-out infinite;
}

.contact-service-floating-btn svg {
    color: white;
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 1;
}

/* Trigger Classes */
.contact-service-btn,
.contact-service-trigger {
    cursor: pointer;
}