/* Enquiry Floating Button ─ floater.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;700&display=swap');

/* ── Root wrapper ─────────────────────────────────────────── */
#efb-root {
    position: fixed;
    bottom: 28px;
    left: 24px;          /* overridden inline for right position */
    z-index: 999999;
    display: flex;
    align-items: center;

    /* Entry: hidden until delay fires */
    opacity: 0;
    transform: translateY(40px) scale(0.6);
    animation: efbEntry 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) var(--efb-delay, 1500ms) both;
}

@keyframes efbEntry {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── The link/button ──────────────────────────────────────── */
#efb-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    cursor: pointer;
    border-radius: 100px;
    outline: none;
}

/* ── Pulse rings ──────────────────────────────────────────── */
.efb-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2.5px solid var(--efb-pulse, #c9973a);
    pointer-events: none;
    opacity: 0;
}
.r1 { animation: efbPulse 2.2s ease-out infinite 0.0s; }
.r2 { animation: efbPulse 2.2s ease-out infinite 0.75s; }

@keyframes efbPulse {
    0%   { transform: scale(1);   opacity: 0.75; }
    100% { transform: scale(2.4); opacity: 0;    }
}

/* ── Circular icon disc ───────────────────────────────────── */
.efb-icon {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--efb-bg, #0f2133);
    color: var(--efb-fg, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow:
        0 6px 24px rgba(0,0,0,0.28),
        0 2px 8px  rgba(0,0,0,0.16);
    transition:
        transform  0.28s cubic-bezier(0.34,1.56,0.64,1),
        box-shadow 0.28s ease;
}

.efb-icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
}

/* ── Label pill — slides out on hover ────────────────────── */
.efb-label {
    position: relative;
    z-index: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--efb-fg, #fff);
    background: var(--efb-bg, #0f2133);
    white-space: nowrap;
    padding: 0 18px 0 10px;
    height: 44px;
    line-height: 44px;
    border-radius: 0 100px 100px 0;
    margin-left: -10px;           /* tucks behind the disc */
    box-shadow: 3px 6px 20px rgba(0,0,0,0.18);

    /* hidden by default */
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        max-width  0.38s cubic-bezier(0.4,0,0.2,1),
        opacity    0.22s ease,
        padding    0.38s ease;
    pointer-events: none;
}

/* ── Hover / focus states ─────────────────────────────────── */
#efb-btn:hover  .efb-icon,
#efb-btn:focus-visible .efb-icon {
    transform: scale(1.1) rotate(-8deg);
    box-shadow:
        0 12px 36px rgba(0,0,0,0.32),
        0 4px  12px rgba(0,0,0,0.18);
}

#efb-btn:hover .efb-icon svg,
#efb-btn:focus-visible .efb-icon svg {
    transform: rotate(8deg) scale(1.12);
}

#efb-btn:hover  .efb-label,
#efb-btn:focus-visible .efb-label {
    max-width: 220px;
    opacity: 1;
    pointer-events: auto;
}

#efb-btn:focus-visible .efb-icon {
    outline: 3px solid var(--efb-pulse, #c9973a);
    outline-offset: 4px;
}

/* ── Active press ─────────────────────────────────────────── */
#efb-btn:active .efb-icon {
    transform: scale(0.95);
    box-shadow: 0 4px 12px rgba(0,0,0,0.22);
}

/* ── Mobile: label always visible, smaller button ────────── */
@media (max-width: 500px) {
    #efb-root { bottom: 18px; }

    .efb-icon { width: 52px; height: 52px; }
    .efb-icon svg { width: 21px; height: 21px; }

    /* Always show short label on mobile */
    .efb-label {
        max-width: 140px;
        opacity: 1;
        font-size: 13px;
        padding: 0 14px 0 10px;
        height: 40px;
        line-height: 40px;
        pointer-events: auto;
    }
}
