/* ------------------------------------------------------------------
 * Klyrvüe demo — tour popovers and the persistent sandbox bar.
 * Styles only; driver.js supplies the behaviour.
 * ------------------------------------------------------------------ */

/* Some steps highlight things inside a Bootstrap modal (the member 3D panel).
 * Modals sit at z-index 1055 with a 1050 backdrop, which paints over driver's
 * popover and leaves it looking washed out. Put the tour above both. */
.driver-popover { z-index: 20000 !important; }
.driver-overlay, svg.driver-overlay { z-index: 19990 !important; }
.driver-active-element { z-index: 19995 !important; }

/* ---------- tour popover ---------- */
.driver-popover.klyrvue-demo-tour {
    max-width: 380px;
    border-radius: 10px;
    padding: 22px 22px 16px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
    border-top: 4px solid #BD1B25;
    font-family: inherit;
}

.driver-popover.klyrvue-demo-tour .driver-popover-title {
    font-size: 17px;
    font-weight: 700;
    color: #232d39;
    line-height: 1.35;
    margin-bottom: 10px;
}

.driver-popover.klyrvue-demo-tour .driver-popover-description {
    font-size: 14px;
    line-height: 1.62;
    color: #5b6672;
}

.driver-popover.klyrvue-demo-tour .driver-popover-description strong { color: #232d39; }
.driver-popover.klyrvue-demo-tour .driver-popover-description em { color: #BD1B25; font-style: normal; font-weight: 600; }

.driver-popover.klyrvue-demo-tour .driver-popover-footer { margin-top: 18px; }

.driver-popover.klyrvue-demo-tour .driver-popover-progress-text {
    font-size: 12px;
    color: #9aa3ab;
    letter-spacing: .3px;
}

.driver-popover.klyrvue-demo-tour .driver-popover-navigation-btns button {
    background: #BD1B25;
    color: #fff;
    border: 0;
    border-radius: 5px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    text-shadow: none;
    transition: background .2s;
}
.driver-popover.klyrvue-demo-tour .driver-popover-navigation-btns button:hover { background: #9c161e; }

/* "Back" reads as the quieter of the two. */
.driver-popover.klyrvue-demo-tour .driver-popover-navigation-btns button.driver-popover-prev-btn {
    background: #eef0f2;
    color: #5b6672;
}
.driver-popover.klyrvue-demo-tour .driver-popover-navigation-btns button.driver-popover-prev-btn:hover { background: #e2e5e8; }

/* ---------- persistent sandbox bar ---------- */
#klyrvueDemoBar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 2147483000;           /* above the app chrome, below driver's overlay */
    display: flex;
    align-items: center;
    gap: 14px;
    background: #232d39;
    color: #fff;
    border-radius: 40px;
    padding: 10px 14px 10px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    font-size: 13px;
    max-width: calc(100vw - 32px);
}

#klyrvueDemoBar.kdb-hidden { display: none; }

#klyrvueDemoBar .kdb-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #4ade80;
    flex: 0 0 auto;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, .7);
    animation: kdbPulse 2.4s infinite;
}
@keyframes kdbPulse {
    0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); }
    70%  { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

#klyrvueDemoBar .kdb-text { white-space: nowrap; opacity: .92; }
#klyrvueDemoBar .kdb-text strong { font-weight: 700; }

#klyrvueDemoBar .kdb-btn {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border: 0;
    border-radius: 30px;
    padding: 8px 15px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
}
#klyrvueDemoBar .kdb-btn:hover { background: rgba(255, 255, 255, .26); color: #fff; }
#klyrvueDemoBar .kdb-cta { background: #BD1B25; }
#klyrvueDemoBar .kdb-cta:hover { background: #d41f2b; }

@media (max-width: 680px) {
    #klyrvueDemoBar { gap: 10px; padding: 9px 10px 9px 14px; font-size: 12px; bottom: 10px; }
    #klyrvueDemoBar .kdb-text { display: none; }
}

/* The app's chat widget sits bottom-right; keep the bar clear of it. */
@media (min-width: 681px) {
    #klyrvueDemoBar { left: auto; right: 90px; transform: none; }
}

/* ---------------- end-of-tour ask ---------------- */

#kdbAsk {
    position: fixed; inset: 0; z-index: 100000;
    background: rgba(16, 24, 40, .55);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: kdbAskIn .18s ease-out;
}

@keyframes kdbAskIn { from { opacity: 0; } to { opacity: 1; } }

.kdb-ask-card {
    position: relative;
    background: #fff; border-radius: 12px; padding: 26px 26px 20px;
    width: 100%; max-width: 430px;
    box-shadow: 0 18px 48px rgba(16, 24, 40, .28);
    text-align: left;
}

.kdb-ask-card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; color: #101828; }
.kdb-ask-card p  { margin: 0 0 16px; font-size: 13.5px; line-height: 1.55; color: #5a6472; }

.kdb-ask-x {
    position: absolute; top: 8px; right: 10px;
    background: none; border: 0; font-size: 24px; line-height: 1;
    color: #98a2b3; cursor: pointer; padding: 4px 8px;
}
.kdb-ask-x:hover { color: #475467; }

.kdb-ask-form input[type="email"],
.kdb-ask-form input[type="text"] {
    width: 100%; box-sizing: border-box;
    padding: 9px 11px; margin-bottom: 8px;
    border: 1px solid #d0d5dd; border-radius: 7px;
    font-size: 14px; font-family: inherit; color: #101828;
}
.kdb-ask-form input:focus {
    outline: none; border-color: #2e90fa; box-shadow: 0 0 0 3px rgba(46, 144, 250, .15);
}

.kdb-ask-row { display: flex; gap: 8px; }
.kdb-ask-row input { flex: 1 1 0; min-width: 0; }

/* Bot bait: off-screen rather than display:none, which some bots skip. */
.kdb-ask-hp { position: absolute !important; left: -9999px !important; width: 1px !important; }

.kdb-ask-go {
    width: 100%; margin-top: 4px; padding: 10px 14px;
    background: #1570ef; color: #fff; border: 0; border-radius: 7px;
    font-size: 14.5px; font-weight: 600; font-family: inherit; cursor: pointer;
}
.kdb-ask-go:hover { background: #175cd3; }
.kdb-ask-go:disabled { background: #9cc4f5; cursor: default; }

.kdb-ask-note { margin: 12px 0 0 !important; font-size: 11.5px !important; color: #98a2b3 !important; }
.kdb-ask-note a { color: #1570ef; }

.kdb-ask-err {
    margin: 10px 0 0 !important; font-size: 12.5px !important;
    color: #b42318 !important;
}

@media (max-width: 420px) {
    .kdb-ask-row { flex-direction: column; gap: 0; }
}
