.float-actions { position: fixed; left: 16px; bottom: 24px; z-index: 56; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.float-btn { display: inline-flex; align-items: center; gap: 9px; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: .88rem; color: #fff; padding: 11px 18px 11px 14px; border-radius: 40px; box-shadow: 0 10px 24px rgba(17, 48, 58, .28); transition: transform .2s, box-shadow .2s; }
.float-btn:hover { transform: translateY(-3px); color: #fff; }
.float-btn i { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-size: .85rem; }
.float-btn--emergency { background: #c8372d; animation: float-pulse 2.2s infinite; }
.float-btn--callback { background: var(--brand); }
@keyframes float-pulse { 0% { box-shadow: 0 10px 24px rgba(17, 48, 58, .28), 0 0 0 0 rgba(200, 55, 45, .5); } 70% { box-shadow: 0 10px 24px rgba(17, 48, 58, .28), 0 0 0 14px rgba(200, 55, 45, 0); } 100% { box-shadow: 0 10px 24px rgba(17, 48, 58, .28), 0 0 0 0 rgba(200, 55, 45, 0); } }

.cb-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 30, 38, .62); }
.cb-modal[hidden] { display: none; }
.cb-modal__box { position: relative; width: 100%; max-width: 400px; background: #fff; border-radius: 22px; padding: 26px 24px 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: cb-in .25s ease-out; }
@keyframes cb-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.cb-modal__close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--brand-soft); color: var(--ink); cursor: pointer; }
.cb-modal__head { text-align: center; margin-bottom: 16px; }
.cb-modal__icon { width: 54px; height: 54px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--brand); color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.cb-modal__head h3 { margin: 0 0 4px; font-size: 1.2rem; }
.cb-modal__head p { margin: 0; color: var(--muted); font-size: .88rem; }
.cb-field { display: block; margin-bottom: 12px; }
.cb-field span { display: block; font-size: .78rem; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.cb-field input, .cb-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .92rem; resize: vertical; }
.cb-field input:focus, .cb-field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.cb-error { color: #c8372d; font-size: .82rem; margin: 0 0 10px; }
.cb-done { text-align: center; padding: 10px 0 4px; }
.cb-done i { font-size: 3rem; color: #1a9d5a; }
.cb-done p { margin: 10px 0 16px; }

@media (max-width: 1099px) {
    .float-actions { left: 10px; bottom: 84px; gap: 8px; }
    .float-btn { font-size: .76rem; padding: 8px 14px 8px 10px; gap: 7px; }
    .float-btn i { width: 24px; height: 24px; font-size: .75rem; }
}

/* Vertical side tabs attached to the screen edge */
.float-actions { left: auto; right: 0; top: 50%; bottom: auto; transform: translateY(-50%); gap: 6px; align-items: flex-end; }
.float-btn { writing-mode: vertical-rl; transform: rotate(180deg); flex-direction: row-reverse; gap: 8px; padding: 16px 9px; border-radius: 12px 0 0 12px; letter-spacing: .4px; box-shadow: -4px 6px 18px rgba(17, 48, 58, .25); animation: none; }
.float-btn:hover { transform: rotate(180deg) translateY(0) translateX(4px); }
.float-btn--emergency { animation: none; }
.float-btn i { writing-mode: horizontal-tb; transform: rotate(180deg); }

@media (max-width: 1099px) {
    .float-actions { left: auto; right: 0; bottom: auto; gap: 5px; }
    .float-btn { font-size: .72rem; padding: 12px 7px; gap: 6px; }
    .float-btn i { width: 22px; height: 22px; font-size: .7rem; }
}

/* Blinking bulb effect on the side tabs */
.float-btn::before { content: ""; position: absolute; top: 7px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #fff; }
.float-btn { position: relative; padding-top: 24px; }
.float-btn--emergency { animation: tab-blink-red 1.1s ease-in-out infinite; }
.float-btn--callback { animation: tab-blink-brand 1.1s ease-in-out infinite .4s; }
.float-btn::before { animation: bulb 1.1s ease-in-out infinite; }
.float-btn--callback::before { animation-delay: .4s; }
@keyframes bulb { 0%, 100% { opacity: .35; box-shadow: none; } 50% { opacity: 1; box-shadow: 0 0 8px 3px rgba(255, 255, 255, .95); } }
@keyframes tab-blink-red { 0%, 100% { box-shadow: -4px 6px 18px rgba(17, 48, 58, .25); } 50% { box-shadow: -4px 6px 18px rgba(17, 48, 58, .25), 0 0 20px 5px rgba(200, 55, 45, .75); } }
@keyframes tab-blink-brand { 0%, 100% { box-shadow: -4px 6px 18px rgba(17, 48, 58, .25); } 50% { box-shadow: -4px 6px 18px rgba(17, 48, 58, .25), 0 0 20px 5px var(--brand); } }
@media (max-width: 1099px) {
    .float-btn { padding-top: 20px; }
    .float-btn::before { top: 6px; width: 6px; height: 6px; margin-left: -3px; }
}
@media (prefers-reduced-motion: reduce) { .float-btn, .float-btn::before { animation: none; } }

/* Callback form polish */
.cb-modal__box { max-width: 380px; padding: 30px 26px 26px; }
.cb-modal__icon { box-shadow: 0 0 0 8px var(--brand-light); margin-bottom: 14px; }
.cb-modal__head { margin-bottom: 20px; }
.cb-field span { display: flex; align-items: center; gap: 6px; }
.cb-field span i { color: var(--brand); font-size: .75rem; }
.cb-field input { padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); border-color: transparent; }
.cb-field input:focus { background: #fff; }
.cb-modal form .btn { margin-top: 6px; border-radius: 30px; padding-top: 12px; padding-bottom: 12px; }

.cb-modal .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Slimmer side tabs, placed lower */
.float-actions { top: 64%; gap: 5px; }
.float-btn { font-size: .72rem; padding: 20px 5px 12px; gap: 6px; letter-spacing: .2px; border-radius: 9px 0 0 9px; }
.float-btn i { width: 18px; height: 18px; font-size: .6rem; }
.float-btn::before { top: 7px; width: 5px; height: 5px; margin-left: -2.5px; }
@media (max-width: 1099px) {
    .float-actions { top: 60%; }
    .float-btn { font-size: .66rem; padding: 17px 4px 10px; gap: 5px; }
    .float-btn i { width: 16px; height: 16px; font-size: .55rem; }
    .float-btn::before { top: 6px; width: 4px; height: 4px; margin-left: -2px; }
}
