
/* ── Quiz wrapper & card ──────────────────────────────── */
.campaign-quiz-wrap {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.quiz-card {
    width: 100%;
    max-width: 760px;
    margin: 88px auto 0;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 100px);
    overflow: hidden;
}

/* ── Progress bar ─────────────────────────────────────── */
.qz-progress-track { height: 3px; background: #f0f0f0; flex-shrink: 0; }
.qz-progress-fill {
    height: 100%;
    background: #000e30;
    width: 20%;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Top row ──────────────────────────────────────────── */
.qz-toprow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px 0;
    flex-shrink: 0;
}

.qz-back-btn {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #86868b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 0;
    min-width: 60px;
    visibility: hidden;
}
.qz-back-btn:hover { color: #1d1d1f; }

.qz-step-counter { font-size: 12px; font-weight: 600; color: #86868b; letter-spacing: 0.3px; }
.qz-toprow-end { min-width: 60px; }

/* ── Info banner ──────────────────────────────────────── */
.qz-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 14px 28px 0;
    padding: 13px 15px;
    background: #f0f4ff;
    border: 1px solid rgba(0,14,48,0.12);
    border-left: 3px solid #000e30;
    border-radius: 10px;
    flex-shrink: 0;
    animation: banner-in 0.35s ease;
}
@keyframes banner-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

.qz-banner-icon { font-size: 18px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.qz-banner-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: #000e30; margin-bottom: 2px; }
.qz-banner-stat { font-size: 13.5px; font-weight: 700; color: #1d1d1f; line-height: 1.35; }
.qz-banner-stat .hl { color: #000e30; }
.qz-banner-sub { font-size: 11.5px; color: #86868b; margin-top: 2px; line-height: 1.4; }

/* ── Scrollable content ───────────────────────────────── */
.qz-scroll { flex: 1; overflow-y: auto; padding: 24px 28px 12px; -webkit-overflow-scrolling: touch; }
.qz-scroll::-webkit-scrollbar { width: 0; }

/* ── Steps ────────────────────────────────────────────── */
.qz-screen { display: none; }
.qz-screen.is-active { display: block; animation: screen-in 0.3s ease; }
@keyframes screen-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.qz-title {
    font-size: clamp(22px, 3.5vw, 28px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.4px;
    color: #1d1d1f;
    margin-bottom: 4px;
}
.qz-sub { font-size: 14px; color: #86868b; margin-bottom: 20px; line-height: 1.5; }

/* ── Options ──────────────────────────────────────────── */
.opt-list { display: flex; flex-direction: column; gap: 8px; }
.opt-list.opt-list--row { flex-direction: row; gap: 10px; }

.opt-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #f5f5f7;
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.1s, border-color 0.1s, transform 0.1s;
    -webkit-user-select: none;
    user-select: none;
}
.opt-row:hover { background: #eaeaec; }
.opt-row:active { transform: scale(0.99); }
.opt-row.is-sel { background: #000e30; border-color: #000e30; color: #ffffff; }

.opt-icon {
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.06);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.opt-icon.opt-icon--small { font-size: 13px; font-weight: 800; }
.opt-row.is-sel .opt-icon { background: rgba(255,255,255,0.1); }

.opt-body { flex: 1; min-width: 0; }
.opt-label { font-size: 14px; font-weight: 600; line-height: 1.3; color: #000; }
.opt-sub { font-size: 12px; color: #86868b; margin-top: 2px; }
.opt-sub.opt-sub--dark { color: #1d1d1f; }
.opt-row.is-sel .opt-label { color: #fff; }
.opt-row.is-sel .opt-sub { color: rgba(255,255,255,0.55); }

.opt-price { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: #86868b; flex-shrink: 0; }
.opt-price.is-free { color: #16a34a; }
.opt-row.is-sel .opt-price { color: rgba(255,255,255,0.65); }
.opt-row.is-sel .opt-price.is-free { color: rgba(74,222,128,0.85); }

.opt-ind {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #d2d2d7;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    color: transparent;
    transition: all 0.12s;
}
.opt-ind.checkbox { border-radius: 6px; }
.opt-row.is-sel .opt-ind { background: #000e30; border-color: #000e30; color: #ffffff; }
.opt-row.is-sel .opt-ind::after { content: '✓'; }

/* ── Savings tracker ──────────────────────────────────── */
.savings-track {
    background: linear-gradient(135deg, #000e30 0%, #001550 100%);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 18px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.savings-track::after {
    content: '';
    position: absolute;
    top: -30%; right: -10%;
    width: 40%; height: 160%;
    background: radial-gradient(ellipse, rgba(77,159,255,0.15) 0%, transparent 65%);
    pointer-events: none;
}

.st-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.st-lbl { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.5); }
.st-sub { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 2px; }
.st-val { font-size: 26px; font-weight: 800; color: #4d9fff; line-height: 1; white-space: nowrap; }

.st-bar { height: 8px; background: rgba(255,255,255,0.1); border-radius: 8px; overflow: hidden; }
.st-fill {
    height: 100%;
    background: linear-gradient(90deg, #4d9fff, #7ec8ff);
    border-radius: 8px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.22,1,0.36,1);
    box-shadow: 0 0 10px rgba(77,159,255,0.5);
}
.st-note { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 8px; }

/* ── Summary ──────────────────────────────────────────── */
.sum-price-block { text-align: center; padding: 24px 0 16px; }
.sum-price-block .pre { font-size: 13px; color: #86868b; margin-bottom: 6px; }
.sum-price-block .amount { font-size: 52px; font-weight: 800; color: #1d1d1f; letter-spacing: -2px; line-height: 1; }
.sum-price-block .amount .cr { font-size: 28px; font-weight: 400; color: #86868b; vertical-align: top; margin-top: 8px; }
.sum-price-block .note { font-size: 12px; color: #86868b; margin-top: 6px; }

.sum-card { background: #f5f5f7; border-radius: 16px; padding: 18px 20px; margin-bottom: 18px; }
.sum-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #e8e8ed;
}
.sum-line:last-child { border-bottom: none; }
.sum-line.sum-line--column { flex-direction: column; gap: 5px; }
.sum-k { color: #86868b; flex-shrink: 0; }
.sum-v { font-weight: 600; text-align: right; color: #000e30; }
.sum-feats { text-align: left; color: #000e30; }

/* ── Contact form ─────────────────────────────────────── */
.contact-card { background: #f5f5f7; border-radius: 16px; padding: 22px 22px 24px; }
.contact-card h5 { font-size: 16px; font-weight: 700; margin-bottom: 18px; color: #1d1d1f; }

.field-group { display: flex; flex-direction: column; margin-bottom: 12px; }

.cmp-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8ed;
    border-radius: 12px;
    background: #ffffff;
    font-family: 'Nasalization', "Inter", sans-serif;
    font-size: 15px;
    color: #1d1d1f;
    transition: border-color 0.2s;
    display: block;
    -webkit-appearance: none;
}
.cmp-input:focus { outline: none; border-color: #000e30; }
.cmp-input::placeholder { color: #a1a1a6; }
.cmp-input.has-error { border-color: #b91c1c; }

.field-err { display: none; font-size: 12px; color: #b91c1c; margin-top: 5px; padding-left: 4px; }
.field-err.is-visible { display: block; }

.cmp-submit {
    width: 100%;
    padding: 16px;
    background: #000e30;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-family: 'Nasalization', "Inter", sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    margin-top: 4px;
}
.cmp-submit:hover { background: #001a5e; }
.cmp-submit:active { transform: scale(0.98); }

/* ── Bottom bar ───────────────────────────────────────── */
.qz-bottom {
    flex-shrink: 0;
    padding: 12px 28px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    background: #ffffff;
    border-top: 1px solid #e8e8ed;
}
.qz-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.qz-price-show { display: none; flex-direction: column; }
.qz-price-show .lbl { font-size: 11px; color: #86868b; }
.qz-price-show .val { font-size: 22px; font-weight: 800; color: #1d1d1f; }
.qz-price-show .val.bump { animation: val-bump 0.28s ease; }
@keyframes val-bump { 0% { transform: scale(1); } 40% { transform: scale(1.1); color: #000e30; } 100% { transform: scale(1); } }

.qz-btn {
    flex: 1;
    max-width: 320px;
    margin-left: auto;
    padding: 15px 22px;
    background: #000e30;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-family: 'Nasalization', "Inter", sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.qz-btn:hover { background: #000e30; }
.qz-btn:active { transform: scale(0.98); }
.qz-btn:disabled,
.qz-btn.off { background: #e8e8ed; color: #a1a1a6; cursor: not-allowed; }
.qz-btn.qz-btn--small { width: auto; margin-top: 10px; padding: 12px 18px; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
    .quiz-card { border-radius: 16px 16px 0 0; margin-top: 80px; }
    .qz-toprow, .qz-scroll, .qz-bottom { padding-left: 18px; padding-right: 18px; }
    .qz-banner { margin-left: 18px; margin-right: 18px; }
    .qz-title { font-size: 22px; }
}

/* ── Utilities ────────────────────────────────────────── */
.invert-filter { filter: invert(1); }
.text-white { color: white; }
.hidden { display: none !important; }

/* ── Multi-select chip ────────────────────────────────── */
.multi-chip {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #000e30;
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ── Tier cards (step 5) ──────────────────────────────── */
.tier-card { align-items: flex-start !important; padding: 18px !important; }
.tier-card-body { flex: 1; min-width: 0; }
.tier-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.tier-name-text { font-size: 16px; font-weight: 800; color: #1d1d1f; }
.opt-row.is-sel .tier-name-text { color: #fff; }
.tier-price-per {
    font-size: 12px;
    font-weight: 700;
    color: #000e30;
    background: rgba(0,14,48,0.08);
    padding: 3px 8px;
    border-radius: 20px;
    margin-left: auto;
    white-space: nowrap;
}
.opt-row.is-sel .tier-price-per { color: #fff; background: rgba(255,255,255,0.15); }
.tier-monthly-total { font-size: 13px; color: #000e30; font-weight: 700; margin-bottom: 10px; }
.opt-row.is-sel .tier-monthly-total { color: #7ec8ff; }
.tier-incl-note { font-size: 11px; color: #86868b; margin-bottom: 6px; font-style: italic; }
.opt-row.is-sel .tier-incl-note { color: rgba(255,255,255,0.45); }
.tier-feat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
}
.tier-feat-list li {
    font-size: 11.5px;
    color: #6b6b70;
    padding-left: 14px;
    position: relative;
    line-height: 1.35;
}
.tier-feat-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 800;
    font-size: 10px;
    top: 1px;
}
.opt-row.is-sel .tier-feat-list li { color: rgba(255,255,255,0.65); }
.opt-row.is-sel .tier-feat-list li::before { color: #4ade80; }
@media (max-width: 480px) { .tier-feat-list { grid-template-columns: 1fr; } }

/* ── Count step — inline input ────────────────────────── */
.count-input-wrap { margin-top: 10px; width: 100%; }
.count-input-wrap .cmp-input { font-size: 14px; padding: 11px 14px; background: #fff; }
.opt-row.is-sel .count-input-wrap .cmp-input {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}
.opt-row.is-sel .count-input-wrap .cmp-input::placeholder { color: rgba(255,255,255,0.45); }
.count-input-wrap .field-err { display: none; }
.count-input-wrap .field-err.is-visible { display: block; color: #fca5a5; }
.opt-row:not(.is-sel) .count-input-wrap .field-err.is-visible { color: #b91c1c; }

/* ── Referral code ────────────────────────────────────── */
.referral-note {
    font-size: 12px;
    color: #16a34a;
    font-weight: 600;
    margin-top: 5px;
    padding-left: 2px;
    display: none;
}

/* ── Summary — discount row ───────────────────────────── */
.sum-line.discount-row .sum-k { color: #16a34a; }
.sum-line.discount-row .sum-v { color: #16a34a; }

/* ── One-time badge ───────────────────────────────────── */
.badge-onetime {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #d97706;
    background: #fef3c7;
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 5px;
    vertical-align: middle;
}

/* ── New camera option highlight ──────────────────────── */
.opt-row.new-cam-opt { border-color: #16a34a !important; }
.opt-row.new-cam-opt:not(.is-sel) { background: #f0fdf4 !important; }
.opt-row.new-cam-opt:not(.is-sel) .opt-label { color: #166534; }
.opt-row.new-cam-opt:not(.is-sel) .opt-sub { color: #4ade80; }

/* ── Feature picker (step 5) ──────────────────────────── */
.feat-counter-wrap { margin-bottom: 14px; }
.feat-counter {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #86868b;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}
.feat-counter.is-full {
    background: #000e30;
    color: #fff;
}

.feat-defaults {
    margin-bottom: 14px;
}
.feat-defaults-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.feat-default-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f4ff;
    border: 1.5px solid rgba(0,14,48,0.15);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
}
.feat-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 20px;
    margin-left: 2px;
}
.feat-badge--on {
    background: #000e30;
    color: #fff;
}
.feat-badge--free {
    background: #dcfce7;
    color: #166534;
}

.feat-section-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #86868b;
    margin: 14px 0 8px;
}
.feat-tier-header {
    display: flex;
    align-items: center;
    gap: 6px;
}
.tier-price-tag {
    font-size: 11px;
    font-weight: 700;
    color: #000e30;
    background: rgba(0,14,48,0.08);
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: auto;
}

.feat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 4px;
}
@media (max-width: 480px) { .feat-grid { grid-template-columns: 1fr; } }

.feat-chip {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 9px 12px;
    background: #f5f5f7;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 500;
    color: #1d1d1f;
    line-height: 1.35;
    transition: background 0.1s, border-color 0.1s;
    -webkit-user-select: none;
    user-select: none;
}
.feat-chip:hover { background: #eaeaec; }
.feat-chip.is-sel {
    background: #000e30;
    border-color: #000e30;
    color: #fff;
}
.feat-chip-check {
    font-size: 10px;
    font-weight: 900;
    color: transparent;
    flex-shrink: 0;
    margin-top: 1px;
    transition: color 0.1s;
}
.feat-chip.is-sel .feat-chip-check { color: #4ade80; }

@keyframes feat-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-5px); }
    60%       { transform: translateX(5px); }
}
.feat-shake { animation: feat-shake 0.35s ease; }

/* ── Cloud recording row ──────────────────────────────── */
.cloud-rec-row { margin-bottom: 4px; }

/* ── Referral section (step 6, outside form) ──────────── */
.referral-section {
    margin-bottom: 16px;
}
.referral-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

/* ── Summary highlight row ────────────────────────────── */
.sum-line--highlight {
    background: #f0f4ff;
    border-radius: 8px;
    padding: 10px 12px !important;
    margin: 4px -4px;
}
.sum-line--highlight .sum-k { color: #000e30; font-weight: 700; }
.sum-line--highlight .sum-v { color: #000e30; font-size: 15px; font-weight: 800; }

/* ── Distributor finder modal ─────────────────────────── */
.dist-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.dist-modal-overlay.hidden { display: none; }

.dist-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 28px 24px 24px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.dist-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 18px;
    color: #86868b;
    cursor: pointer;
    line-height: 1;
}
.dist-modal-close:hover { color: #1d1d1f; }

.dist-loading {
    text-align: center;
    padding: 24px 0;
    font-size: 15px;
    color: #86868b;
}

.dist-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 4px;
}
.dist-modal-subtitle {
    font-size: 13px;
    color: #86868b;
    margin-bottom: 16px;
}

.dist-list { display: flex; flex-direction: column; gap: 10px; }

.dist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f5f5f7;
    border-radius: 12px;
    padding: 14px 16px;
}
.dist-item-name {
    font-size: 14px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 2px;
}
.dist-item-area { font-size: 12px; color: #86868b; }
.dist-item-dist {
    font-size: 12px;
    font-weight: 600;
    color: #000e30;
    margin-top: 3px;
}
.dist-item-btn {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #000e30;
    border-radius: 8px;
    padding: 8px 12px;
    text-decoration: none;
    white-space: nowrap;
}
.dist-item-btn:hover { background: #001a5c; }

.dist-modal-footer {
    margin-top: 18px;
    text-align: center;
}
.dist-wa-link {
    font-size: 13px;
    color: #86868b;
    text-decoration: underline;
}
.dist-wa-link:hover { color: #1d1d1f; }
