/* =========================================================
   Premium Business Setup Popup - Fully Responsive
   Breakpoints:
     - 4K/Ultra-wide:    >= 1920px
     - Desktop:          1280px - 1919px
     - Small Desktop:    1024px - 1279px
     - Tablet:           768px  - 1023px
     - Mobile Landscape: 481px  - 767px
     - Mobile Portrait:  <= 480px
   Brand: #080924 & #9e0808
   ========================================================= */

:root {
    --bsp-navy:        #080924;
    --bsp-red:         #9e0808;
    --bsp-red-2:       #c41212;
    --bsp-cream:       #fff5f5;
    --bsp-bg:          #f5f5f7;
    --bsp-text:        #1a1a2e;
    --bsp-muted:       #6b6b80;
    --bsp-border:      #e8e8ee;
}

* { box-sizing: border-box; }

/* =========================================================
   OVERLAY — full-screen container
   ========================================================= */
.bsp-overlay {
    position: fixed !important;
    top: 0; right: 0; bottom: 0; left: 0;
    inset: 0;
    background: rgba(8, 9, 36, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 2147483647 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
    padding: 24px;
}

.bsp-overlay.bsp-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: opacity 0.4s ease, visibility 0s linear 0s;
}

/* =========================================================
   POPUP — main card
   ========================================================= */
.bsp-popup {
    position: relative;
    width: 100%;
    max-width: 580px;            /* default desktop */
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(8, 9, 36, 0.45),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: translateY(40px) scale(0.96);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.bsp-overlay.bsp-visible .bsp-popup {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Decorative blobs */
.bsp-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}
.bsp-blob-1 {
    width: 200px; height: 200px;
    background: var(--bsp-red);
    top: -80px; right: -80px;
}
.bsp-blob-2 {
    width: 240px; height: 240px;
    background: var(--bsp-navy);
    bottom: -100px; left: -100px;
}

.bsp-header, .bsp-form, .bsp-result,
.bsp-stepper-indicator, .bsp-progress-track {
    position: relative;
    z-index: 2;
}

/* =========================================================
   CLOSE BUTTON
   ========================================================= */
.bsp-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(8, 9, 36, 0.08);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bsp-navy);
    transition: all 0.25s ease;
    z-index: 10;
}
.bsp-close:hover {
    background: var(--bsp-red);
    color: #fff;
    transform: rotate(90deg);
}
.bsp-close svg { width: 18px; height: 18px; }

/* =========================================================
   COUNTDOWN BAR
   ========================================================= */
.bsp-countdown {
    position: absolute;
    top: 0; left: 0;
    height: 4px;
    width: 100%;
    background: rgba(8, 9, 36, 0.05);
    z-index: 11;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    overflow: hidden;
}
.bsp-countdown span {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--bsp-red), var(--bsp-navy));
    transform-origin: left center;
}

/* =========================================================
   HEADER
   ========================================================= */
.bsp-header {
    background: linear-gradient(135deg, #080924 0%, #1a1240 50%, #9e0808 100%);
    color: #fff;
    padding: 36px 36px 26px;
    text-align: center;
    position: relative;
}
.bsp-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(255,255,255,0.08), transparent 60%);
    pointer-events: none;
}

.bsp-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffd9d9;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 1.2px;
    font-weight: 600;
    margin-bottom: 14px;
    position: relative;
}
.bsp-badge-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    animation: bspPulse 1.6s infinite;
    box-shadow: 0 0 8px #fff;
}
@keyframes bspPulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.4); opacity: 0.6; }
}

.bsp-header h2 {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.3px;
    position: relative;
}
.bsp-header p {
    margin: 0;
    color: #e8e8f5;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
}
.bsp-trust {
    margin-top: 14px;
    font-size: 12px;
    color: #ffd9d9;
    font-weight: 500;
    position: relative;
}

/* =========================================================
   STEP INDICATOR
   ========================================================= */
.bsp-stepper-indicator {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 22px 32px 0;
    background: #fff;
}

.bsp-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}
.bsp-step-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f0f0f5;
    color: var(--bsp-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid #e8e8ee;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bsp-step-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--bsp-muted);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.bsp-step-dot.active .bsp-step-num {
    background: linear-gradient(135deg, var(--bsp-red), var(--bsp-red-2));
    color: #fff;
    border-color: var(--bsp-red);
    box-shadow: 0 4px 14px rgba(158, 8, 8, 0.35);
    transform: scale(1.1);
}
.bsp-step-dot.active .bsp-step-label { color: var(--bsp-red); }

.bsp-step-dot.completed .bsp-step-num {
    background: var(--bsp-navy);
    color: #fff;
    border-color: var(--bsp-navy);
}
.bsp-step-dot.completed .bsp-step-num::before {
    content: '✓';
    font-size: 15px;
}
.bsp-step-dot.completed .bsp-step-num span { display: none; }
.bsp-step-dot.completed .bsp-step-label { color: var(--bsp-navy); }

.bsp-step-line {
    flex: 1 1 auto;
    height: 2px;
    background: #e8e8ee;
    margin: 16px -2px 0;       /* aligns with the dot centers */
    position: relative;
    z-index: 1;
    transition: background 0.4s ease;
    min-width: 24px;
}
.bsp-step-line.active { background: linear-gradient(90deg, var(--bsp-red), var(--bsp-red-2)); }

/* =========================================================
   PROGRESS BAR
   ========================================================= */
.bsp-progress-track {
    height: 3px;
    background: #f0f0f5;
    margin: 10px 32px 0;
    border-radius: 999px;
    overflow: hidden;
}
.bsp-progress-fill {
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--bsp-red), var(--bsp-navy));
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   FORM / STEPS
   ========================================================= */
.bsp-form {
    padding: 22px 32px 28px;
    min-height: 420px;
}

.bsp-step-pane {
    display: none;
    flex-direction: column;
    gap: 14px;
    animation: bspStepIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.bsp-step-pane.active { display: flex; }

.bsp-step-pane.slide-out-left  { animation: bspSlideOutLeft 0.35s ease forwards; }
.bsp-step-pane.slide-in-right  { animation: bspSlideInRight 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.bsp-step-pane.slide-out-right { animation: bspSlideOutRight 0.35s ease forwards; }
.bsp-step-pane.slide-in-left   { animation: bspSlideInLeft 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

@keyframes bspStepIn        { from { opacity: 0; transform: translateX(20px); }  to { opacity: 1; transform: translateX(0); } }
@keyframes bspSlideOutLeft  { from { opacity: 1; transform: translateX(0); }     to { opacity: 0; transform: translateX(-30px); } }
@keyframes bspSlideInRight  { from { opacity: 0; transform: translateX(30px); }   to { opacity: 1; transform: translateX(0); } }
@keyframes bspSlideOutRight { from { opacity: 1; transform: translateX(0); }     to { opacity: 0; transform: translateX(30px); } }
@keyframes bspSlideInLeft   { from { opacity: 0; transform: translateX(-30px); }  to { opacity: 1; transform: translateX(0); } }

/* Step heading */
.bsp-step-heading {
    text-align: center;
    margin-bottom: 6px;
    padding-bottom: 4px;
}
.bsp-step-eyebrow {
    display: inline-block;
    background: var(--bsp-cream);
    color: var(--bsp-red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.bsp-step-heading h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
    color: var(--bsp-navy);
    letter-spacing: -0.3px;
    line-height: 1.3;
}
.bsp-step-heading p {
    margin: 0;
    font-size: 13px;
    color: var(--bsp-muted);
    line-height: 1.5;
}

/* =========================================================
   FIELDS
   ========================================================= */
.bsp-field { display: flex; flex-direction: column; gap: 6px; }

.bsp-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--bsp-navy);
    letter-spacing: 0.1px;
}

.bsp-field .req { color: var(--bsp-red); margin-left: 2px; }

.bsp-field-hint {
    margin: 4px 0 0;
    font-size: 11px;
    color: var(--bsp-muted);
    line-height: 1.4;
}

.bsp-field input[type="text"],
.bsp-field input[type="email"],
.bsp-field input[type="tel"],
.bsp-field input[type="number"] {
    width: 100%;
    padding: 13px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--bsp-text);
    background: #fafafe;
    border: 1.5px solid var(--bsp-border);
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.bsp-field input:focus {
    border-color: var(--bsp-red);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(158, 8, 8, 0.12);
}

.bsp-field input::placeholder { color: #a0a0b8; }

/* =========================================================
   STEPPER (+/-)
   ========================================================= */
.bsp-stepper {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--bsp-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fafafe;
    transition: all 0.2s ease;
}
.bsp-stepper:focus-within {
    border-color: var(--bsp-red);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(158, 8, 8, 0.12);
}
.bsp-stepper input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    text-align: center;
    font-weight: 700;
    color: var(--bsp-navy) !important;
    font-size: 16px !important;
    padding: 13px 4px !important;
    box-shadow: none !important;
    min-width: 0;
}
.bsp-stepper-btn {
    background: transparent;
    border: none;
    width: 46px;
    cursor: pointer;
    font-size: 22px;
    color: var(--bsp-navy);
    font-weight: 700;
    transition: background 0.2s ease;
    flex-shrink: 0;
}
.bsp-stepper-btn:hover { background: rgba(158, 8, 8, 0.08); color: var(--bsp-red); }

/* =========================================================
   JURISDICTION RADIO CARDS (Step 1)
   ========================================================= */
.bsp-radio-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.bsp-radio-card { position: relative; cursor: pointer; }
.bsp-radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.bsp-radio-card-inner {
    display: block;
    padding: 14px 10px;
    border: 1.5px solid var(--bsp-border);
    border-radius: 12px;
    text-align: center;
    background: #fafafe;
    transition: all 0.25s ease;
    height: 100%;
}
.bsp-radio-card-icon {
    display: block;
    font-size: 26px;
    margin-bottom: 6px;
    line-height: 1;
}
.bsp-radio-card-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--bsp-navy);
    margin-bottom: 3px;
}
.bsp-radio-card-sub {
    display: block;
    font-size: 10px;
    color: var(--bsp-muted);
    line-height: 1.3;
}
.bsp-radio-card input:checked + .bsp-radio-card-inner {
    border-color: var(--bsp-red);
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    box-shadow: 0 4px 14px rgba(158, 8, 8, 0.18);
    transform: translateY(-2px);
}
.bsp-radio-card input:checked + .bsp-radio-card-inner .bsp-radio-card-title { color: var(--bsp-red); }

/* =========================================================
   SELECT CARDS — Office (5 cols) / Bank (2 cols)
   ========================================================= */
.bsp-select-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.bsp-select-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}
.bsp-select-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}
.bsp-select-card {
    position: relative;
    cursor: pointer;
}
.bsp-select-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.bsp-select-card {
    display: block;
}
.bsp-select-card > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 6px;
    border: 1.5px solid var(--bsp-border);
    border-radius: 10px;
    background: #fafafe;
    font-size: 11px;
    color: var(--bsp-text);
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    min-height: 68px;
    line-height: 1.2;
}
.bsp-select-card:hover > span {
    border-color: var(--bsp-navy);
    transform: translateY(-1px);
}
.bsp-select-icon { font-size: 22px; line-height: 1; }
.bsp-select-label { line-height: 1.2; font-size: 11px; }

.bsp-select-card input:checked + span {
    background: linear-gradient(135deg, var(--bsp-navy), #1a1240);
    border-color: var(--bsp-navy);
    color: #fff;
    box-shadow: 0 4px 14px rgba(8, 9, 36, 0.3);
    transform: translateY(-2px);
}

/* =========================================================
   ACTION BUTTONS
   ========================================================= */
.bsp-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.bsp-actions-single {
    justify-content: stretch;
}
.bsp-actions-single .bsp-next-btn {
    flex: 1;
}
.bsp-back-btn, .bsp-next-btn, .bsp-submit {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.2px;
    transition: all 0.25s ease;
    font-family: inherit;
    min-height: 48px;
}
.bsp-back-btn {
    flex: 0 0 auto;
    background: #f0f0f5;
    color: var(--bsp-navy);
    padding: 14px 18px;
}
.bsp-back-btn:hover { background: #e8e8ee; transform: translateX(-2px); }
.bsp-back-btn svg { width: 14px; height: 14px; }

.bsp-next-btn {
    background: linear-gradient(135deg, var(--bsp-red) 0%, var(--bsp-red-2) 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(158, 8, 8, 0.35);
    position: relative;
    overflow: hidden;
}
.bsp-next-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
    transition: left 0.6s ease;
}
.bsp-next-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(158, 8, 8, 0.45); }
.bsp-next-btn:hover::before { left: 100%; }
.bsp-next-btn:active { transform: translateY(0); }
.bsp-next-btn svg { width: 14px; height: 14px; }

.bsp-submit {
    background: linear-gradient(135deg, var(--bsp-red) 0%, var(--bsp-red-2) 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(158, 8, 8, 0.35);
    position: relative;
    overflow: hidden;
}
.bsp-submit::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
    transition: left 0.6s ease;
}
.bsp-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(158, 8, 8, 0.45); }
.bsp-submit:hover::before { left: 100%; }
.bsp-submit:active { transform: translateY(0); }
.bsp-submit svg { width: 14px; height: 14px; }
.bsp-submit:disabled { opacity: 0.6; cursor: wait; }

.bsp-foot {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--bsp-muted);
    text-align: center;
    line-height: 1.4;
}

/* Shake on validation error */
.bsp-shake {
    animation: bspShake 0.4s ease-in-out;
}
@keyframes bspShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* =========================================================
   MINI SUMMARY (Contact step)
   ========================================================= */
.bsp-mini-summary {
    margin: 6px 0 4px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fff5f5 0%, #fafafe 100%);
    border: 1px solid rgba(158, 8, 8, 0.15);
    border-radius: 12px;
    border-left: 4px solid var(--bsp-red);
    animation: bspFadeIn 0.5s ease;
}
.bsp-mini-summary-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bsp-red);
    margin-bottom: 8px;
}
.bsp-mini-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}
.bsp-mini-summary li {
    font-size: 12px;
    color: var(--bsp-navy);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.bsp-ms-icon { font-size: 14px; }
.bsp-ms-label { color: var(--bsp-muted); font-weight: 500; }
.bsp-mini-summary li strong { color: var(--bsp-navy); font-weight: 700; }

@keyframes bspFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   RESULT STEP
   ========================================================= */
.bsp-result { padding: 28px 36px 34px; }

.bsp-result-header { text-align: center; margin-bottom: 22px; }

.bsp-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--bsp-red), var(--bsp-red-2));
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(158, 8, 8, 0.35);
    animation: bspPop 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.bsp-checkmark svg { width: 100%; height: 100%; }
.bsp-checkmark svg circle { stroke-dasharray: 166; stroke-dashoffset: 166; animation: bspStroke 0.7s 0.2s forwards; }
.bsp-checkmark svg path   { stroke-dasharray: 50;  stroke-dashoffset: 50;  animation: bspStroke 0.4s 0.8s forwards; }

@keyframes bspPop    { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes bspStroke { to { stroke-dashoffset: 0; } }

.bsp-result-header h3 {
    margin: 0 0 6px;
    color: var(--bsp-navy);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.2px;
}
.bsp-result-header p { margin: 0; color: var(--bsp-muted); font-size: 14px; }

.bsp-cost-table-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--bsp-border);
    background: #fff;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(8, 9, 36, 0.06);
}

.bsp-cost-table {
    width: 100%;
    border-collapse: collapse;
    font-family: inherit;
    font-size: 14px;
}
.bsp-cost-table thead tr {
    background: linear-gradient(135deg, var(--bsp-navy) 0%, #1a1240 100%);
}
.bsp-cost-table thead th {
    color: #fff;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.bsp-cost-table tbody td {
    padding: 12px 16px;
    color: var(--bsp-text);
    border-bottom: 1px solid #f1f1f6;
}
.bsp-cost-table tbody tr:last-child td { border-bottom: none; }
.bsp-cost-table tfoot td {
    padding: 16px;
    font-weight: 800;
    font-size: 16px;
    background: linear-gradient(135deg, #fff5f5 0%, #fafafe 100%);
    border-top: 2px solid var(--bsp-red);
}
.bsp-cost-table tfoot td:first-child { color: var(--bsp-navy); }
.bsp-cost-table tfoot td:last-child  { color: var(--bsp-red); }

.bsp-track-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 22px;
    background: linear-gradient(135deg, var(--bsp-navy) 0%, #1a1240 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 8px 22px rgba(8, 9, 36, 0.3);
    transition: all 0.25s ease;
}
.bsp-track-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(8, 9, 36, 0.45); }
.bsp-track-btn svg { width: 16px; height: 16px; }

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

/* ---- 4K / Ultra-wide desktops (>= 1920px) ---- */
@media (min-width: 1920px) {
    .bsp-popup {
        max-width: 620px;
    }
    .bsp-header h2 { font-size: 28px; }
    .bsp-step-heading h3 { font-size: 22px; }
}

/* ---- Standard desktops (1280px - 1919px) ----
   Default styles above handle this range */

/* ---- Small desktops / large tablets (1024px - 1279px) ---- */
@media (max-width: 1279px) {
    .bsp-overlay { padding: 20px; }
    .bsp-popup {
        max-width: 560px;
    }
    .bsp-header { padding: 32px 30px 24px; }
    .bsp-header h2 { font-size: 24px; }
    .bsp-stepper-indicator { padding: 20px 28px 0; }
    .bsp-progress-track { margin: 8px 28px 0; }
    .bsp-form { padding: 20px 28px 26px; }
    .bsp-result { padding: 26px 30px 32px; }
}

/* ---- Tablets (768px - 1023px) ---- */
@media (max-width: 1023px) {
    .bsp-overlay { padding: 18px; }
    .bsp-popup {
        max-width: 540px;
        max-height: 90vh;
    }
    .bsp-header { padding: 28px 26px 22px; }
    .bsp-header h2 { font-size: 22px; }
    .bsp-header p { font-size: 13px; }
    .bsp-stepper-indicator { padding: 18px 24px 0; }
    .bsp-step-num { width: 32px; height: 32px; font-size: 13px; }
    .bsp-step-label { font-size: 9px; }
    .bsp-progress-track { margin: 8px 24px 0; }
    .bsp-form { padding: 18px 24px 24px; }
    .bsp-step-heading h3 { font-size: 19px; }
    .bsp-radio-cards { gap: 7px; }
    .bsp-radio-card-inner { padding: 12px 8px; }
    .bsp-radio-card-icon { font-size: 24px; }
    .bsp-radio-card-title { font-size: 12px; }
    .bsp-radio-card-sub { font-size: 9px; }
    .bsp-select-grid { gap: 5px; }
    .bsp-select-card > span { padding: 10px 4px; min-height: 64px; }
    .bsp-select-icon { font-size: 20px; }
    .bsp-select-label { font-size: 10px; }
    .bsp-result { padding: 24px 26px 30px; }
    .bsp-cost-table thead th, .bsp-cost-table tbody td { padding: 11px 12px; font-size: 13px; }
}

/* ---- Mobile landscape (481px - 767px) ---- */
@media (max-width: 767px) {
    .bsp-overlay { padding: 12px; }
    .bsp-popup {
        max-width: 100%;
        max-height: 96vh;
    }
    .bsp-header { padding: 26px 22px 20px; }
    .bsp-header h2 { font-size: 21px; }
    .bsp-header p { font-size: 13px; }
    .bsp-stepper-indicator { padding: 16px 18px 0; gap: 0; }
    .bsp-step-num { width: 30px; height: 30px; font-size: 12px; }
    .bsp-step-label { font-size: 9px; letter-spacing: 0.5px; }
    .bsp-step-line { min-width: 14px; margin: 15px -2px 0; }
    .bsp-progress-track { margin: 8px 22px 0; }
    .bsp-form { padding: 16px 22px 22px; }
    .bsp-step-heading h3 { font-size: 18px; }
    .bsp-step-heading p { font-size: 12px; }
    .bsp-field input { padding: 12px 14px; font-size: 14px; }
    .bsp-radio-cards { gap: 6px; }
    .bsp-radio-card-inner { padding: 12px 6px; }
    .bsp-radio-card-icon { font-size: 22px; }
    .bsp-radio-card-title { font-size: 12px; }
    .bsp-radio-card-sub { font-size: 9px; }
    .bsp-select-grid { gap: 5px; }
    .bsp-select-card > span { min-height: 60px; padding: 9px 3px; }
    .bsp-select-icon { font-size: 18px; }
    .bsp-actions { gap: 8px; }
    .bsp-back-btn, .bsp-next-btn, .bsp-submit { padding: 13px 16px; font-size: 13px; }
    .bsp-back-btn { padding: 13px 14px; }
    .bsp-result { padding: 22px 22px 28px; }
    .bsp-result-header h3 { font-size: 19px; }
    .bsp-checkmark { width: 70px; height: 70px; }
    .bsp-cost-table thead th { padding: 12px 12px; font-size: 11px; }
    .bsp-cost-table tbody td { padding: 10px 12px; font-size: 12px; }
    .bsp-cost-table tfoot td { padding: 13px 12px; font-size: 14px; }
    .bsp-mini-summary { padding: 12px 14px; }
    .bsp-mini-summary li { font-size: 11px; }
}

/* ---- Mobile portrait (<= 480px) — full-screen popup ---- */
@media (max-width: 480px) {
    .bsp-overlay {
        padding: 0 !important;
        align-items: stretch !important;
    }
    .bsp-popup {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 100vh !important;
        height: 100vh !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    .bsp-countdown {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    .bsp-blob-1 { width: 160px; height: 160px; top: -60px; right: -60px; }
    .bsp-blob-2 { width: 180px; height: 180px; bottom: -80px; left: -80px; }

    .bsp-header { padding: 22px 18px 18px; }
    .bsp-header h2 { font-size: 19px; line-height: 1.25; }
    .bsp-header p { font-size: 12px; line-height: 1.4; }
    .bsp-badge { font-size: 10px; padding: 5px 11px; margin-bottom: 10px; }
    .bsp-trust { font-size: 11px; margin-top: 10px; }

    .bsp-stepper-indicator { padding: 14px 14px 0; }
    .bsp-step-label { display: none; }    /* hide labels on tiny screens */
    .bsp-step-num { width: 30px; height: 30px; font-size: 12px; }
    .bsp-step-line { margin: 15px -4px 0; min-width: 20px; }
    .bsp-progress-track { margin: 6px 18px 0; }

    .bsp-form { padding: 14px 18px 20px; min-height: auto; }
    .bsp-step-heading { margin-bottom: 4px; }
    .bsp-step-eyebrow { font-size: 10px; padding: 4px 10px; margin-bottom: 8px; }
    .bsp-step-heading h3 { font-size: 17px; margin: 0 0 4px; }
    .bsp-step-heading p { font-size: 12px; }
    .bsp-field input { padding: 11px 12px; font-size: 14px; }
    .bsp-stepper input { font-size: 15px !important; }
    .bsp-stepper-btn { width: 40px; font-size: 20px; }

    /* Stack jurisdiction into single column on tiny screens */
    .bsp-radio-cards { grid-template-columns: 1fr; gap: 6px; }
    .bsp-radio-card-inner { padding: 12px 14px; display: flex; align-items: center; gap: 10px; text-align: left; }
    .bsp-radio-card-icon { font-size: 24px; margin-bottom: 0; flex-shrink: 0; }
    .bsp-radio-card-title { font-size: 14px; margin-bottom: 2px; }
    .bsp-radio-card-sub { font-size: 11px; }
    .bsp-radio-card > .bsp-radio-card-inner { flex: 1; }

    /* Office: 3 columns on tiny screens */
    .bsp-select-grid { grid-template-columns: repeat(3, 1fr); gap: 5px; }
    .bsp-select-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .bsp-select-card > span { min-height: 60px; padding: 10px 4px; }
    .bsp-select-icon { font-size: 18px; }
    .bsp-select-label { font-size: 10px; }

    .bsp-actions { flex-direction: row; }
    .bsp-back-btn, .bsp-next-btn, .bsp-submit { padding: 12px 14px; font-size: 13px; min-height: 44px; }
    .bsp-back-btn { padding: 12px 12px; }
    .bsp-foot { font-size: 11px; }

    .bsp-result { padding: 20px 18px 24px; }
    .bsp-result-header h3 { font-size: 18px; }
    .bsp-result-header p { font-size: 13px; }
    .bsp-checkmark { width: 64px; height: 64px; }
    .bsp-cost-table thead th { padding: 10px 10px; font-size: 10px; }
    .bsp-cost-table tbody td { padding: 9px 10px; font-size: 11px; }
    .bsp-cost-table tfoot td { padding: 12px 10px; font-size: 13px; }
    .bsp-track-btn { padding: 13px 18px; font-size: 14px; }
    .bsp-mini-summary { padding: 12px 14px; }
    .bsp-mini-summary-title { font-size: 10px; }
    .bsp-mini-summary li { font-size: 11px; }
    .bsp-mini-summary ul { gap: 4px 10px; }
}

/* ---- Very small screens (<= 360px) ---- */
@media (max-width: 360px) {
    .bsp-header h2 { font-size: 17px; }
    .bsp-step-heading h3 { font-size: 16px; }
    .bsp-radio-card-title { font-size: 13px; }
    .bsp-radio-card-sub { font-size: 10px; }
    .bsp-select-grid { grid-template-columns: repeat(2, 1fr); }
    .bsp-stepper-btn { width: 36px; }
}

/* =========================================================
   SCROLLBAR
   ========================================================= */
.bsp-popup::-webkit-scrollbar { width: 8px; }
.bsp-popup::-webkit-scrollbar-track { background: transparent; }
.bsp-popup::-webkit-scrollbar-thumb { background: rgba(8,9,36,0.15); border-radius: 4px; }
.bsp-popup::-webkit-scrollbar-thumb:hover { background: rgba(158,8,8,0.4); }
