.hidden {
    display: none;
}

/* ── Module Landing Cards ───────────────────────────────────────────────────── */
.module-cards-section {
    max-width: 780px;
    margin: 24px auto 0;
    padding: 0 16px;
}

.module-cards-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.module-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.module-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.module-card-icon--media {
    background: #eff6ff;
    color: #3b82f6;
}

.module-card-icon--ball {
    background: #f0fdf4;
    color: #16a34a;
}

.module-card-body {
    flex: 1;
}

.module-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.module-card-desc {
    font-size: 0.83rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 14px;
}

/* ── Module Public Form Styles ──────────────────────────────────────────────── */
.module-form-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px 16px 60px;
}

.module-form-header {
    text-align: center;
    padding: 32px 20px 20px;
}

.tbnq-logo-sm {
    height: 48px;
    margin-bottom: 16px;
}

.module-form-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    margin-bottom: 6px;
}

.module-form-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted, #64748b);
}

.module-form-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.consent-entity-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.consent-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}

.consent-body {
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.7;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    max-height: 320px;
    overflow-y: auto;
}

.consent-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.consent-body ul {
    margin: 8px 0 12px 20px;
}

.consent-body li {
    margin-bottom: 6px;
}

.signature-section {
    margin-top: 24px;
}

.signature-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1e293b;
}

.signature-canvas-wrap {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}

.signature-canvas {
    width: 100%;
    height: 180px;
    display: block;
    cursor: crosshair;
    touch-action: none;
}

.signature-clear-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    color: #64748b;
}

.signature-clear-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* Ball entry */
.ball-entry {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.ball-entry-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ball-remove-btn {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: 13px;
    padding: 2px 6px;
}

/* Vote form */
.vote-position {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
}

.vote-position:last-child {
    border-bottom: none;
}

.vote-position-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vote-points-badge {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
}

.candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.candidate-card {
    position: relative;
    cursor: pointer;
}

.candidate-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.candidate-card-inner {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    transition: border-color 0.15s, background 0.15s;
    background: #fff;
}

.candidate-card:hover .candidate-card-inner {
    border-color: #93c5fd;
    background: #f0f9ff;
}

.candidate-radio:checked + .candidate-card-inner {
    border-color: #3b82f6;
    background: #eff6ff;
}

.candidate-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.candidate-card-team {
    font-size: 0.8rem;
    color: #64748b;
}

/* Complete card */
.module-complete-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-top: 32px;
}

.complete-icon {
    font-size: 3rem;
    color: #22c55e;
    margin-bottom: 20px;
}

.module-complete-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.module-complete-card p {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

/* Utilities */
.required {
    color: #dc2626;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 14px 24px;
    font-size: 1rem;
}

.mt-xl {
    margin-top: 32px;
}
