/*──────────────────────────────────────────────
  Technovia Paper Submissions — Front-end Styles
  Modern, white-space-heavy, Flexbox/Grid
──────────────────────────────────────────────*/

/* ── CSS Custom Properties ── */
:root {
    --bps-primary:    #4f46e5;
    --bps-secondary:  #10b981;
    --bps-danger:     #ef4444;
    --bps-dark:       #1e1e2f;
    --bps-text:       #334155;
    --bps-muted:      #94a3b8;
    --bps-bg:         #f8fafc;
    --bps-white:      #ffffff;
    --bps-border:     #e2e8f0;
    --bps-shadow:     0 4px 24px rgba(0,0,0,.06);
    --bps-radius:     12px;
    --bps-radius-sm:  8px;
    --bps-font:       'Segoe UI', system-ui, -apple-system, sans-serif;
    --bps-transition: .25s ease;
}

/* ── Reset scoping ── */
.bps-auth-wrap,
.bps-form-wrap,
.bps-dashboard,
.bps-guest-notice {
    box-sizing: border-box;
    font-family: var(--bps-font);
    color: var(--bps-text);
    line-height: 1.6;
}
.bps-auth-wrap *, .bps-form-wrap *, .bps-dashboard *, .bps-guest-notice * {
    box-sizing: border-box;
}

/* ══════════════════════════════
   AUTH
══════════════════════════════ */
.bps-auth-wrap {
    max-width: 460px;
    margin: 32px auto;
    background: var(--bps-white);
    border-radius: var(--bps-radius);
    box-shadow: var(--bps-shadow);
    overflow: hidden;
}
.bps-auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--bps-border);
}
.bps-auth-tab {
    flex: 1;
    padding: 16px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--bps-muted);
    cursor: pointer;
    transition: var(--bps-transition);
    text-align: center;
}
.bps-auth-tab:hover { color: var(--bps-primary); }
.bps-auth-tab--active {
    color: var(--bps-primary);
    border-bottom: 3px solid var(--bps-primary);
    margin-bottom: -2px;
}
.bps-auth-form {
    display: none;
    padding: 32px;
}
.bps-auth-form--active { display: block; }
.bps-auth-form h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--bps-dark);
}
.bps-auth-subtitle {
    color: var(--bps-muted);
    margin: 0 0 24px;
    font-size: 14px;
}
.bps-auth-logged-in {
    max-width: 440px;
    margin: 40px auto;
    text-align: center;
    background: var(--bps-white);
    padding: 32px;
    border-radius: var(--bps-radius);
    box-shadow: var(--bps-shadow);
}
.bps-auth-msg {
    font-size: 14px;
    margin-bottom: 14px;
    min-height: 20px;
}
.bps-auth-msg.bps-msg--error { color: var(--bps-danger); }
.bps-auth-msg.bps-msg--success { color: var(--bps-secondary); }

/* ══════════════════════════════
   SHARED FIELDS
══════════════════════════════ */
.bps-field {
    margin-bottom: 20px;
}
.bps-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    margin-bottom: 7px;
    text-transform: capitalize;
    letter-spacing: 0.01em;
}
.bps-required {
    color: var(--bps-danger);
    text-decoration: none;
    font-style: normal;
    margin-left: 2px;
}
.bps-field-meta {
    font-weight: 400;
    font-size: 12px;
    color: var(--bps-muted);
    margin-left: 6px;
}
.bps-auth-wrap .bps-field input[type="text"],
.bps-auth-wrap .bps-field input[type="email"],
.bps-auth-wrap .bps-field input[type="password"],
.bps-form-wrap .bps-field input[type="text"],
.bps-form-wrap .bps-field input[type="email"],
.bps-form-wrap .bps-field input[type="password"],
.bps-form-wrap .bps-field input[type="url"],
.bps-form-wrap .bps-field textarea,
.bps-form-wrap .bps-field select,
.bps-field input[type="text"],
.bps-field input[type="email"],
.bps-field input[type="password"],
.bps-field input[type="url"],
.bps-field input[type="number"],
.bps-field input[type="tel"],
.bps-field textarea,
.bps-field select {
    display: block !important;
    width: 100% !important;
    padding: 12px 14px !important;
    border: 1.5px solid var(--bps-border) !important;
    border-radius: var(--bps-radius-sm) !important;
    font-size: 15px !important;
    font-family: var(--bps-font) !important;
    color: var(--bps-text) !important;
    background: var(--bps-white) !important;
    transition: border var(--bps-transition), box-shadow var(--bps-transition) !important;
    outline: none !important;
    box-sizing: border-box !important;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.5 !important;
    margin: 0 !important;
    box-shadow: none !important;
}
.bps-auth-wrap .bps-field input:focus,
.bps-form-wrap .bps-field input:focus,
.bps-field input:focus,
.bps-field textarea:focus,
.bps-field select:focus {
    border-color: var(--bps-primary) !important;
    box-shadow: 0 0 0 3px rgba(79,70,229,.12) !important;
    outline: none !important;
}

/* input with icon */
.bps-input-icon {
    position: relative;
    display: block;
}
.bps-input-icon .dashicons {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    width: 17px;
    height: 17px;
    color: var(--bps-muted);
    pointer-events: none;
    z-index: 1;
    line-height: 1;
}
.bps-input-icon input[type="text"],
.bps-input-icon input[type="email"],
.bps-input-icon input[type="password"],
.bps-input-icon input[type="tel"],
.bps-input-icon input[type="number"],
.bps-input-icon input[type="url"] {
    padding-left: 42px !important;
    padding-right: 14px;
    padding-top: 12px;
    padding-bottom: 12px;
    width: 100%;
}

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.bps-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    background: var(--bps-primary);
    color: var(--bps-white);
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--bps-radius-sm);
    cursor: pointer;
    transition: var(--bps-transition);
    text-decoration: none;
}
.bps-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79,70,229,.25);
}
.bps-btn--outline {
    background: transparent;
    color: var(--bps-primary);
    border: 1.5px solid var(--bps-primary);
}
.bps-btn--outline:hover {
    background: var(--bps-primary);
    color: var(--bps-white);
}
.bps-btn--full { width: 100%; justify-content: center; }
.bps-btn--sm { padding: 8px 16px; font-size: 13px; }

.bps-btn:disabled,
.bps-btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
    transform: none !important;
}

/* ══════════════════════════════
   GUEST NOTICE
══════════════════════════════ */
.bps-guest-notice {
    max-width: 500px;
    margin: 60px auto;
    text-align: center;
    padding: 48px 32px;
    background: var(--bps-white);
    border-radius: var(--bps-radius);
    box-shadow: var(--bps-shadow);
}
.bps-guest-notice .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--bps-primary);
    margin-bottom: 16px;
}
.bps-guest-notice p {
    color: var(--bps-muted);
    margin-bottom: 24px;
}

/* ══════════════════════════════
   SUBMISSION FORM
══════════════════════════════ */
.bps-form-wrap {
    max-width: 640px;
    margin: 32px auto;
    background: var(--bps-white);
    border-radius: var(--bps-radius);
    box-shadow: 0 2px 24px rgba(0,0,0,.07);
    padding: 40px 44px;
}
@media (max-width: 680px) {
    .bps-form-wrap { padding: 24px 20px; margin: 16px; }
}
.bps-form-header {
    text-align: center;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--bps-border);
}
.bps-form-header__icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--bps-primary);
}
.bps-form-header__icon svg { display: block; }
.bps-form-header h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--bps-dark);
    text-transform: capitalize;
    letter-spacing: -0.4px;
}
.bps-form-header p {
    color: var(--bps-muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* Drop zone */
.bps-dropzone {
    border: 2px dashed var(--bps-border);
    border-radius: var(--bps-radius-sm);
    padding: 32px 16px;
    text-align: center;
    position: relative;
    transition: var(--bps-transition);
    cursor: pointer;
}
.bps-dropzone:hover,
.bps-dropzone.bps-dropzone--active {
    border-color: var(--bps-primary);
    background: rgba(79,70,229,.04);
}
.bps-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.bps-dropzone__icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--bps-primary);
}
.bps-dropzone__icon svg { display: block; }
.bps-dropzone p {
    color: var(--bps-muted);
    font-size: 14px;
    margin: 8px 0 0;
}

/* File list */
.bps-file-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    text-align: left;
}
.bps-file-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--bps-text);
    border-bottom: 1px solid var(--bps-border);
}
.bps-file-list li .dashicons {
    color: var(--bps-secondary);
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Form messages */
.bps-form-msg {
    font-size: 14px;
    margin-bottom: 14px;
    min-height: 20px;
}
.bps-form-msg.bps-msg--error { color: var(--bps-danger); }
.bps-form-msg.bps-msg--success { color: var(--bps-secondary); }

/* ══════════════════════════════
   DASHBOARD
══════════════════════════════ */
.bps-dashboard {
    max-width: 960px;
    margin: 40px auto;
}

.bps-dash-header h2 { text-transform: capitalize; }
.bps-dash-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.bps-dash-header__left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bps-dash-header__left .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: var(--bps-primary);
}
.bps-dash-header__left h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--bps-dark);
}
.bps-dash-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    background: var(--bps-primary);
    color: var(--bps-white);
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
}

/* Search */
.bps-search-form {
    display: flex;
    gap: 8px;
}
.bps-search-form .bps-input-icon input {
    padding: 10px 12px 10px 38px;
    font-size: 14px;
    border-radius: var(--bps-radius-sm);
}

/* Table */
.bps-table-wrap {
    background: var(--bps-white);
    border-radius: var(--bps-radius);
    box-shadow: var(--bps-shadow);
    overflow-x: auto;
}
.bps-table {
    width: 100%;
    border-collapse: collapse;
}
.bps-table th {
    background: var(--bps-bg);
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--bps-muted);
    text-align: left;
    border-bottom: 2px solid var(--bps-border);
}
.bps-table td {
    padding: 16px 18px;
    font-size: 14px;
    border-bottom: 1px solid var(--bps-border);
    vertical-align: middle;
}
.bps-table tbody tr:last-child td { border-bottom: none; }
.bps-table tbody tr:hover { background: rgba(79,70,229,.02); }

.bps-td-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bps-td-title .dashicons {
    color: var(--bps-primary);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Badges */
.bps-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.bps-badge--draft     { background: #f1f5f9; color: #64748b; }
.bps-badge--pending   { background: #fef3c7; color: #b45309; }
.bps-badge--approved  { background: #d1fae5; color: #047857; }
.bps-badge--published { background: #dbeafe; color: #1d4ed8; }
.bps-badge--rejected  { background: #fee2e2; color: #b91c1c; }
.bps-badge--revision  { background: #ffedd5; color: #c2410c; }

/* File links */
.bps-file-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--bps-primary);
    text-decoration: none;
    margin-right: 8px;
}
.bps-file-link:hover { text-decoration: underline; }
.bps-file-link .dashicons { font-size: 14px; width: 14px; height: 14px; }

/* Icon buttons */
.bps-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--bps-border);
    border-radius: var(--bps-radius-sm);
    background: var(--bps-white);
    cursor: pointer;
    transition: var(--bps-transition);
    color: var(--bps-text);
}
.bps-icon-btn:hover {
    background: var(--bps-primary);
    border-color: var(--bps-primary);
    color: var(--bps-white);
}
.bps-icon-btn--danger:hover {
    background: var(--bps-danger);
    border-color: var(--bps-danger);
}
.bps-td-actions { white-space: nowrap; display: flex; gap: 6px; }

/* Empty state */
.bps-empty-state {
    text-align: center;
    padding: 64px 32px;
    background: var(--bps-white);
    border-radius: var(--bps-radius);
    box-shadow: var(--bps-shadow);
}
.bps-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--bps-border);
    margin-bottom: 12px;
}
.bps-empty-state p {
    color: var(--bps-muted);
    font-size: 15px;
}

/* Pagination */
.bps-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}
.bps-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--bps-radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--bps-text);
    border: 1.5px solid var(--bps-border);
    background: var(--bps-white);
    transition: var(--bps-transition);
}
.bps-page-link:hover,
.bps-page-link--active {
    background: var(--bps-primary);
    color: var(--bps-white);
    border-color: var(--bps-primary);
}

.bps-muted { color: var(--bps-muted); }

/* ══════════════════════════════
   MODAL
══════════════════════════════ */
.bps-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.bps-modal {
    background: var(--bps-white);
    border-radius: var(--bps-radius);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
    animation: bpsSlideIn .3s ease;
}
@keyframes bpsSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.bps-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid var(--bps-border);
}
.bps-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 18px;
    color: var(--bps-dark);
}
.bps-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--bps-muted);
    line-height: 1;
}
.bps-modal-close:hover { color: var(--bps-danger); }
.bps-modal form { padding: 28px; }
.bps-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ══════════════════════════════
   TOAST
══════════════════════════════ */
.bps-toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    min-width: 280px;
    padding: 16px 24px;
    border-radius: var(--bps-radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--bps-white);
    background: var(--bps-secondary);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    z-index: 100001;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
}
.bps-toast--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.bps-toast--error {
    background: var(--bps-danger);
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 768px) {
    .bps-form-wrap   { margin: 20px 12px; padding: 24px 18px; }
    .bps-auth-wrap   { margin: 20px 12px; }
    .bps-auth-form   { padding: 24px 18px; }
    .bps-dashboard   { margin: 20px 12px; }

    .bps-dash-header { flex-direction: column; align-items: flex-start; }

    .bps-table thead { display: none; }
    .bps-table, .bps-table tbody, .bps-table tr, .bps-table td {
        display: block;
        width: 100%;
    }
    .bps-table tr {
        margin-bottom: 12px;
        background: var(--bps-white);
        border-radius: var(--bps-radius-sm);
        box-shadow: var(--bps-shadow);
        padding: 12px 16px;
    }
    .bps-table td {
        padding: 8px 0;
        border-bottom: 1px solid var(--bps-border);
        text-align: right;
    }
    .bps-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 700;
        font-size: 12px;
        text-transform: uppercase;
        color: var(--bps-muted);
    }
    .bps-table td:last-child { border-bottom: none; }
    .bps-td-title { justify-content: flex-end; }
    .bps-td-actions { justify-content: flex-end; }
}

/* ══════════════════════════════════════════════
   CUSTOM FORM (bps-cf-*) — Clean Professional
══════════════════════════════════════════════ */

.bps-custom-form-wrap {
    max-width: 640px;
    margin: 32px auto;
    background: var(--bps-white);
    border-radius: var(--bps-radius);
    box-shadow: var(--bps-shadow);
    overflow: hidden;
    font-family: var(--bps-font);
}

/* ── Header ── */
.bps-cf-header {
    background: linear-gradient(135deg, var(--bps-primary) 0%, #6366f1 100%);
    padding: 28px 36px 26px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.bps-cf-header__icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.18);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}
.bps-cf-header__icon svg { display: block; }
.bps-cf-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
    text-transform: capitalize;
}

/* ── Progress bar (multi-step) ── */
.bps-cf-progress {
    display: flex;
    align-items: center;
    padding: 16px 36px;
    background: #f8fafc;
    border-bottom: 1px solid var(--bps-border);
    gap: 0;
}
.bps-cf-progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.45;
    transition: opacity 0.2s;
}
.bps-cf-progress-step.active { opacity: 1; }
.bps-cf-progress-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bps-border);
    color: var(--bps-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}
.bps-cf-progress-step.active .bps-cf-progress-num {
    background: var(--bps-primary);
    color: #fff;
}
.bps-cf-progress-label { font-size: 12px; color: var(--bps-muted); white-space: nowrap; }
.bps-cf-progress-step.active .bps-cf-progress-label { color: var(--bps-text); font-weight: 600; }
.bps-cf-progress-line { flex: 1; height: 2px; background: var(--bps-border); margin: 0 10px; min-width: 20px; }

/* ── Form body ── */
.bps-custom-form {
    padding: 28px 36px 32px;
}

/* ── Field ── */
.bps-cf-field {
    margin-bottom: 20px;
}
.bps-cf-field:last-child { margin-bottom: 0; }

/* ── Label ── */
.bps-cf-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}
.bps-cf-label abbr {
    color: var(--bps-danger);
    text-decoration: none;
    margin-left: 2px;
}

/* ── Inputs — clean, no icon padding ── */
.bps-cf-input {
    display: block;
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--bps-text);
    background: #fff;
    border: 1.5px solid var(--bps-border);
    border-radius: var(--bps-radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.5;
    font-family: var(--bps-font);
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.bps-cf-input:focus {
    outline: none;
    border-color: var(--bps-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.bps-cf-input::placeholder { color: #9ca3af; }

.bps-cf-textarea {
    resize: vertical;
    min-height: 96px;
}

.bps-cf-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

/* ── File input ── */
.bps-cf-file {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--bps-text);
    background: #f8fafc;
    border: 1.5px dashed var(--bps-border);
    border-radius: var(--bps-radius-sm);
    cursor: pointer;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.bps-cf-file:hover { border-color: var(--bps-primary); }

/* ── Radio group ── */
.bps-cf-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bps-cf-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--bps-text);
    cursor: pointer;
    padding: 8px 12px;
    border: 1.5px solid var(--bps-border);
    border-radius: var(--bps-radius-sm);
    transition: border-color 0.2s, background 0.2s;
}
.bps-cf-radio-label:hover { border-color: var(--bps-primary); background: #f5f3ff; }
.bps-cf-radio-label input[type="radio"] { accent-color: var(--bps-primary); width: 16px; height: 16px; }

/* ── Checkbox ── */
.bps-cf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--bps-text);
    cursor: pointer;
    line-height: 1.5;
}
.bps-cf-checkbox-label input[type="checkbox"] {
    accent-color: var(--bps-primary);
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}
.bps-cf-checkbox-label abbr { color: var(--bps-danger); text-decoration: none; }

/* ── Multi-step nav ── */
.bps-cf-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--bps-border);
}

/* ── Submit button override ── */
.bps-custom-form .bps-btn.bps-btn--full {
    margin-top: 24px;
    padding: 14px;
    font-size: 15px;
    letter-spacing: 0.04em;
}

/* ── Success state ── */
.bps-cf-success {
    padding: 48px 36px;
    text-align: center;
}
.bps-cf-success__icon {
    font-size: 52px !important;
    width: 52px !important;
    height: 52px !important;
    color: var(--bps-secondary);
    display: block;
    margin: 0 auto 16px;
}
.bps-cf-success h3 {
    font-size: 20px;
    color: var(--bps-dark);
    margin: 0 0 8px;
}
.bps-cf-success p {
    color: var(--bps-muted);
    margin: 0;
}

/* ── Error message ── */
.bps-custom-form-wrap .bps-form-msg {
    margin-top: 12px;
    font-size: 13px;
    border-radius: var(--bps-radius-sm);
    padding: 10px 14px;
}
.bps-custom-form-wrap .bps-form-msg.bps-msg--error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.bps-custom-form-wrap .bps-form-msg.bps-msg--success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* ── Mobile responsive ── */
@media (max-width: 600px) {
    .bps-custom-form-wrap { margin: 12px; }
    .bps-cf-header { padding: 20px 20px 18px; }
    .bps-cf-header h2 { font-size: 18px; }
    .bps-custom-form { padding: 20px 20px 24px; }
    .bps-cf-progress { padding: 12px 20px; }
}

/* ── Guest notice when inline auth form follows ── */
.bps-guest-notice--with-form {
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: center;
    padding: 24px 0 8px;
}
.bps-guest-notice--with-form .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--bps-primary);
    display: block;
    margin: 0 auto 10px;
}
.bps-guest-notice--with-form p {
    font-size: 15px;
    color: var(--bps-text);
    margin-bottom: 20px;
}
