/* Payment-choice pop-up (_BillingChoice), feature panel (_BillingFeatures)
   and /BillingChoice/Done. */

.bc-overlay {
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: flex-start; justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    padding: 24px 16px; overflow-y: auto;
}

.bc-dialog {
    position: relative; width: 100%; max-width: 640px;
    background: #fff; border-radius: 12px; padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    color: #1E293B; font-size: 0.95rem; line-height: 1.45;
}

.bc-dialog h2, .bc-page h2 { margin: 0 0 8px; font-size: 1.4rem; font-weight: 700; }
.bc-lead { margin: 0 0 18px; color: #475569; }

.bc-close {
    position: absolute; top: 10px; right: 14px;
    border: 0; background: none; font-size: 1.8rem; line-height: 1; color: #94A3B8; cursor: pointer;
}
.bc-close:hover { color: #1E293B; }

.bc-error {
    margin: 0 0 14px; padding: 10px 12px; border-radius: 8px;
    background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B;
}

.bc-success {
    margin: 0 0 16px; padding: 10px 12px; border-radius: 8px;
    background: #F0FDFA; border: 1px solid #5EEAD4; color: #115E59;
}

.bc-option {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px; margin: 0 0 10px; border: 1px solid #CBD5E1; border-radius: 10px;
    cursor: pointer; font-weight: normal; background: #fff;
}
.bc-option:hover { border-color: #0D9488; }
/* The site's Forms.css stretches inputs; pin the radio/checkbox to its own size. */
.bc-option input, .bc-confirm input {
    flex: 0 0 auto; width: auto !important; height: auto; margin: 4px 0 0; accent-color: #0D9488;
}
.bc-option-body { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; text-align: left; }
.bc-option-body span { color: #64748B; font-size: 0.875rem; }
.bc-option:has(input:checked) { border-color: #0D9488; background: #F0FDFA; }

.bc-tag {
    display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
    background: #0D9488; color: #fff !important; font-size: 0.72rem; font-weight: 600; vertical-align: middle;
}
.bc-fee { margin-left: 6px; color: #B45309 !important; font-weight: 600; font-size: 0.85rem; }

.bc-confirm {
    display: flex; gap: 8px; align-items: flex-start;
    margin: 4px 0 12px; padding: 10px 12px; border-radius: 8px;
    background: #FFFBEB; border: 1px solid #FCD34D; font-weight: normal; font-size: 0.875rem;
}
.bc-confirm-needed { border-color: #DC2626; background: #FEF2F2; }

.bc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 4px; }

.bc-btn {
    display: inline-block; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
    font-weight: 600; font-size: 0.95rem; cursor: pointer; text-decoration: none;
}
.bc-btn-primary, a.bc-btn-primary, a.bc-btn-primary:visited { background: #0D9488; color: #fff !important; }
.bc-btn-primary:hover { background: #0F766E; color: #fff; text-decoration: none; }
.bc-btn-secondary { background: #fff; color: #0F766E; border-color: #0D9488; }
.bc-btn-secondary:hover { background: #F0FDFA; }
.bc-btn-link { background: none; color: #64748B; padding-left: 4px; padding-right: 4px; }
.bc-btn-link:hover { color: #1E293B; text-decoration: underline; }

.bc-features { margin-top: 22px; padding-top: 18px; border-top: 1px solid #E2E8F0; }
.bc-features-title { margin: 0 0 12px; font-size: 1.05rem; font-weight: 700; }

.bc-feature { padding: 14px; margin: 0 0 10px; border-radius: 10px; background: #F8FAFC; border: 1px solid #E2E8F0; }
.bc-feature p { margin: 8px 0 10px; color: #475569; font-size: 0.875rem; }
.bc-feature-head { display: flex; gap: 10px; align-items: flex-start; }
.bc-feature-head > i { font-size: 1.3rem; color: #0D9488; }
.bc-feature-head strong { display: block; }
.bc-price { color: #0F766E; font-weight: 600; font-size: 0.875rem; }
.bc-on { color: #0F766E; font-weight: 600; font-size: 0.875rem; }

.bc-page { max-width: 680px; margin: 24px auto; padding: 0 16px; color: #1E293B; }

@media (max-width: 480px) {
    .bc-overlay { padding: 0; }
    .bc-dialog { border-radius: 0; min-height: 100%; padding: 22px 16px; }
    .bc-actions .bc-btn-primary { width: 100%; }
}

.bc-later { margin: -4px 0 0; }
.bc-current { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #E2E8F0; color: #334155 !important; font-size: 0.72rem; font-weight: 600; vertical-align: middle; }
.bc-current-box { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; background: #F8FAFC; border: 1px solid #E2E8F0; }
.bc-current-box span { color: #64748B; }
.bc-since { margin-left: 8px; font-size: 0.85rem; }
.bc-small { margin-top: 14px; color: #64748B; font-size: 0.8rem; }
.bc-preview-note { color: #B45309; font-size: 0.85rem; }
.bc-btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.bc-note { display: block; margin-top: 6px; padding: 6px 8px; border-radius: 6px; background: #F1F5F9; color: #334155 !important; font-size: 0.8rem !important; }
.bc-note-warn { background: #FFFBEB; color: #78350F !important; }

/* Upgrade page (/Upgrade) and the locked Deposit Assessment menu item. */
.up-hero { display: flex; gap: 14px; align-items: center; margin: 0 0 12px; }
.up-hero > i { font-size: 2rem; color: #0D9488; }
.up-hero h2 { margin: 0; }
.up-price { font-size: 1rem; }
.up-price span { color: #64748B; font-weight: normal; font-size: 0.85rem; }
.up-points { list-style: none; padding: 0; margin: 0 0 18px; }
.up-points li { display: flex; gap: 8px; margin: 0 0 8px; color: #334155; }
.up-points li i { color: #0D9488; margin-top: 2px; }
.up-agree { display: flex !important; }
.nav-locked { opacity: 0.75; }
.nav-lock { font-size: 0.7rem; margin-left: 4px; opacity: 0.8; }

/* Custom Branding live preview (/Upgrade?feature=branding). */
.bc-page-wide { max-width: 1180px; }
.bp-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 20px; margin: 8px 0 22px; align-items: start; }
.bp-controls { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 16px; }
.bp-logo { display: flex; flex-direction: column; gap: 6px; padding: 10px; margin: 0 0 14px; border-radius: 8px; background: #F8FAFC; border: 1px dashed #CBD5E1; font-size: 0.8rem; color: #64748B; }
.bp-logo img { max-height: 48px; max-width: 200px; object-fit: contain; align-self: flex-start; }
.bp-colour { margin: 0 0 12px; }
.bp-colour label { display: block; font-weight: 600; font-size: 0.875rem; margin: 0; color: #1E293B; }
.bp-hint { display: block; font-size: 0.75rem; color: #64748B; margin-bottom: 4px; }
.bp-row { display: flex; gap: 8px; align-items: center; }
.bp-row input[type=color] { width: 44px !important; height: 36px; padding: 2px; border: 1px solid #CBD5E1; border-radius: 6px; background: #fff; cursor: pointer; }
.bp-row .bp-hex { width: 100px !important; height: 36px; padding: 0 8px; border: 1px solid #CBD5E1; border-radius: 6px; font-family: monospace; }
.bp-preview { border-radius: 12px; overflow: hidden; border: 1px solid #CBD5E1; background: #E2E8F0; }
.bp-preview iframe { display: block; width: 100%; height: 640px; border: 0; }
@media (max-width: 900px) {
    .bp-wrap { grid-template-columns: 1fr; }
    .bp-preview iframe { height: 520px; }
}
.bp-upload { position: relative; overflow: hidden; font-size: 0.8rem; padding: 6px 12px; align-self: flex-start; }
.bp-upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100% !important; }
.up-off { margin-top: 26px; padding: 12px 14px; border: 1px solid #E2E8F0; border-radius: 10px; background: #fff; }
.up-off summary { cursor: pointer; color: #64748B; font-weight: 600; font-size: 0.875rem; }
.up-off form { margin-top: 10px; }
.up-btn-danger { background: #fff; color: #B91C1C; border-color: #FCA5A5; }
.up-btn-danger:not([disabled]):hover { background: #FEF2F2; }

/* Deposit Assessment demo (/Upgrade?feature=deposit). */
.dd-wrap { grid-template-columns: 340px 1fr; }
.dd-steps { counter-reset: dd; list-style: none; padding: 0; margin: 0 0 12px; }
.dd-steps li { counter-increment: dd; position: relative; padding: 0 0 14px 40px; }
.dd-steps li::before { content: counter(dd); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: #0D9488; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.dd-steps strong { display: block; color: #1E293B; font-size: 0.9rem; }
.dd-steps span { display: block; color: #64748B; font-size: 0.8rem; line-height: 1.45; }
.dd-links { display: flex; flex-wrap: wrap; gap: 8px; }
.dd-links .bc-btn { font-size: 0.8rem; padding: 6px 12px; }
.bc-page-wide .up-points, .bc-page-wide .bc-lead { max-width: 820px; }
@media (max-width: 900px) { .dd-wrap { grid-template-columns: 1fr; } }

/* Deposit Assessment demo: "Try the review". */
.dd-steps li.dd-current::before { box-shadow: 0 0 0 4px #CCFBF1; }
.dd-steps li.dd-done::before { content: "\2713"; background: #64748B; }
.dd-steps li:not(.dd-current):not(.dd-done)::before { background: #CBD5E1; }
.dd-preview { background: #fff; }
.dd-review { height: 640px; overflow-y: auto; padding: 14px 16px; box-sizing: border-box; }
.dd-review-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin: 0 0 12px; }
.dd-review-head strong { display: block; color: #1E293B; }
.dd-review-head span { font-size: 0.8rem; color: #64748B; }
.dd-badge { background: #FEF3C7; color: #92400E !important; border-radius: 999px; padding: 2px 10px; font-weight: 600; white-space: nowrap; }
.dd-item { border: 1px solid #E2E8F0; border-radius: 10px; padding: 12px; margin: 0 0 10px; }
.dd-item.dd-decided { border-color: #99F6E4; background: #F0FDFA; }
.dd-item.dd-removed { border-color: #FECACA; background: #FEF2F2; }
.dd-item.dd-removed .dd-amount { text-decoration: line-through; color: #B91C1C; }
.dd-item-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; }
.dd-item-head strong { color: #1E293B; font-size: 0.9rem; }
.dd-outcome { font-size: 0.72rem; font-weight: 600; color: #0F766E; background: #CCFBF1; border-radius: 999px; padding: 1px 8px; }
.dd-amount { margin-left: auto; font-weight: 700; color: #1E293B; }
.dd-quote { font-size: 0.8rem; color: #475569; margin: 2px 0; }
.dd-cost { font-size: 0.75rem; color: #64748B; margin: 6px 0 8px; font-family: monospace; }
.dd-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dd-btn { font-size: 0.78rem; padding: 5px 10px; background: #fff; border-color: #CBD5E1; color: #334155; }
.dd-btn:hover { border-color: #0D9488; color: #0F766E; }
.dd-state { font-size: 0.8rem; color: #0F766E; font-weight: 600; }
.dd-removed .dd-state { color: #B91C1C; }
.dd-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.dd-form input[type=number] { width: 80px !important; height: 32px; padding: 0 6px; border: 1px solid #CBD5E1; border-radius: 6px; }
.dd-form .dd-reason { flex: 1 1 200px; height: 32px; padding: 0 8px; border: 1px solid #CBD5E1; border-radius: 6px; }
.dd-form .dd-need { border-color: #DC2626; }
.dd-form .bc-btn { font-size: 0.78rem; padding: 5px 12px; }
.dd-amount-input { font-size: 0.8rem; color: #334155; font-weight: normal; margin: 0; }
.dd-total { position: sticky; bottom: -14px; background: #fff; border-top: 1px solid #E2E8F0; padding: 10px 0 4px; margin-top: 6px; }
.dd-total > div { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; margin: 2px 0; }
.dd-approve-row { margin-top: 8px !important; gap: 10px; }
.dd-report-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 12px; background: #F0FDFA; border-bottom: 1px solid #99F6E4; color: #115E59; font-size: 0.85rem; font-weight: 600; }
.dd-report-bar .bc-btn { font-size: 0.78rem; padding: 4px 10px; }
.dd-report iframe { display: block; width: 100%; height: 600px; border: 0; }
.dd-form[hidden], .dd-review[hidden], .dd-report[hidden] { display: none !important; }

/* Billing contact (payment pop-up + Change payment method page) */
.bc-contact { margin: 14px 0 0; padding: 12px 14px; border: 1px solid #E2E8F0; border-radius: 8px; }
.bc-contact legend { padding: 0 6px; font-weight: 600; color: #1E293B; }
.bc-contact .bc-small { margin: 0 0 10px; }
.bc-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.bc-contact-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: #334155; }
.bc-contact-grid input { width: 100%; box-sizing: border-box; padding: 7px 9px; border: 1px solid #CBD5E1; border-radius: 6px; font-size: 0.9rem; }
@media (max-width: 600px) { .bc-contact-grid { grid-template-columns: 1fr; } }

/* Pop-up pages with Next (_ServiceLevelChoice, _SubscriptionMove): Site.css's `section { display: block }` beats [hidden]. */
.sl-step[hidden] { display: none !important; }

/* Moving to a subscription (_SubscriptionMove). */
.sm-points { list-style: none; padding: 0; margin: 12px 0; }
.sm-points li { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; }
.sm-points li i { color: #0D9488; margin-top: 2px; }
.sm-price { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; margin: 8px 0 12px; border: 1px solid #99F6E4; border-radius: 10px; background: #F0FDFA; }
.sm-amount { font-size: 1.5rem; font-weight: 700; color: #0F766E; }
.sm-amount small { font-size: 0.875rem; font-weight: normal; color: #475569; }
.sm-gift { display: flex; gap: 12px; padding: 14px 16px; margin: 12px 0; border-radius: 10px; background: #FFF7ED; border: 1px solid #FDBA74; }
.sm-gift > i { font-size: 1.5rem; color: #EA580C; }
.sm-gift p { margin: 6px 0 0; }
/* How the subscription is priced (Client/_SubscriptionTerms, Billing/MoveToSubscription). */
.bs-terms { margin: 16px 0; padding: 14px 16px; border: 1px solid #99F6E4; border-radius: 10px; background: #F0FDFA; }
.bs-terms h2 { margin-top: 0; }
.bs-terms h3 { font-size: 1rem; margin: 12px 0 4px; }
.bs-terms-table { border-collapse: collapse; margin: 8px 0; }
.bs-terms-table td { padding: 4px 16px 4px 0; vertical-align: top; }
.bs-terms-table td + td { text-align: right; white-space: nowrap; }
.bs-terms .bs-hint, .bc-page .bs-hint { color: #718096; font-size: 0.8125rem; }