/* ── Contact Widget ─────────────────────────────────── */
.contact-widget {
    position: fixed;
    bottom: 32px;
    right: 24px;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Always-visible CTA tab / toggle button */
.contact-widget-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #75c525 0%, #5ea117 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 13px 22px 13px 18px;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(117, 197, 37, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: cta-pulse 2.8s ease-in-out infinite;
    white-space: nowrap;
}

.contact-widget-toggle:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 32px rgba(117, 197, 37, 0.55);
    animation: none;
}

.contact-widget-toggle .cw-icon {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.contact-widget-toggle .cw-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.contact-widget-toggle .cw-label small {
    display: block;
    font-size: 10px;
    font-weight: 500;
    opacity: 0.88;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Pulse animation */
@keyframes cta-pulse {
    0%   { box-shadow: 0 6px 24px rgba(117, 197, 37, 0.45); }
    50%  { box-shadow: 0 6px 36px rgba(117, 197, 37, 0.7), 0 0 0 8px rgba(117, 197, 37, 0.12); }
    100% { box-shadow: 0 6px 24px rgba(117, 197, 37, 0.45); }
}

/* Expanded panel */
.contact-widget-content {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    width: 300px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    transform: translateY(10px) scale(0.96);
    transform-origin: bottom right;
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.22s ease;
    pointer-events: none;
}

.contact-widget.active .contact-widget-content {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

/* Panel header */
.contact-widget-header {
    background: linear-gradient(135deg, #2d4a35 0%, #3d6647 100%);
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-widget-header h4 {
    color: #fff;
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 700;
}

.contact-widget-header p {
    color: rgba(255,255,255,0.75);
    margin: 0;
    font-size: 11.5px;
    line-height: 1.4;
}

.contact-widget-close {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
    margin-left: 10px;
    margin-top: 2px;
}

.contact-widget-close:hover {
    background: rgba(255,255,255,0.3);
}

.contact-widget-close i {
    font-size: 13px;
    color: #fff;
}

/* Primary CTA button inside panel */
.cw-primary-cta {
    display: block;
    margin: 16px 16px 4px;
    background: linear-gradient(135deg, #75c525 0%, #5ea117 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(117, 197, 37, 0.35);
}

.cw-primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(117, 197, 37, 0.5);
    color: #fff;
    text-decoration: none;
}

.cw-primary-cta i {
    margin-right: 7px;
}

/* Divider label */
.cw-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 4px;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #9ca3af;
}

.cw-divider::before,
.cw-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #f0f0f0;
}

/* Contact items */
.contact-widget-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #2d3748;
    text-decoration: none;
    transition: background 0.18s ease;
    gap: 12px;
}

.contact-widget-item:hover {
    background: #f7fbf2;
    text-decoration: none;
    color: #2d3748;
}

.contact-widget-item .cw-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #5ea117;
    flex-shrink: 0;
    transition: background 0.18s ease, color 0.18s ease;
}

.contact-widget-item:hover .cw-item-icon {
    background: #75c525;
    color: #fff;
}

.contact-widget-item .cw-item-text strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
}

.contact-widget-item .cw-item-text span {
    font-size: 11.5px;
    color: #6b7280;
}

/* Social row */
.cw-social-row {
    display: flex;
    gap: 8px;
    padding: 10px 16px 16px;
    justify-content: center;
}

.cw-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #4b5563;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cw-social-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.cw-social-btn.facebook:hover  { background: #3b5998; color: #fff; }
.cw-social-btn.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.cw-social-btn.youtube:hover   { background: #FF0000; color: #fff; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 767.98px) {
    .contact-widget {
        bottom: 18px;
        right: 14px;
    }

    .contact-widget-toggle {
        padding: 11px 16px 11px 14px;
    }

    .contact-widget-toggle .cw-label {
        font-size: 13px;
    }

    .contact-widget-content {
        width: 270px;
    }
}
