/* ============================================================================
   Toprated — CRO / Lead-Gen styles
   Designed to layer cleanly on top of the existing Porto / Bootstrap 5 theme.
   No design overrides — only adds new sticky CTAs, multi-step form skin,
   solution-card hover, brand-logo grid finish and trust-strip layout.
   ============================================================================ */

/* ---------- Floating CTA Stack ---------- */
.cta-floating {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.cta-floating-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #1c4bd9;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    cursor: pointer;
}
.cta-floating-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0,0,0,.22);
    text-decoration: none;
}
.cta-floating-btn i { font-size: 18px; line-height: 1; }
.cta-floating-wa    { background: #25D366; color: #fff; }
.cta-floating-wa:hover    { color: #fff;  background: #1ebe5d; }
.cta-floating-call  { background: #1c4bd9; color: #fff; }
.cta-floating-call:hover  { color: #fff;  background: #163ca8; }
.cta-floating-quote { background: #fff;    color: #1c4bd9; border: 1px solid rgba(0,0,0,.05); }
.cta-floating-quote:hover { color: #1c4bd9; background: #f5f8ff; }
.cta-floating-label { white-space: nowrap; }

/* On narrow screens, hide the labels — keep round icons only. */
@media (max-width: 575.98px) {
    .cta-floating { right: 12px; bottom: 12px; gap: 8px; }
    .cta-floating-btn { padding: 12px; }
    .cta-floating-label { display: none; }
}

/* ---------- Solution cards ---------- */
.solution-card { transition: transform .15s ease, box-shadow .15s ease; }
.solution-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(28,75,217,.10) !important;
}

/* ---------- Trust strip ---------- */
.trust-strip .brand-logo-strip-item img {
    max-height: 36px;
    width: auto;
    object-fit: contain;
    filter: grayscale(.9) opacity(.7);
    transition: filter .15s;
}
.trust-strip .brand-logo-strip-item img:hover {
    filter: grayscale(0) opacity(1);
}

/* ---------- Brand logo grid (component) ---------- */
.brand-logo-grid .brand-logo-tile {
    background: #fff;
    transition: box-shadow .15s, transform .15s, border-color .15s;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-logo-grid .brand-logo-tile:hover {
    border-color: #1c4bd9 !important;
    box-shadow: 0 8px 22px rgba(28,75,217,.10);
    transform: translateY(-1px);
}
.brand-logo-grid .brand-logo-tile img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    filter: grayscale(.9) opacity(.75);
    transition: filter .15s;
}
.brand-logo-grid .brand-logo-tile:hover img {
    filter: grayscale(0) opacity(1);
}

/* ---------- Multi-step quote form ---------- */
.msq-steps {
    counter-reset: msq;
    gap: 8px;
}
.msq-step {
    flex: 1 1 0;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}
.msq-step-num {
    display: inline-flex;
    width: 28px; height: 28px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: #f1f3f8;
    color: #6b7280;
    font-size: 13px;
}
.msq-step.active {
    color: #1c4bd9;
    border-color: #1c4bd9;
    box-shadow: 0 2px 0 #1c4bd9 inset;
}
.msq-step.active .msq-step-num { background: #1c4bd9; color: #fff; }
.msq-step.done { color: #1c4bd9; }
.msq-step.done .msq-step-num { background: #1c4bd9; color: #fff; }

/* Chip-style radio cards for solution area */
.msq-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 12px 8px;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    margin: 0;
    user-select: none;
}
.msq-chip input { position: absolute; opacity: 0; pointer-events: none; }
.msq-chip:has(input:checked) {
    border-color: #1c4bd9;
    background: rgba(28,75,217,.06);
    color: #1c4bd9;
}
.msq-chip i { color: #1c4bd9; }

/* Quick inquiry modal — soften scroll on long pages */
.modal-dialog-scrollable .modal-body { overscroll-behavior: contain; }

/* ---------- Deployment steps ---------- */
.deployment-steps li:not(:last-child) {
    border-left: 2px solid #e6e9ef;
    margin-left: 24px;
    padding-left: 24px;
    padding-bottom: 16px;
}
.deployment-steps li:not(:last-child) > div:first-child { margin-left: -49px; }

/* Bring the floating CTAs above the WhatsApp embed if any */
.cta-floating { z-index: 1050; }

/* ---------- Configurable build (radio-card grid) ---------- */
.configure-build-form .cb-choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    margin: 0;
    transition: border-color .15s, background .15s, box-shadow .15s;
    height: 100%;
}
.configure-build-form .cb-choice input[type=radio] {
    margin-top: 4px;
    accent-color: #1c4bd9;
    flex-shrink: 0;
}
.configure-build-form .cb-choice-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.35;
}
.configure-build-form .cb-choice-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}
.configure-build-form .cb-choice-detail {
    font-size: 12.5px;
    color: #6b7280;
}
.configure-build-form .cb-choice:hover {
    border-color: #1c4bd9;
    background: #f7f9ff;
}
.configure-build-form .cb-choice:has(input:checked) {
    border-color: #1c4bd9;
    background: rgba(28,75,217,.06);
    box-shadow: 0 0 0 2px rgba(28,75,217,.12);
}
.configure-build-form .cb-choice:has(input:checked) .cb-choice-name {
    color: #1c4bd9;
}

/* "Other — specify" row: full width, input revealed when selected */
.configure-build-form .cb-other-row {
    border-style: dashed;
}
.configure-build-form .cb-other-row .cb-choice-body { width: 100%; }
.configure-build-form .cb-other-input {
    font-size: 14px;
    background: #fff;
    border: 1px solid #e6e9ef;
    transition: background .15s, border-color .15s, opacity .15s;
}
.configure-build-form .cb-other-input:disabled {
    background: #f7f9ff;
    opacity: .55;
    cursor: not-allowed;
}
.configure-build-form .cb-other-row:has(input.cb-other-radio:checked) {
    border-style: solid;
}
.configure-build-form .cb-other-row:has(input.cb-other-radio:checked) .cb-other-input {
    border-color: #1c4bd9;
}
.configure-build-form .cb-other-input.is-invalid {
    border-color: #dc3545;
    background: #fff5f5;
}
