﻿/* Floating call (left) and WhatsApp (right) buttons, shown on every page */
.fd-float {
    position: fixed;
    bottom: 30px;
    z-index: 998;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fd-float:hover,
.fd-float:focus-visible {
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.fd-float:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
}

/* White disc with a teal icon and amber ring: stays visible on white pages and on teal sections/footer */
.fd-float--call {
    left: 30px;
    background: #fff;
    color: #065a51;
    box-shadow: inset 0 0 0 2px #f59e0b, 0 10px 25px rgba(0, 0, 0, 0.25);
}

.fd-float--call:hover,
.fd-float--call:focus-visible {
    color: #065a51;
    box-shadow: inset 0 0 0 2px #f59e0b, 0 14px 30px rgba(0, 0, 0, 0.3);
}

/* Ringing effect: expanding ring behind the disc and a short phone-shake */
.fd-float--call::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #f59e0b;
    opacity: 0;
    animation: fd-call-ring 2.4s ease-out infinite;
    pointer-events: none;
}

.fd-float--call i {
    animation: fd-call-shake 2.4s ease-in-out infinite;
}

@keyframes fd-call-ring {
    0% { transform: scale(1); opacity: 0.7; }
    70%, 100% { transform: scale(1.7); opacity: 0; }
}

@keyframes fd-call-shake {
    0%, 55%, 100% { transform: rotate(0); }
    60% { transform: rotate(-16deg); }
    66% { transform: rotate(14deg); }
    72% { transform: rotate(-12deg); }
    78% { transform: rotate(10deg); }
    84% { transform: rotate(-6deg); }
    90% { transform: rotate(0); }
}

/* WhatsApp owns the bottom-right corner; scroll-to-top sits above it */
.fd-float--whatsapp {
    right: 30px;
    background: #25d366;
}

.progress-wrap {
    bottom: 100px;
}

/* WhatsApp chooser panel (opens above the scroll-to-top button) */
.fd-float--whatsapp { border: 0; cursor: pointer; }

.fd-wa__panel {
    position: fixed;
    right: 30px;
    bottom: 170px;
    z-index: 999;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    font-family: 'Jost', sans-serif;
    animation: fd-wa-in 0.25s ease;
}

.fd-wa__panel[hidden] { display: none; }

@keyframes fd-wa-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fd-wa__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: #065a51;
    color: #fff;
}

.fd-wa__head strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.2; }
.fd-wa__head small { display: block; font-size: 13px; opacity: 0.85; }

.fd-wa__head-icon {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #25d366;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.fd-wa__close {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
}

.fd-wa__close:hover { background: rgba(255, 255, 255, 0.28); }

.fd-wa__body { padding: 18px; background: #f3f6f5; }
.fd-wa__q { margin: 0 0 14px; font-size: 16px; color: #1f2d2a; line-height: 1.45; }

.fd-wa__choice {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-bottom: 10px;
    padding: 12px 14px;
    text-align: left;
    background: #fff;
    border: 1px solid rgba(6, 90, 81, 0.15);
    border-radius: 12px;
    color: #065a51;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.fd-wa__choice:hover { border-color: #25d366; transform: translateY(-2px); }
.fd-wa__choice > i { font-size: 22px; }
.fd-wa__choice strong { display: block; font-size: 16px; font-weight: 600; }
.fd-wa__choice small { display: block; font-size: 13px; color: #5b6b67; line-height: 1.35; }


.fd-wa__choice:focus-visible,
.fd-wa__close:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

@media (max-width: 575px) {
    .fd-wa__panel {
        right: 16px;
        bottom: 150px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fd-wa__panel { animation: none; }
    .fd-wa__choice { transition: none; }
}

@media (max-width: 575px) {
    .fd-float {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    .fd-float--call {
        left: 16px;
        bottom: 20px;
    }

    .fd-float--whatsapp {
        right: 16px;
        bottom: 20px;
    }

    .progress-wrap {
        right: 16px;
        bottom: 84px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fd-float {
        transition: none;
    }

    .fd-float--call::before,
    .fd-float--call i {
        animation: none;
    }
}
