/**
 * Seller Portal Styles — Contract Box Realty
 * Consumer-facing portal. Centered, clean, mobile-first.
 */

/* ── Shell ────────────────────────────────────────────────────────────────── */
.portal-wrapper {
    min-height: 100vh;
    background: var(--bg-page);
    display: flex;
    flex-direction: column;
}

/* Top nav bar */
.portal-header {
    background: var(--primary-dark);
    color: #fff;
    height: 58px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
    flex-shrink: 0;
}

.portal-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: .95rem;
    color: #fff;
    text-decoration: none;
    flex: 1;
}

.portal-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.portal-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 5px 12px 5px 5px;
    cursor: pointer;
    transition: background var(--t-fast);
}
.portal-user-chip:hover { background: rgba(255,255,255,0.18); }

.portal-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
    flex-shrink: 0;
}

.portal-user-name {
    font-size: .85rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.portal-logout-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    color: rgba(255,255,255,0.8);
    padding: 5px 12px;
    font-size: .82rem;
    cursor: pointer;
    transition: background var(--t-fast);
}
.portal-logout-btn:hover { background: rgba(255,255,255,0.1); }

/* ── Body: sidebar + main ─────────────────────────────────────────────────── */
.portal-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
}

/* ── Sidebar Nav ──────────────────────────────────────────────────────────── */
.portal-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 12px 0 40px;
}

.pnav-section-label {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-muted);
    padding: 12px 16px 4px;
}

.pnav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast);
    border-radius: 0;
    user-select: none;
    position: relative;
}
.pnav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.pnav-item.active {
    background: var(--primary-dark, #0f2440);
    color: #fff;
    font-weight: 700;
}
.pnav-item.phase-current::after {
    content: '●';
    font-size: .55rem;
    color: var(--accent);
    margin-left: auto;
}
.pnav-item.locked {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}
.pnav-icon { font-size: 1rem; flex-shrink: 0; }
.pnav-label { flex: 1; }
.pnav-coming-badge {
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: var(--bg-hover);
    color: var(--text-muted);
    border-radius: 10px;
    padding: 2px 6px;
}
.pnav-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* ── Main Content ─────────────────────────────────────────────────────────── */
.portal-main {
    flex: 1;
    overflow-y: auto;
    padding: 28px 32px 60px;
}

/* Full-width mode (wizard / status tracker — no sidebar) */
.portal-main.full-width {
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

/* ── Coming Soon / Dimmed Treatment ──────────────────────────────────────── */
.portal-coming {
    position: relative;
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
}
.portal-coming-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.portal-coming-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* ── Phase Screen Layout ──────────────────────────────────────────────────── */
.phase-screen { max-width: 780px; }
.phase-screen-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.phase-screen-eyebrow {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent);
    margin-bottom: 4px;
}
.phase-screen-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.phase-screen-desc {
    font-size: .9rem;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.5;
}
.phase-current-banner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 8px;
}
.phase-section {
    margin-bottom: 20px;
}
.phase-section-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.phase-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.phase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    position: relative;
}
.phase-card-icon { font-size: 1.4rem; margin-bottom: 8px; }
.phase-card-title {
    font-size: .875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.phase-card-desc {
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Property hero card */
.property-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.property-address {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 4px;
}

.property-city {
    font-size: .9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.property-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: .875rem;
}

.property-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.property-meta-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
}

.property-meta-value {
    font-weight: 700;
    color: var(--text-primary);
}

/* ── Phase Stepper ────────────────────────────────────────────────────────── */
.phase-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    margin: 24px 0 20px;
    padding: 0 8px;
}

.phase-stepper::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 28px;
    right: 28px;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.phase-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 1;
    flex: 1;
}

.phase-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2.5px solid var(--border);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    position: relative;
    transition: all var(--t-normal);
}

.phase-step-item.done .phase-step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.phase-step-item.active .phase-step-circle {
    background: var(--accent);
    border-color: var(--accent);
    color: #1a1a1a;
    font-weight: 800;
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.2);
}

.phase-step-label {
    font-size: .7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
    max-width: 60px;
}

.phase-step-item.active .phase-step-label {
    color: var(--text-primary);
    font-weight: 700;
}

.phase-step-item.done .phase-step-label {
    color: var(--primary);
}

/* Active phase label under the stepper */
.current-phase-banner {
    text-align: center;
    padding: 10px 20px;
    background: var(--info-bg);
    color: var(--info-text);
    border-radius: var(--radius-lg);
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ── Section Panels ───────────────────────────────────────────────────────── */
.portal-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
}

.portal-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    user-select: none;
}

.portal-section-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-section-count {
    font-size: .75rem;
    background: var(--bg-hover);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.portal-section-toggle {
    color: var(--text-muted);
    font-size: .8rem;
    transition: transform var(--t-fast);
}
.portal-section.expanded .portal-section-toggle {
    transform: rotate(180deg);
}

.portal-section-body {
    display: none;
    padding: 16px 18px;
}
.portal-section.expanded .portal-section-body {
    display: block;
}

/* ── Task Checklist ───────────────────────────────────────────────────────── */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.task-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.task-item.completed .task-check {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.task-title {
    font-size: .875rem;
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
}

.task-item.completed .task-title {
    color: var(--text-muted);
    text-decoration: line-through;
}

.task-due {
    font-size: .75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ── Activity Feed ────────────────────────────────────────────────────────── */
.activity-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.activity-body { flex: 1; min-width: 0; }

.activity-text {
    font-size: .875rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.activity-meta {
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: 3px;
}

/* ── Offers (read-only) ───────────────────────────────────────────────────── */
.offer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    gap: 16px;
}
.offer-row:last-child { border-bottom: none; }

.offer-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.offer-meta {
    font-size: .8rem;
    color: var(--text-muted);
}

/* ── Empty States ─────────────────────────────────────────────────────────── */
.portal-empty {
    text-align: center;
    padding: 24px 12px;
    color: var(--text-muted);
    font-size: .875rem;
}

.portal-empty .portal-empty-icon { font-size: 2rem; margin-bottom: 8px; }

/* ── Loading ──────────────────────────────────────────────────────────────── */
.portal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 16px;
    color: var(--text-muted);
}

/* ── No Listing State ─────────────────────────────────────────────────────── */
.portal-no-listing {
    text-align: center;
    padding: 60px 20px;
    max-width: 480px;
    margin: 0 auto;
}

.portal-no-listing h2 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.portal-no-listing p {
    font-size: .9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.portal-contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: left;
}

.portal-contact-card h3 {
    font-size: .875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.portal-contact-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: .9rem;
    color: var(--text-primary);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.portal-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 16px 20px;
    text-align: center;
    font-size: .78rem;
    color: var(--text-muted);
}

/* ── Draft Listing Banner ─────────────────────────────────────────────────── */
.portal-draft-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #1a3a5c 0%, #0f2440 100%);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: var(--radius-xl);
    padding: 20px 22px;
    margin-bottom: 20px;
    color: #fff;
}

.portal-draft-banner-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.portal-draft-banner-address {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.portal-draft-banner-status {
    font-size: .82rem;
    color: rgba(201,168,76,0.85);
    font-weight: 500;
}

/* ── Tier Selection Grid ──────────────────────────────────────────────────── */
.portal-tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 4px;
}

.portal-tier-card {
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    text-align: center;
    position: relative;
    transition: all var(--t-normal);
    cursor: default;
    background: var(--bg-card);
}

.portal-tier-card.featured {
    border-color: var(--accent);
    background: rgba(201,168,76,0.04);
}

.portal-tier-card.selected {
    border-color: var(--primary);
    background: rgba(26,58,92,0.06);
    box-shadow: 0 0 0 3px rgba(26,58,92,0.15);
}

.portal-tier-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #1a1a1a;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 3px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

.portal-tier-name {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: 6px;
    margin-top: 6px;
}

.portal-tier-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.portal-tier-price-sub {
    font-size: .72rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.portal-tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    text-align: left;
}

.portal-tier-features li {
    font-size: .8rem;
    color: var(--text-secondary);
    padding: 4px 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.portal-tier-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

.portal-tier-select-btn {
    width: 100%;
    padding: 9px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--t-fast);
    font-family: var(--font-sans);
}

.portal-tier-select-btn:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
}

.portal-tier-select-btn.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.portal-tier-card.featured .portal-tier-select-btn {
    border-color: var(--accent);
}

.portal-tier-card.featured .portal-tier-select-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #1a1a1a;
}

/* ── What Happens Next ────────────────────────────────────────────────────── */
.portal-next-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.portal-next-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.portal-next-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.portal-next-title {
    font-size: .875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.portal-next-desc {
    font-size: .825rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ── Listing Switcher ─────────────────────────────────────────────────────── */
.portal-listing-switcher {
    margin-bottom: 20px;
}

.portal-listing-switcher-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.portal-listing-switcher-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.portal-listing-tab {
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--t-fast);
    font-family: var(--font-sans);
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-listing-tab:hover { border-color: var(--primary); color: var(--text-primary); }
.portal-listing-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
    .portal-tier-grid { grid-template-columns: 1fr; }
    .portal-tier-card.featured { margin-top: 6px; }
}

@media (max-width: 768px) {
    .portal-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        display: flex !important;
        flex-direction: row;
        align-items: stretch;
    }
    .pnav-section-label { display: none; }
    .pnav-divider { display: none; }
    .pnav-item {
        flex-direction: column;
        gap: 3px;
        padding: 8px 14px;
        font-size: .72rem;
        flex-shrink: 0;
        border-bottom: 2px solid transparent;
    }
    .pnav-item.active { background: transparent; color: var(--primary); border-bottom-color: var(--primary); }
    .pnav-icon { font-size: .9rem; }
    .pnav-coming-badge { display: none; }
    .pnav-item.phase-current::after { display: none; }
    .portal-body { flex-direction: column; }
    .portal-main { padding: 16px 14px 40px; }
    .phase-cards { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .portal-main.full-width { padding: 16px 14px 40px; }
    .phase-stepper { padding: 0; }
    .phase-step-label { font-size: .62rem; max-width: 50px; }
    .phase-step-circle { width: 30px; height: 30px; font-size: 12px; }
    .phase-stepper::before { top: 15px; }
    .property-address { font-size: 1.1rem; }
    .property-meta { gap: 12px; }
    .portal-draft-banner { flex-direction: column; text-align: center; gap: 10px; }
}

/* ── Intake Wizard ────────────────────────────────────────────────────────── */

.wz-wrap { max-width: 720px; margin: 0 auto; }

/* Step indicator */
.wz-indicator {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    margin-bottom: 24px;
    padding: 0 4px;
}
.wz-indicator::before {
    content: '';
    position: absolute;
    top: 16px; left: 20px; right: 20px;
    height: 2px;
    background: var(--border);
    z-index: 0;
}
.wz-ind-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 1;
    flex: 1;
}
.wz-ind-circle {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    color: var(--text-muted);
    transition: all .2s;
}
.wz-ind-step.done .wz-ind-circle  { background: var(--success, #10b981); border-color: var(--success, #10b981); color: #fff; }
.wz-ind-step.active .wz-ind-circle { background: var(--accent); border-color: var(--accent); color: #1a1a1a; box-shadow: 0 0 0 4px rgba(99,102,241,.2); }
.wz-ind-lbl {
    font-size: .6rem; font-weight: 600; color: var(--text-muted);
    text-align: center; line-height: 1.2; max-width: 70px;
}
.wz-ind-step.active .wz-ind-lbl { color: var(--text-primary); }
.wz-ind-step.done  .wz-ind-lbl  { color: var(--success, #10b981); }

/* Card */
.wz-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 12px;
}
.wz-step-header {
    background: var(--bg-stripe);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
}
.wz-step-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 4px; }
.wz-step-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.wz-step-body  { padding: 24px; }
.wz-step-desc  { font-size: .875rem; color: var(--text-muted); margin: 0 0 20px; line-height: 1.5; }

/* Form fields */
.wz-form { display: flex; flex-direction: column; gap: 16px; }
.wz-field { display: flex; flex-direction: column; gap: 5px; }
.wz-field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.wz-field-row .wz-field { flex: 1; min-width: 100px; }
.wz-field-grow { flex: 2 !important; }
.wz-field-sm   { flex: 1 !important; min-width: 80px !important; }
.wz-field-xs   { flex: 0 0 70px !important; min-width: 0 !important; }
.wz-label      { font-size: .8rem; font-weight: 600; color: var(--text-secondary); }
.wz-req        { color: var(--error, #ef4444); }
.wz-hint       { font-size: .74rem; color: var(--text-muted); line-height: 1.4; }
.wz-hint-inline { font-size: .74rem; font-weight: 400; color: var(--text-muted); }
.wz-input {
    background: var(--bg-stripe);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-size: .875rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    transition: border-color .15s;
    width: 100%;
    box-sizing: border-box;
}
.wz-input:focus { outline: none; border-color: var(--accent); }
.wz-input.error { border-color: var(--error, #ef4444); }
.wz-textarea    { resize: vertical; min-height: 80px; }
.wz-textarea-lg { min-height: 120px; }

/* Dollar prefix */
.wz-input-prefix-wrap { position: relative; }
.wz-input-prefix { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: .875rem; pointer-events: none; }
.wz-input-prefixed { padding-left: 22px; }

/* Toggle (yes/no) */
.wz-toggle-row { display: flex; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); width: fit-content; }
.wz-toggle-btn { padding: 7px 20px; font-size: .82rem; font-weight: 600; background: var(--bg-stripe); border: none; color: var(--text-muted); cursor: pointer; transition: all .15s; font-family: var(--font-sans); }
.wz-toggle-btn + .wz-toggle-btn { border-left: 1px solid var(--border); }
.wz-toggle-btn.active { background: var(--accent); color: #1a1a1a; }

/* Chip grid (multi-select checkboxes) */
.wz-chip-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.wz-chip {
    padding: 5px 12px;
    font-size: .78rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-stripe);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}
.wz-chip:hover  { border-color: var(--accent); color: var(--accent); }
.wz-chip.active { background: var(--accent); border-color: var(--accent); color: #1a1a1a; }

/* Radio buttons (condition) */
.wz-radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.wz-radio-btn {
    padding: 7px 16px;
    font-size: .82rem; font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-stripe);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}
.wz-radio-btn:hover  { border-color: var(--accent); color: var(--accent); }
.wz-radio-btn.active { background: var(--accent); border-color: var(--accent); color: #1a1a1a; }

/* Plan cards */
.wz-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 4px; }
.wz-plan-card {
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all .15s;
    position: relative;
    background: var(--bg-stripe);
}
.wz-plan-card:hover       { border-color: var(--accent); }
.wz-plan-card.featured    { border-color: var(--primary); background: var(--bg-card); }
.wz-plan-card.selected    { border-color: var(--accent); background: rgba(99,102,241,.07); }
.wz-plan-badge { font-size: .65rem; font-weight: 700; text-transform: uppercase; color: var(--primary); background: var(--info-bg); border-radius: 20px; padding: 2px 8px; display: inline-block; margin-bottom: 8px; }
.wz-plan-name  { font-size: .95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.wz-plan-price { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.wz-plan-price-sub { font-size: .7rem; color: var(--text-muted); margin-bottom: 10px; }
.wz-plan-features { margin: 0 0 12px; padding-left: 16px; font-size: .78rem; color: var(--text-secondary); line-height: 1.7; }
.wz-plan-select-btn {
    width: 100%; padding: 8px; font-size: .78rem; font-weight: 700;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: transparent; color: var(--text-secondary);
    cursor: pointer; font-family: var(--font-sans); transition: all .15s;
}
.wz-plan-select-btn:hover    { border-color: var(--accent); color: var(--accent); }
.wz-plan-select-btn.selected { background: var(--accent); border-color: var(--accent); color: #1a1a1a; }

/* Disclosure boxes */
.wz-disclosure-box { background: var(--bg-stripe); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; font-size: .875rem; color: var(--text-secondary); line-height: 1.6; }
.wz-disclosure-box p { margin: 8px 0 0; }
.wz-disclosure-title { font-weight: 700; color: var(--text-primary); font-size: .9rem; }
.wz-disclosure-warn  { border-color: var(--warning, #d97706); background: var(--warning-bg); }
.wz-disclosure-warn .wz-disclosure-title { color: var(--warning-text, #92400e); }
.wz-field-ack { margin-top: 4px; }
.wz-ack-label { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; color: var(--text-secondary); line-height: 1.5; cursor: pointer; }
.wz-ack-label input[type=checkbox] { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* Review summary */
.wz-review-summary { background: var(--info-bg); border: 1px solid var(--info, #3b82f6); border-radius: var(--radius-lg); padding: 16px; font-size: .875rem; color: var(--text-secondary); line-height: 1.6; }
.wz-review-title { font-weight: 700; color: var(--info-text, #1d4ed8); margin-bottom: 6px; }
.wz-review-summary p { margin: 0; }

/* Navigation */
.wz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0 8px;
}
.wz-back-btn {
    background: none; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 10px 20px; font-size: .875rem; font-weight: 600;
    color: var(--text-secondary); cursor: pointer; font-family: var(--font-sans);
    transition: all .15s;
}
.wz-back-btn:hover { border-color: var(--accent); color: var(--accent); }
.wz-next-btn {
    background: var(--accent); border: none; border-radius: var(--radius);
    padding: 11px 28px; font-size: .9rem; font-weight: 700;
    color: #1a1a1a; cursor: pointer; font-family: var(--font-sans);
    transition: opacity .15s;
    min-width: 180px;
}
.wz-next-btn:hover    { opacity: .88; }
.wz-next-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Error banner */
.wz-error-banner {
    background: var(--error-bg, #fee2e2); border: 1px solid var(--error, #ef4444);
    border-radius: var(--radius); padding: 10px 14px;
    font-size: .85rem; font-weight: 600; color: var(--error-text, #b91c1c);
    margin-bottom: 8px;
}

/* Submitted screen */
.wz-submitted-screen {
    text-align: center;
    max-width: 520px;
    margin: 40px auto;
    padding: 0 20px;
}
.wz-submitted-icon  { font-size: 3.5rem; margin-bottom: 16px; }
.wz-submitted-title { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.wz-submitted-desc  { font-size: .9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 24px; }
.wz-submitted-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; text-align: left; }
.wz-submitted-step  { display: flex; align-items: center; gap: 12px; font-size: .875rem; color: var(--text-secondary); }
.wz-submitted-step span { width: 28px; height: 28px; flex-shrink: 0; background: var(--success-bg); color: var(--success-text); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; }
.wz-submitted-contact { font-size: .82rem; color: var(--text-muted); }

/* ── Wizard responsive ──────────────────────────────────────────────────────── */
@media (max-width: 680px) {
    .wz-plan-grid { grid-template-columns: 1fr; }
    .wz-ind-lbl   { display: none; }
    .wz-field-row { flex-direction: column; }
    .wz-field-xs, .wz-field-sm { flex: 1 !important; }
    .wz-step-body { padding: 16px; }
}

/* ── Dark mode ─────────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    .portal-header { background: #0a1520; }
    .wz-chip.active, .wz-radio-btn.active, .wz-toggle-btn.active,
    .wz-plan-select-btn.selected, .wz-next-btn { color: #fff; }
    .wz-ind-step.active .wz-ind-circle { color: #fff; }
}
