/* ============================================================================
   Instant Callback Widget
   FAB fixed · right edge · vertically centred
   Navy #121419 · Gold #3E6AE1 · Bodoni Moda + Inter
   ============================================================================ */

/* ── FAB (directly fixed, not inside a wrapper) ───────────────────────────── */
#re-cb-fab {
    position: fixed !important;
    right: -20px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    z-index: 999999 !important;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #121419 0%, #3E6AE1 100%);
    border: 3px solid #3E6AE1;
    box-shadow: 0 6px 24px rgba(20,41,42,0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    outline: none;
    pointer-events: auto;
}
#re-cb-fab:hover {
    transform: translateY(-50%) translateX(-8px) !important;
    box-shadow: 0 10px 32px rgba(200,155,74,0.5);
    background: linear-gradient(135deg, #3E6AE1 0%, #3E6AE1 100%);
}
#re-cb-fab:active {
    transform: translateY(-50%) translateX(-4px) scale(0.96);
}

/* ripple rings centred on FAB via ::before / ::after */
#re-cb-fab::before,
#re-cb-fab::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #3E6AE1;
    animation: re-cb-ripple 2.4s ease-out infinite;
    pointer-events: none;
}
#re-cb-fab::after { animation-delay: 1.2s; }

@keyframes re-cb-ripple {
    0%   { transform: scale(1);   opacity: 0.65; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* ── FAB label — sits to the LEFT of the FAB, vertically centred ─────────── */
#re-cb-fab-label {
    position: fixed !important;
    right: 48px !important;       /* clears the half-visible FAB */
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    z-index: 999998 !important;
    font-family: 'Jost', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3E6AE1;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0,0,0,0.35);
    background: rgba(20,41,42,0.72);
    padding: 4px 8px;
    border-radius: 4px;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
#re-cb-card {
    position: fixed !important;
    top: 50% !important;
    right: 50px !important;
    bottom: auto !important;
    transform: translateY(-50%) translateX(16px) scale(0.96) !important;
    z-index: 999998 !important;
    width: 330px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 50px rgba(20,41,42,0.2);
    border: 1px solid rgba(255,255,255,.12);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(.4,0,.2,1),
                transform 0.35s cubic-bezier(.4,0,.2,1);
}
#re-cb-card.is-open {
    opacity: 1 !important;
    transform: translateY(-50%) translateX(0) scale(1) !important;
    pointer-events: auto !important;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.re-cb-card__header {
    background: linear-gradient(120deg, #121419 0%, #0b0c10 100%);
    padding: 20px 20px 16px;
    position: relative;
}
.re-cb-card__header::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: #3E6AE1;
}
.re-cb-card__eyebrow {
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #8fb0ff;
    margin-top: 4px;
    display: block;
}
.re-cb-card__headline {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.15;
    margin: 2px 0 0;
}
.re-cb-card__headline em {
    font-style: italic;
    color: #8fb0ff;
    position: relative;
    display: inline-block;
}
.re-cb-card__headline em::after {
    content: '';
    position: absolute;
    left: 0; bottom: -3px;
    height: 2px; width: 100%;
    background: #3E6AE1;
    border-radius: 2px;
    animation: re-cb-underline 1.6s ease-in-out infinite alternate;
    transform-origin: left;
}
@keyframes re-cb-underline {
    from { transform: scaleX(0.4); opacity: 0.6; }
    to   { transform: scaleX(1);   opacity: 1; }
}
.re-cb-card__sub {
    font-size: 12px;
    color: rgba(255,255,255,0.72);
    margin-top: 6px;
    line-height: 1.5;
    font-family: 'Jost', sans-serif;
}
.re-cb-card__close {
    position: absolute;
    top: 10px; right: 12px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 5px;
    transition: color 0.2s;
}
.re-cb-card__close:hover { color: #3E6AE1; }

/* ── Body ─────────────────────────────────────────────────────────────────── */
.re-cb-card__body {
    padding: 22px 20px 24px;
    background: #181b22;
}

/* Phone input */
.re-cb-phone-wrap {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.re-cb-phone-wrap:focus-within {
    border-color: #3E6AE1;
    box-shadow: 0 0 0 3px rgba(200,155,74,0.15);
}
.re-cb-phone-icon {
    padding: 0 10px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
#re-cb-phone {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: #e2e8f0;
    padding: 13px 12px 13px 0;
}
#re-cb-phone::placeholder { color: #8a9ab0; }

.re-cb-phone-err {
    font-size: 11.5px;
    color: #c0392b;
    font-weight: 600;
    margin-top: 6px;
    display: none;
    padding-left: 2px;
    font-family: 'Jost', sans-serif;
}

/* CAPTCHA */
.re-cb-captcha {
    margin-top: 14px;
    padding: 10px 12px;
    background: rgba(20,41,42,0.04);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
}
.re-cb-captcha__label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: #e2e8f0;
    font-family: 'Jost', sans-serif;
}
.re-cb-captcha__input {
    width: 64px;
    padding: 5px 8px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Jost', sans-serif;
    color: #e2e8f0;
    background: #fff;
    -moz-appearance: textfield;
    transition: border-color 0.2s;
}
.re-cb-captcha__input:focus { outline: none; border-color: #3E6AE1; }
.re-cb-captcha__input::-webkit-outer-spin-button,
.re-cb-captcha__input::-webkit-inner-spin-button { -webkit-appearance: none; }
.re-cb-captcha__err {
    font-size: 10.5px;
    color: #c0392b;
    margin-top: 5px;
    display: none;
    font-family: 'Jost', sans-serif;
}
.re-cb-captcha__input.re-input-error { border-color: #c0392b; }

/* Consent */
.re-cb-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: nowrap;
}
.re-cb-consent__check {
    margin-top: 2px;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    accent-color: #3E6AE1;
    cursor: pointer;
}
.re-cb-consent__label {
    font-size: 11.5px;
    color: #5a6478;
    line-height: 1.5;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    flex: 1;
}
.re-cb-consent__err {
    font-size: 10.5px;
    color: #c0392b;
    display: none;
    margin-top: 3px;
    font-family: 'Jost', sans-serif;
}

/* Submit */
.re-cb-submit {
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    border: none;
    border-radius: 999px;
    background: #121419;
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s, box-shadow 0.3s, transform 0.15s;
    box-shadow: 0 4px 18px rgba(20,41,42,0.25);
}
.re-cb-submit:hover:not(:disabled) {
    background: #3E6AE1;
    box-shadow: 0 8px 28px rgba(200,155,74,0.45);
    transform: translateY(-2px);
}
.re-cb-submit:active:not(:disabled) { transform: translateY(0); }
.re-cb-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.re-cb-submit::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    transform: skewX(-20deg);
    animation: re-cb-shimmer 2.5s infinite;
}
@keyframes re-cb-shimmer {
    0%   { left: -75%; }
    100% { left: 150%; }
}

/* Trust */
.re-cb-trust {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 11px;
    color: #8a9ab0;
    font-family: 'Jost', sans-serif;
}

/* ── Success ──────────────────────────────────────────────────────────────── */
.re-cb-success {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px 28px;
    background: #181b22;
    text-align: center;
    gap: 10px;
}
.re-cb-success__tick {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: rgba(200,155,74,0.12);
    border: 1px solid rgba(200,155,74,0.3);
    display: flex; align-items: center; justify-content: center;
    animation: re-cb-pop 0.4s cubic-bezier(.4,0,.2,1);
}
@keyframes re-cb-pop {
    0%   { transform: scale(0); }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.re-cb-success h3 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #e2e8f0;
    margin: 0;
}
.re-cb-success p {
    font-size: 13px;
    color: #5a6478;
    margin: 0;
    line-height: 1.55;
    font-family: 'Jost', sans-serif;
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    #re-cb-fab {
        right: -10px;
        top: auto;
        bottom: 20px;
        transform: none;
    }
    #re-cb-fab:hover { transform: translateX(-6px); }
    #re-cb-fab-label {
        top: auto;
        bottom: 6px;
        right: 0;
    }
    #re-cb-card {
        top: auto;
        bottom: 90px;
        right: 12px;
        transform: translateX(16px) scale(0.96);
        width: calc(100vw - 24px);
    }
    #re-cb-card.is-open {
        transform: translateX(0) scale(1);
    }
}

/* ===== PREMIUM THEME LAYER (ui-ux-pro-max + Tesla system, 2026-09-30) =====
   Same tokens as the site: carbon surfaces, one solid accent, 4px controls,
   Plus Jakarta Sans, 0.33s eased transitions, no gradients/shimmer/italics. */
#re-cb-fab, #re-cb-fab-label, #re-cb-card, #re-cb-card * { font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important; letter-spacing: normal; }
#re-cb-fab { background: #3E6AE1 !important; border: 0 !important; box-shadow: 0 10px 30px rgba(62,106,225,.35) !important; transition: background-color .33s cubic-bezier(.5,0,0,.75), transform .33s cubic-bezier(.5,0,0,.75) !important; }
#re-cb-fab:hover { background: #5580f0 !important; transform: none !important; }
#re-cb-fab::before, #re-cb-fab::after { display: none !important; }   /* no ripple rings */
#re-cb-fab-label { background: rgba(18,20,25,.92) !important; color: #e2e8f0 !important; border: 0 !important; border-radius: 4px !important; font-size: .72rem !important; font-weight: 500 !important; letter-spacing: .06em !important; text-transform: uppercase; backdrop-filter: blur(12px); }
#re-cb-card { background: #121419 !important; border: 1px solid rgba(255,255,255,.08) !important; border-radius: 12px !important; box-shadow: 0 30px 80px rgba(0,0,0,.6) !important; overflow: hidden; }
.re-cb-card__header { background: #121419 !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; padding: 26px 28px 20px !important; }
.re-cb-card__header::before { display: none !important; }
.re-cb-card__eyebrow { color: #9aa0ab !important; font-size: .7rem !important; font-weight: 500 !important; letter-spacing: .14em !important; text-transform: uppercase; }
.re-cb-card__eyebrow::before { display: none !important; }
.re-cb-card__headline { color: #fff !important; font-size: 1.55rem !important; font-weight: 500 !important; line-height: 1.2 !important; margin: 8px 0 6px !important; }
.re-cb-card__headline em { font-style: normal !important; color: #fff !important; background: none !important; -webkit-text-fill-color: #fff !important; }
.re-cb-card__headline em::after { display: none !important; }
.re-cb-card__sub { color: #9aa0ab !important; font-size: .9rem !important; line-height: 1.5 !important; }
.re-cb-card__close { color: #9aa0ab !important; width: 44px !important; height: 44px !important; border-radius: 4px !important; transition: color .33s, background-color .33s !important; }
.re-cb-card__close:hover { color: #fff !important; background: rgba(255,255,255,.06) !important; }
.re-cb-card__body { background: #121419 !important; padding: 22px 28px 26px !important; }
.re-cb-phone-wrap { background: #181b22 !important; border: 1px solid rgba(255,255,255,.12) !important; border-radius: 4px !important; min-height: 48px !important; box-shadow: none !important; transition: border-color .33s !important; }
.re-cb-phone-wrap:focus-within { border-color: #3E6AE1 !important; box-shadow: none !important; }
.re-cb-phone-icon { color: #8fb0ff !important; }
#re-cb-phone, .re-cb-phone-wrap select { background: transparent !important; color: #fff !important; font-size: 16px !important; border: 0 !important; }
.re-cb-phone-wrap select { color: #e2e8f0 !important; background: #181b22 !important; border-radius: 4px !important; }
#re-cb-phone::placeholder { color: #6b7280 !important; }
.re-cb-captcha { background: #181b22 !important; border: 1px solid rgba(255,255,255,.08) !important; border-radius: 4px !important; padding: 12px 14px !important; }
.re-cb-captcha__label { color: #e2e8f0 !important; font-weight: 500 !important; font-size: .9rem !important; }
.re-cb-captcha__input { background: #0b0c10 !important; color: #fff !important; border: 1px solid rgba(255,255,255,.14) !important; border-radius: 4px !important; min-height: 40px !important; font-size: 16px !important; }
.re-cb-captcha__input:focus { border-color: #3E6AE1 !important; }
.re-cb-consent__check { accent-color: #3E6AE1 !important; width: 18px !important; height: 18px !important; }
.re-cb-consent__label { color: #9aa0ab !important; font-size: .82rem !important; line-height: 1.5 !important; }
.re-cb-phone-err, .re-cb-captcha__err, .re-cb-consent__err { color: #f87171 !important; }
.re-input-error, .re-cb-captcha__input.re-input-error { border-color: #f87171 !important; }
.re-cb-submit { background: #3E6AE1 !important; color: #fff !important; border: 0 !important; border-radius: 4px !important; min-height: 48px !important; font-size: .95rem !important; font-weight: 500 !important; letter-spacing: normal !important; text-transform: none !important; box-shadow: none !important; transition: background-color .33s cubic-bezier(.5,0,0,.75) !important; }
.re-cb-submit:hover:not(:disabled) { background: #5580f0 !important; transform: none !important; box-shadow: none !important; }
.re-cb-submit::after { display: none !important; }   /* no shimmer */
.re-cb-trust { color: #6b7280 !important; font-size: .78rem !important; }
.re-cb-trust::before, .re-cb-trust svg, .re-cb-trust img { display: none !important; }
.re-cb-success { background: #121419 !important; }
.re-cb-success__tick { background: #3E6AE1 !important; color: #fff !important; }
.re-cb-success h3 { color: #fff !important; font-weight: 500 !important; }
.re-cb-success p { color: #9aa0ab !important; }
@media (prefers-reduced-motion: reduce) { #re-cb-fab, #re-cb-card, .re-cb-submit { transition: none !important; animation: none !important; } }
/* polish pass 2 */
.re-cb-card__eyebrow { font-size: 0 !important; }                     /* hides the ◇ glyph in the JS string */
.re-cb-card__eyebrow::after { content: "Instant callback"; font-size: .7rem; letter-spacing: .14em; }
.re-cb-phone-icon, .re-cb-phone-icon svg, .re-cb-phone-icon path { color: #8fb0ff !important; fill: #8fb0ff !important; stroke: #8fb0ff !important; }
.re-cb-submit svg, .re-cb-submit path { fill: #fff !important; stroke: #fff !important; }
.re-cb-captcha { display: flex !important; align-items: center !important; gap: 12px !important; }
.re-cb-captcha__input { flex: 1 1 110px !important; min-width: 110px !important; }
#re-cb-phone::placeholder { font-size: 14px !important; }
