/* ==========================================================================
   Minimalist Floating Contacts Widget & Animated Phone Trigger - Verale Theme
   ========================================================================== */

.floating-contact-wrapper {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
}

.floating-contact-wrapper * {
    pointer-events: auto;
    box-sizing: border-box;
}

/* 1. Minimalist Modal Panel (Matching reference design) */
.floating-socials-panel {
    width: min(340px, calc(100vw - 32px));
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px !important;
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.25), 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 24px 22px;
    color: #101c26;
    font-family: 'Montserrat', sans-serif;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
}

.floating-socials-panel.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-socials-panel.is-hidden {
    display: none !important;
}

/* Panel Header */
.floating-socials-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.floating-socials-panel__title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 24px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    color: #101c26 !important;
    margin: 0 !important;
}

/* Close Button */
.floating-socials-panel__control {
    width: 28px;
    height: 28px;
    border: none !important;
    background: transparent !important;
    color: #475569 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    cursor: pointer;
    padding: 0 !important;
    transition: color 0.18s ease;
    box-shadow: none !important;
    outline: none !important;
}

.floating-socials-panel__control:hover {
    color: #101c26 !important;
}

/* Description Text */
.floating-socials-panel__text {
    margin: 0 0 14px 0 !important;
    color: #64748b !important;
    font-size: 13.5px !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
}

/* Contacts List (Clean minimalist text links) */
.floating-socials-panel__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 14px;
}

.floating-socials-panel__contact {
    color: #101c26 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    display: block;
    text-decoration: none !important;
    font-variant-numeric: tabular-nums;
    transition: color 0.18s ease;
}

.floating-socials-panel__contact:hover {
    color: #9366eb !important;
}

/* Messengers Row: 3 Square Buttons (Telegram, MAX, WhatsApp) */
.floating-socials {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.floating-socials__link {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    border: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-sizing: border-box;
}

.floating-socials__link--telegram {
    background: #448fff;
}

.floating-socials__link--max {
    background: #5b4be4;
}

.floating-socials__link--whatsapp {
    background: #25D366;
}

.floating-socials__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.floating-socials__link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

/* Full-width CTA Button (Matching reference photo) */
.floating-contact-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 48px !important;
    padding: 0 18px !important;
    background: #9366eb !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(147, 102, 235, 0.35) !important;
    cursor: pointer !important;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
}

.floating-contact-btn:hover {
    background: #7a46d6 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(147, 102, 235, 0.45) !important;
}

/* ==========================================================================
   2. Floating Round Trigger Button with Rippling Animation (Primary Color)
   ========================================================================== */
.floating-socials-open {
    width: 64px;
    height: 64px;
    position: relative;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: linear-gradient(135deg, #9366eb 0%, #7a46d6 100%);
    color: #ffffff;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 10px 28px rgba(147, 102, 235, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.floating-socials-open:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 14px 34px rgba(147, 102, 235, 0.58);
}

.floating-socials-open[hidden] {
    display: none !important;
}

/* Pulsing radiating wave rings */
.floating-socials-open:not([hidden])::before,
.floating-socials-open:not([hidden])::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1.5px solid rgba(147, 102, 235, 0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: floating-contact-pulse 2.4s ease-out infinite;
}

.floating-socials-open:not([hidden])::after {
    animation-delay: 1.2s;
}

@keyframes floating-contact-pulse {
    0% {
        opacity: 0.85;
        transform: scale(0.85);
    }
    72%, 100% {
        opacity: 0;
        transform: scale(1.35);
    }
}

/* Animated phone icon inside round button */
.floating-socials-open__icon {
    width: 30px;
    height: 30px;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-52%, -45%);
    color: #ffffff;
}

.floating-socials-open:not([hidden]) .floating-socials-open__icon {
    transform-origin: 50% 50%;
    animation: floating-phone-shake 5.5s ease-in-out infinite;
}

@keyframes floating-phone-shake {
    0%, 82%, 100% {
        transform: translate(-52%, -45%) rotate(0deg);
    }
    85% {
        transform: translate(-56%, -45%) rotate(-12deg);
    }
    88% {
        transform: translate(-48%, -45%) rotate(10deg);
    }
    91% {
        transform: translate(-55%, -45%) rotate(-8deg);
    }
    94% {
        transform: translate(-50%, -45%) rotate(5deg);
    }
    97% {
        transform: translate(-52%, -45%) rotate(0deg);
    }
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
    .floating-contact-wrapper {
        right: 14px;
        bottom: 14px;
    }
    .floating-socials-panel {
        padding: 20px 18px;
    }
    .floating-socials-panel__title {
        font-size: 20px !important;
    }
    .floating-socials-panel__contact {
        font-size: 15.5px !important;
    }
    .floating-socials-open {
        width: 54px;
        height: 54px;
    }
    .floating-socials-open__icon {
        width: 25px;
        height: 25px;
    }
}
