/*
 * Shared styles for the Business SMS / WhatsApp web onboarding flow (step1–step5).
 * Single source of truth: extend here instead of duplicating rules in each HTML file.
 */

:root {
    --bs-flow-bg: #f5f7fc;
    --bs-flow-text: #141b34;
    --bs-flow-heading: #121a35;
    --bs-flow-muted: #6f7c94;
    --bs-flow-primary: #3164df;
    --bs-flow-primary-dark: #2e5dd2;
    --bs-flow-card-border: #edf2fa;
    --bs-flow-radius-lg: 26px;
    --bs-flow-radius-md: 18px;
    --bs-flow-shadow: 0 14px 36px rgba(31, 48, 82, 0.08);
    --bs-flow-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Typography: smaller body; titles & primary CTAs stay the visual focus */
    --bs-flow-fs-body: 13px;
    --bs-flow-fs-body-sm: 12px;
    --bs-flow-fs-label: 13px;
    --bs-flow-fs-subtitle: 14px;
    --bs-flow-fs-title-page: 30px;
    --bs-flow-fs-title-section: 20px;
    --bs-flow-fs-btn: 16px;
    --bs-flow-fs-btn-lg: 17px;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background: var(--bs-flow-bg);
    color: var(--bs-flow-text);
    font-family: var(--bs-flow-font);
    font-size: var(--bs-flow-fs-body);
}

/* --- Step 1 landing --- */
.page-wrap {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 24px 40px;
    box-sizing: border-box;
}

.hero-card {
    width: 100%;
    max-width: 1110px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 40px rgba(31, 48, 82, 0.08);
    border: 1px solid #edf1f7;
    padding: 54px 42px 38px;
    box-sizing: border-box;
    text-align: center;
}

.hero-title {
    margin: 0;
    font-size: var(--bs-flow-fs-title-page);
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--bs-flow-heading);
}

.hero-subtitle {
    margin: 20px 0 0;
    font-size: var(--bs-flow-fs-subtitle);
    line-height: 1.45;
    font-weight: 500;
    color: #6c7a95;
}

.feature-grid {
    margin-top: 46px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.feature-item {
    border: 1px solid #cfe0ff;
    border-radius: 22px;
    padding: 30px 20px 26px;
    background: #ffffff;
    min-height: 268px;
    box-sizing: border-box;
}

.icon-box {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    margin: 0 auto 22px;
    background: linear-gradient(180deg, #f3f8ff 0%, #ebf3ff 100%);
    border: 1px solid #e0ecff;
    color: #4f77da;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-title {
    margin: 0;
    font-size: var(--bs-flow-fs-title-section);
    line-height: 1.2;
    font-weight: 700;
    color: #111a35;
    letter-spacing: -0.02em;
}

.feature-desc {
    margin: 14px 0 0;
    font-size: var(--bs-flow-fs-body);
    line-height: 1.45;
    color: #6b7892;
    font-weight: 500;
}

/* Last feature card: clamp description to 2 lines */
.feature-item:last-child {
    padding: 30px 8px 26px;
}

.feature-item:last-child .feature-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.action-row {
    margin-top: 44px;
}

.start-btn {
    border: 0;
    border-radius: 18px;
    padding: 0 46px;
    height: 56px;
    min-width: 610px;
    background: linear-gradient(180deg, #2e66ef 0%, #2258df 100%);
    box-shadow: 0 14px 28px rgba(32, 82, 198, 0.28);
    color: #ffffff;
    font-size: var(--bs-flow-fs-btn-lg);
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.start-btn:hover {
    filter: brightness(1.03);
}

.security-text {
    margin: 20px 0 0;
    font-size: var(--bs-flow-fs-body);
    line-height: 1.25;
    color: #8d99af;
    font-weight: 500;
}

.security-brand {
    color: #4270d5;
    font-weight: 700;
}

@media (max-width: 1360px) {
    .hero-title {
        font-size: 26px;
    }
    .feature-title {
        font-size: 18px;
    }
    .feature-desc {
        font-size: var(--bs-flow-fs-body-sm);
    }
    .start-btn {
        min-width: 470px;
        height: 52px;
        font-size: var(--bs-flow-fs-btn);
    }
    .security-text {
        font-size: var(--bs-flow-fs-body-sm);
    }
}

@media (max-width: 1100px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .start-btn {
        min-width: 0;
        width: 100%;
        max-width: 640px;
    }
}

@media (max-width: 720px) {
    .page-wrap {
        padding: 12px 12px 20px;
    }
    .hero-card {
        padding: 22px 14px 18px;
        border-radius: 18px;
    }
    .hero-title {
        font-size: 20px;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 12px;
        margin: 8px 0 0;
        line-height: 1.4;
    }
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 18px;
    }
    .feature-item {
        padding: 14px 8px 12px;
        min-height: 0;
        border-radius: 14px;
    }
    .feature-item:last-child {
        padding: 14px 8px 12px;
    }
    .icon-box {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 16px;
        margin: 0 auto 10px;
    }
    .feature-title {
        font-size: 13px;
    }
    .feature-desc {
        font-size: 11px;
        margin: 6px 0 0;
        line-height: 1.35;
    }
    .action-row {
        margin-top: 16px;
    }
    .start-btn {
        height: 42px;
        padding: 0 18px;
        font-size: 14px;
        border-radius: 12px;
        gap: 6px;
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
    .security-text {
        font-size: 11px;
        margin: 8px 0 0;
    }
}

/* --- Step 2 verify email --- */
.step2-page {
    padding: 28px 16px 36px;
    box-sizing: border-box;
    min-height: 100vh;
}

.step2-card {
    max-width: 760px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--bs-flow-card-border);
    box-shadow: var(--bs-flow-shadow);
    border-radius: var(--bs-flow-radius-lg);
    padding: 24px 32px 34px;
    box-sizing: border-box;
}

.step2-back {
    color: #9aa7bd;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    display: inline-block;
}

.step2-title {
    margin: 30px 0 0;
    text-align: center;
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--bs-flow-heading);
}

.step2-subtitle {
    margin: 22px 0 0;
    text-align: center;
    font-size: var(--bs-flow-fs-subtitle);
    line-height: 1.45;
    color: var(--bs-flow-muted);
    font-weight: 500;
}

.step2-label {
    margin: 34px 0 12px;
    display: block;
    font-size: var(--bs-flow-fs-label);
    line-height: 1.3;
    font-weight: 700;
    color: #253046;
}

.email-row {
    display: grid;
    grid-template-columns: 1fr 208px;
    gap: 12px;
}

.step2-email-input {
    height: 52px;
    border-radius: 20px;
    border: 1px solid #dbe5f0;
    background: #eef3f6;
    padding: 0 24px;
    font-size: var(--bs-flow-fs-body);
    color: #1e273b;
    box-sizing: border-box;
    outline: none;
}

.step2-email-input.is-error {
    border: 3px solid #cc4a58;
    background: #f6eef0;
    color: #b22634;
}

.step2-resend-button {
    height: 52px;
    border-radius: 20px;
    border: 0;
    background: #b8c3d7;
    color: #f0f4fb;
    font-size: var(--bs-flow-fs-body);
    font-weight: 700;
    cursor: pointer;
}

.step2-resend-button.ready {
    background: var(--bs-flow-primary);
    color: #ffffff;
}

.code-box {
    position: relative;
}

.step2-code-input {
    width: 100%;
    height: 50px;
    border-radius: 22px;
    border: 1px solid #dbe5f0;
    background: #eef3f6;
    padding: 0 70px 0 24px;
    box-sizing: border-box;
    text-align: center;
    letter-spacing: 0.28em;
    font-size: var(--bs-flow-fs-btn-lg);
    color: #1c2538;
    font-weight: 500;
    outline: none;
    caret-color: #0f172a;
}

.step2-code-input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.step2-code-input::placeholder {
    color: #99a3b5;
}

.step2-code-input.is-focus {
    border: 3px solid #3f7ed6;
    background: #eef3f6;
}

.step2-code-input.is-error {
    border: 3px solid #cc4a58;
    background: #f6eef0;
    color: #b22634;
}

.code-error-icon {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #cc4a58;
    font-size: 18px;
    font-weight: 700;
    display: none;
    line-height: 1;
}

.code-box.error .code-error-icon {
    display: block;
}

.step2-error {
    margin: 10px 0 0;
    color: #b23341;
    font-size: var(--bs-flow-fs-body-sm);
    font-weight: 500;
    line-height: 1.35;
    display: none;
}

.step2-error.show {
    display: block;
}

.tip-card {
    margin-top: 18px;
    border-radius: 18px;
    border: 1px solid #f2ead1;
    background: #faf7e8;
    color: #654e2c;
    padding: 18px 20px;
    box-sizing: border-box;
    font-size: var(--bs-flow-fs-body-sm);
    line-height: 1.5;
}

.tip-card b {
    font-style: italic;
    font-weight: 700;
}

.step2-submit {
    margin-top: 22px;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 22px;
    background: linear-gradient(180deg, var(--bs-flow-primary) 0%, var(--bs-flow-primary-dark) 100%);
    color: #ffffff;
    font-size: var(--bs-flow-fs-btn-lg);
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(49, 100, 223, 0.25);
}

.step2-toast {
    position: fixed;
    left: 50%;
    bottom: 42px;
    transform: translateX(-50%);
    min-width: 360px;
    max-width: calc(100vw - 32px);
    background: #15233d;
    color: #f5f7fc;
    border-radius: 999px;
    padding: 14px 26px;
    font-size: var(--bs-flow-fs-body-sm);
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 14px 28px rgba(21, 35, 61, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.step2-toast.show {
    opacity: 1;
}

@media (max-width: 860px) {
    .step2-card {
        border-radius: 18px;
        padding: 18px 18px 24px;
    }
    .step2-back {
        font-size: 16px;
    }
    .step2-title {
        margin-top: 20px;
        font-size: 22px;
    }
    .step2-subtitle {
        margin-top: 14px;
        font-size: var(--bs-flow-fs-body);
    }
    .step2-label {
        margin-top: 22px;
        font-size: var(--bs-flow-fs-body-sm);
    }
    .email-row {
        grid-template-columns: 1fr;
    }
    .step2-email-input,
    .step2-resend-button {
        height: 48px;
        border-radius: 16px;
        font-size: var(--bs-flow-fs-body);
    }
    .step2-code-input {
        height: 48px;
        border-radius: 18px;
        font-size: var(--bs-flow-fs-btn);
        letter-spacing: 0.22em;
    }
    .code-error-icon {
        font-size: 16px;
    }
    .step2-submit {
        height: 48px;
        border-radius: 18px;
        font-size: var(--bs-flow-fs-btn);
    }
    .tip-card {
        font-size: var(--bs-flow-fs-body-sm);
    }
}

/* --- Step 3 send test --- */
.step3-page {
    min-height: 100vh;
    box-sizing: border-box;
    padding: 28px 16px 40px;
}

.step3-card {
    max-width: 760px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--bs-flow-card-border);
    box-shadow: var(--bs-flow-shadow);
    border-radius: var(--bs-flow-radius-lg);
    padding: 24px 32px 34px;
    box-sizing: border-box;
}

.step3-back {
    color: #9aa7bd;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    display: inline-block;
}

.step3-title {
    margin: 28px 0 0;
    text-align: left;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--bs-flow-heading);
}

.step3-subtitle {
    margin: 12px 0 0;
    text-align: left;
    font-size: var(--bs-flow-fs-body);
    line-height: 1.35;
    color: var(--bs-flow-muted);
    font-weight: 500;
}

.section-title {
    margin: 30px 0 12px;
    display: block;
    font-size: var(--bs-flow-fs-label);
    line-height: 1.3;
    font-weight: 700;
    color: #253046;
}

.phone-row {
    display: grid;
    grid-template-columns: 126px 1fr;
    gap: 12px;
}

.country-code-box {
    height: 52px;
    border-radius: 16px;
    border: 1px solid #dce4ef;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #1e273b;
    font-size: var(--bs-flow-fs-body);
    font-weight: 500;
    box-sizing: border-box;
}

.country-code-box .flag-icon {
    width: 22px;
    height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
}

.country-code-box .country-code-label {
    white-space: nowrap;
}

.phone-input {
    height: 52px;
    border-radius: 16px;
    border: 1px solid #dce4ef;
    background: #ffffff;
    box-sizing: border-box;
    padding: 0 22px;
    font-size: var(--bs-flow-fs-body);
    color: #1e273b;
    outline: none;
}

.phone-input::placeholder {
    color: #98a3b5;
}

.phone-input:disabled,
.phone-input.phone-input--virtual-filled:disabled {
    opacity: 1;
    cursor: not-allowed;
    background: #ffffff;
    border-color: #dce4ef;
    color: #1e273b;
}

.phone-input.phone-input--error {
    border-color: #e5484d;
    background: #fff8f8;
}

.step3-phone-error {
    margin: 8px 0 0;
    min-height: 0;
    font-size: var(--bs-flow-fs-body-sm);
    line-height: 1.4;
    color: #e5484d;
    font-weight: 600;
}

.step3-phone-error:empty {
    display: none;
}

.virtual-link {
    margin-top: 10px;
    border: 0;
    background: transparent;
    padding: 0;
    color: #2f5ebf;
    font-size: var(--bs-flow-fs-body-sm);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.option-card {
    border: 1px solid #dce4ef;
    border-radius: 18px;
    min-height: 96px;
    padding: 16px 16px 14px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.option-card:has(input:checked) {
    border-color: var(--bs-flow-primary);
    box-shadow: 0 0 0 2px rgba(49, 100, 223, 0.22);
}

.option-card input {
    margin-top: 12px;
    width: 19px;
    height: 19px;
    accent-color: var(--bs-flow-primary);
}

.option-title {
    margin: 0;
    font-size: var(--bs-flow-fs-title-section);
    line-height: 1.2;
    font-weight: 700;
    color: #1a2439;
}

.option-desc {
    margin: 4px 0 0;
    font-size: var(--bs-flow-fs-body-sm);
    line-height: 1.35;
    color: #9aa5b8;
    font-weight: 500;
}

/* Step 3 preset: read-only, centered (matches design — not a textarea). */
.step3-preset-section .section-title {
    margin-bottom: 12px;
}

.step3-preset-template {
    width: 100%;
    min-height: 120px;
    border-radius: 18px;
    border: 1px solid #dce4ef;
    background: #f3f5f7;
    box-sizing: border-box;
    padding: 28px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    user-select: none;
}

.step3-preset-template-text {
    margin: 0;
    max-width: 38em;
    font-size: var(--bs-flow-fs-body);
    line-height: 1.55;
    color: #3e4758;
    font-weight: 500;
}

.send-button {
    margin-top: 20px;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 20px;
    background: linear-gradient(180deg, var(--bs-flow-primary) 0%, var(--bs-flow-primary-dark) 100%);
    color: #ffffff;
    font-size: var(--bs-flow-fs-btn-lg);
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(49, 100, 223, 0.26);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.send-button:disabled {
    opacity: 0.7;
    cursor: default;
}

.step3-toast {
    position: fixed;
    left: 50%;
    bottom: 42px;
    transform: translateX(-50%);
    min-width: min(360px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    background: #15233d;
    color: #f5f7fc;
    border-radius: 999px;
    padding: 14px 26px;
    font-size: var(--bs-flow-fs-body-sm);
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 14px 28px rgba(21, 35, 61, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.step3-toast.show {
    opacity: 1;
}

@media (max-width: 860px) {
    .step3-card {
        border-radius: 18px;
        padding: 18px 18px 24px;
    }
    .step3-back {
        font-size: 16px;
    }
    .step3-title {
        margin-top: 20px;
        font-size: 22px;
    }
    .step3-subtitle {
        margin-top: 10px;
        font-size: var(--bs-flow-fs-body-sm);
    }
    .section-title {
        margin-top: 22px;
        font-size: var(--bs-flow-fs-body-sm);
    }
    .phone-row {
        grid-template-columns: 106px 1fr;
    }
    .country-code-box,
    .phone-input {
        height: 48px;
        font-size: var(--bs-flow-fs-body);
    }
    .option-grid {
        grid-template-columns: 1fr;
    }
    .option-title {
        font-size: 17px;
    }
    .step3-preset-template {
        min-height: 100px;
        padding: 20px 16px;
    }
    .step3-preset-template-text {
        font-size: var(--bs-flow-fs-body-sm);
        line-height: 1.5;
    }
    .send-button {
        height: 48px;
        border-radius: 18px;
        font-size: var(--bs-flow-fs-btn);
    }
}

@media (max-width: 480px) {
    .phone-row {
        grid-template-columns: 1fr;
    }
    .country-code-box {
        border-radius: 14px;
    }
}

/* --- Step 4 result --- */
.step4-page {
    min-height: 100vh;
    box-sizing: border-box;
    padding: 26px 16px 42px;
}

.step4-card {
    max-width: 760px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--bs-flow-card-border);
    box-shadow: var(--bs-flow-shadow);
    border-radius: var(--bs-flow-radius-lg);
    padding: 24px 28px 34px;
    box-sizing: border-box;
}

.step4-back {
    color: #9aa7bd;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    display: inline-block;
}

.step4-checkmark {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 20px auto 10px;
    background: linear-gradient(180deg, #39d772 0%, #20c362 100%);
    box-shadow: 0 12px 26px rgba(50, 214, 114, 0.3);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
}

.step4-confetti {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 6px 0 18px;
}

.step4-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    transform: rotate(45deg);
}

.dot-purple {
    background: #8e5ae8;
}

.dot-red {
    background: #ec5f67;
}

.dot-blue {
    background: #4a86ea;
}

.dot-yellow {
    background: #e9c34d;
}

.step4-title {
    margin: 0;
    text-align: center;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--bs-flow-heading);
}

.step4-subtitle {
    margin: 10px 0 0;
    text-align: center;
    font-size: var(--bs-flow-fs-body);
    line-height: 1.4;
    color: var(--bs-flow-muted);
    font-weight: 500;
}

.message-card {
    margin-top: 18px;
    border-radius: 18px;
    border: 1px solid #e5edf2;
    background: #eef5f6;
    padding: 22px 20px;
    box-sizing: border-box;
}

.message-card--align-end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.message-bubble {
    max-width: 520px;
    margin: 0 0 0 auto;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: var(--bs-flow-fs-body);
    line-height: 1.35;
    color: #2c3343;
    font-weight: 600;
    background: #cff2de;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.message-bubble.queued {
    border-style: dotted;
}

.message-time {
    margin: 8px 0 0;
    text-align: right;
    color: var(--bs-flow-muted);
    font-size: 11px;
    font-weight: 500;
}

.message-channel {
    margin: 16px 0 0;
    text-align: center;
    color: #8792a8;
    font-size: var(--bs-flow-fs-body-sm);
    font-weight: 500;
}

.benefits-title {
    margin: 28px 0 14px;
    font-size: var(--bs-flow-fs-title-section);
    line-height: 1.2;
    font-weight: 800;
    color: var(--bs-flow-heading);
}

.benefits-list {
    margin: 0;
    padding-left: 22px;
    color: #5d697f;
    font-size: var(--bs-flow-fs-body-sm);
    line-height: 1.6;
    font-weight: 500;
}

.benefits-list li {
    margin-bottom: 6px;
}

.primary-btn {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    border-radius: 18px;
    text-decoration: none;
    background: linear-gradient(180deg, var(--bs-flow-primary) 0%, var(--bs-flow-primary-dark) 100%);
    color: #ffffff;
    font-size: var(--bs-flow-fs-btn-lg);
    font-weight: 700;
    box-shadow: 0 12px 25px rgba(49, 100, 223, 0.26);
}

.secondary-btn {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border-radius: 18px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #5e6a80;
    font-size: var(--bs-flow-fs-btn);
    font-weight: 700;
}

.secondary-btn span {
    font-style: italic;
    color: #7e899d;
    font-weight: 500;
    margin-left: 6px;
}

@media (max-width: 860px) {
    .step4-card {
        border-radius: 18px;
        padding: 18px 18px 24px;
    }
    .step4-back {
        font-size: 16px;
    }
    .step4-checkmark {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
    .step4-title {
        font-size: 22px;
    }
    .step4-subtitle {
        font-size: var(--bs-flow-fs-body-sm);
    }
    .benefits-title {
        font-size: 18px;
    }
    .benefits-list {
        font-size: var(--bs-flow-fs-body-sm);
    }
    .primary-btn,
    .secondary-btn {
        height: 48px;
        font-size: var(--bs-flow-fs-btn);
    }
}

/* --- Step 5 upgrade info --- */
.step5-page {
    box-sizing: border-box;
    min-height: 100vh;
    padding: 22px 16px 40px;
}

.step5-inner {
    max-width: 760px;
    margin: 0 auto;
}

.step5-back {
    color: #9aa7bd;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    display: inline-block;
}

.step5-title {
    margin: 18px 0 0;
    text-align: center;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--bs-flow-heading);
}

.step5-lead {
    margin: 10px 0 0;
    text-align: center;
    font-size: var(--bs-flow-fs-body);
    line-height: 1.45;
    color: var(--bs-flow-muted);
    font-weight: 500;
}

.step5-section-title {
    margin: 26px 0 14px;
    text-align: left;
    font-size: var(--bs-flow-fs-title-section);
    font-weight: 700;
    color: #253046;
}

.step5-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: stretch;
}

.step5-card {
    background: #ffffff;
    border: 1px solid #dbe7f3;
    border-radius: 14px;
    padding: 16px 16px 18px;
    box-sizing: border-box;
    box-shadow: 0 6px 18px rgba(31, 48, 82, 0.06);
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.step5-pricing-badge {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #1d4ed8;
    background: #e0efff;
}

.step5-card-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.step5-card-lead {
    margin: 0 0 8px;
    font-size: var(--bs-flow-fs-body-sm);
    line-height: 1.45;
    color: #64748b;
    font-weight: 500;
}

.step5-card-body {
    margin: 0;
    font-size: var(--bs-flow-fs-body-sm);
    line-height: 1.5;
    color: #64748b;
    font-weight: 500;
}

.step5-card-list {
    margin: 0;
    padding: 0 0 0 1.15rem;
    list-style: disc;
    font-size: var(--bs-flow-fs-body-sm);
    line-height: 1.55;
    font-weight: 600;
}

.step5-card-list--blue {
    color: #2563eb;
}

.step5-card-list--blue li {
    margin-bottom: 6px;
}

.step5-card-list--blue li:last-child {
    margin-bottom: 0;
}

.step5-card-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 12px;
}

.step5-card-icon-wrap--green {
    background: #dcfce7;
    color: #16a34a;
}

.step5-card-icon-wrap--purple {
    background: #ede9fe;
    color: #7c3aed;
}

.step5-card-icon-wrap--orange {
    background: #ffedd5;
    color: #ea580c;
}

.step5-card-svg {
    display: block;
}

.step5-card-foot {
    margin: 12px 0 0;
    font-size: var(--bs-flow-fs-body-sm);
    line-height: 1.45;
    font-weight: 600;
}

.step5-card-foot--green {
    margin-top: auto;
    padding-top: 12px;
    color: #15803d;
}

.step5-card-foot--orange {
    margin-top: auto;
    padding-top: 12px;
    color: #ea580c;
}

.step5-link {
    color: #5b4fcf;
    font-weight: 600;
    text-decoration: none;
}

.step5-link--rates {
    display: inline;
    color: #7c3aed;
    font-weight: 600;
    text-decoration: underline;
}

.step5-link--rates:hover {
    color: #6d28d9;
}

.step5-link:hover {
    text-decoration: underline;
}

.step5-field-label {
    margin: 22px 0 8px;
    font-size: var(--bs-flow-fs-label);
    font-weight: 700;
    color: #253046;
}

.step5-select-wrap {
    position: relative;
}

.step5-select {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1px solid #dce4ef;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%236f7c94' d='M0 0h12L6 8z'/%3E%3C/svg%3E") no-repeat right 14px center;
    padding: 0 40px 0 14px;
    font-size: var(--bs-flow-fs-body);
    font-weight: 500;
    color: #1e273b;
    appearance: none;
    box-sizing: border-box;
}

.step5-cta {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    border-radius: 14px;
    text-decoration: none;
    background: linear-gradient(180deg, var(--bs-flow-primary) 0%, var(--bs-flow-primary-dark) 100%);
    color: #ffffff;
    font-size: var(--bs-flow-fs-btn-lg);
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(49, 100, 223, 0.22);
    box-sizing: border-box;
}

button.step5-cta,
button.step5-cta-button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.step5-autotopup {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid #dce4ef;
    border-radius: 12px;
    background: #fafbfd;
    box-sizing: border-box;
}

.step5-autotopup-label {
    font-size: var(--bs-flow-fs-label);
    font-weight: 700;
    color: #253046;
    min-width: 88px;
}

.step5-autotopup-selects {
    display: flex;
    flex: 1 1 220px;
    gap: 10px;
    min-width: 0;
}

.step5-autotopup-select {
    flex: 1 1 0;
    min-width: 0;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #cfd8e6;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%236f7c94' d='M0 0h12L6 8z'/%3E%3C/svg%3E") no-repeat right 12px center;
    padding: 0 32px 0 12px;
    font-size: var(--bs-flow-fs-body-sm);
    font-weight: 500;
    color: #1e273b;
    appearance: none;
    box-sizing: border-box;
}

.step5-autotopup-select--placeholder {
    color: #5d697f;
    background-color: #f3f5f8;
    opacity: 1;
}

.step5-consent {
    margin-top: 20px;
}

.step5-consent-row {
    display: block;
    margin-bottom: 14px;
}

.step5-consent-check {
    vertical-align: top;
    margin: 3px 8px 0 0;
    float: left;
}

.step5-consent-label {
    display: block;
    margin: 0 0 0 26px;
    font-size: var(--bs-flow-fs-body-sm);
    line-height: 1.4;
    color: #3d4a63;
    font-weight: 500;
}

.step5-consent-error {
    display: none;
    margin: 6px 0 0 26px;
    font-size: 12px;
    line-height: 1.3;
    color: #c53030;
    font-weight: 500;
}

.step5-consent-error--show {
    display: block;
}

.step5-stripe-foot {
    margin: 12px 0 0;
    text-align: center;
    font-size: 11px;
    color: #8b96a8;
    font-weight: 500;
}

/* Step 5 — “Important notes” callout (design: tinted panel + info icon + bullets) */
.step5-important-notes {
    margin-top: 22px;
    border-radius: 16px;
    border: 1px solid #c5daf7;
    background: linear-gradient(180deg, #f0f6ff 0%, #e8f2fc 100%);
    padding: 18px 18px 16px;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.06);
}

.step5-important-notes__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.step5-important-notes__info-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
}

.step5-important-notes__title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #1e3a5f;
    letter-spacing: -0.02em;
}

.step5-important-notes__list {
    margin: 0 0 14px;
    padding-left: 1.15rem;
    font-size: var(--bs-flow-fs-body-sm);
    line-height: 1.6;
    color: #334155;
}

.step5-important-notes__list li {
    margin-bottom: 10px;
}

.step5-important-notes__list li:last-child {
    margin-bottom: 0;
}

.step5-important-notes__bullet-label {
    display: block;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.step5-important-notes__body {
    margin: 0 0 12px;
    font-size: var(--bs-flow-fs-body-sm);
    line-height: 1.6;
    color: #334155;
}

.step5-important-notes__body strong {
    color: #0f172a;
    font-weight: 700;
}

.step5-important-notes__footer {
    margin: 0;
    font-size: var(--bs-flow-fs-body-sm);
    line-height: 1.55;
    color: #334155;
}

.step5-important-notes__footer strong {
    color: #0f172a;
}

.step5-after-title {
    margin: 32px 0 18px;
    text-align: center;
    font-size: var(--bs-flow-fs-title-section);
    font-weight: 800;
    color: var(--bs-flow-heading);
}

.step5-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.step5-feat {
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 14px;
    padding: 20px 14px 18px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.step5-feat-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #e8f2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
}

.step5-feat-svg {
    display: block;
}

.step5-feat-label {
    margin: 0;
    font-size: var(--bs-flow-fs-body-sm);
    font-weight: 700;
    color: #1a2439;
    line-height: 1.35;
    max-width: 11rem;
}

/* Step 5 FAQ — static expanded Q/A (not accordion) */
.step5-faq-block {
    margin-top: 8px;
}

.step5-faq-heading-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 14px;
}

.step5-faq-head-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
}

.step5-faq-title {
    margin: 0;
    font-size: var(--bs-flow-fs-title-section);
    font-weight: 800;
    color: #1e3a5f;
    letter-spacing: -0.02em;
}

.step5-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step5-faq-item {
    background: #ffffff;
    border: 1px solid #c5daf7;
    border-radius: 12px;
    padding: 14px 16px 16px;
    box-sizing: border-box;
}

.step5-faq-q {
    margin: 0 0 10px;
    font-size: var(--bs-flow-fs-label);
    font-weight: 700;
    color: #1e293b;
    line-height: 1.45;
}

.step5-faq-a {
    margin: 0;
    font-size: var(--bs-flow-fs-body-sm);
    font-weight: 500;
    line-height: 1.55;
    color: #64748b;
}

.step5-faq-label {
    font-weight: inherit;
    margin-right: 4px;
}

.step5-footer-cta {
    margin-top: 22px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .step5-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .secondary-btn {
        height: auto;
        min-height: 48px;
        padding-top: 8px;
        padding-bottom: 8px;
        flex-direction: column;
        gap: 2px;
    }
    .secondary-btn span {
        display: block;
        margin-left: 0;
    }
    .step5-grid {
        grid-template-columns: 1fr;
    }
    .step5-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .step5-feat {
        padding: 14px 8px 12px;
        gap: 8px;
        border-radius: 12px;
    }
    .step5-feat-icon-wrap {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    .step5-feat-svg {
        width: 22px;
        height: 22px;
    }
    .step5-feat-label {
        font-size: 12px;
        max-width: 100%;
    }
    .step5-title {
        font-size: 22px;
    }
    .step5-back {
        font-size: 16px;
    }
    .step5-cta {
        height: 48px;
        font-size: var(--bs-flow-fs-btn);
    }
    .step5-autotopup-selects {
        flex-direction: column;
    }
}

.bs-support-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1200;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bs-flow-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(145, 34, 255, 0.35);
    text-decoration: none;
}

.bs-support-fab:hover {
    background: #7b1fd9;
    color: #ffffff;
}

.bs-no-chances-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(20, 27, 52, 0.45);
}

.bs-no-chances-overlay[hidden] {
    display: none !important;
}

body.bs-no-chances-open {
    overflow: hidden;
}

.bs-no-chances-modal {
    width: 100%;
    max-width: 400px;
    padding: 28px 24px 22px;
    border-radius: var(--bs-flow-radius-md);
    background: #ffffff;
    box-shadow: var(--bs-flow-shadow);
    text-align: center;
    box-sizing: border-box;
}

.bs-no-chances-title {
    margin: 0;
    font-size: var(--bs-flow-fs-title-section);
    font-weight: 700;
    color: var(--bs-flow-heading);
    line-height: 1.25;
}

.bs-no-chances-body {
    margin: 14px 0 22px;
    font-size: var(--bs-flow-fs-body);
    line-height: 1.5;
    color: var(--bs-flow-muted);
}

.bs-no-chances-upgrade {
    width: 100%;
    margin: 0 0 12px;
    box-sizing: border-box;
}

.bs-no-chances-later {
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 8px 12px;
    border: none;
    background: none;
    font-family: var(--bs-flow-font);
    font-size: var(--bs-flow-fs-body);
    font-weight: 600;
    color: var(--bs-flow-muted);
    cursor: pointer;
    text-decoration: underline;
}

.bs-no-chances-later:hover {
    color: var(--bs-flow-text);
}
