/* ================================================================
   Verve NDIS Suite — Public Forms CSS
================================================================ */
.vns-pub-wrap {
    max-width: 860px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    color: #1f2937;
}

/* Progress bar */
.vns-pub-progress { margin-bottom: 28px; }
.vns-pub-progress-bar { height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; margin-bottom: 14px; }
.vns-pub-progress-fill { height: 100%; background: linear-gradient(90deg, #1e4d8c, #0d7a6b); border-radius: 3px; transition: width .4s ease; }
.vns-pub-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.vns-pub-step-btn { padding: 7px 14px; border: 1.5px solid #d1d5db; border-radius: 20px; background: #fff; font-size: 13px; color: #6b7280; cursor: pointer; transition: all .2s; }
.vns-pub-step-btn.active { background: #1e4d8c; color: #fff; border-color: #1e4d8c; font-weight: 600; }

/* Sections */
.vns-pub-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.vns-pub-section h3 { font-size: 16px; font-weight: 700; color: #1e4d8c; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid #e8f0f9; display: flex; align-items: center; gap: 8px; }

/* Fields */
.vns-pub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .vns-pub-grid { grid-template-columns: 1fr; } }
.vns-pub-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.vns-pub-field.req label::after { content: ' *'; color: #b91c1c; }
.vns-pub-field label { font-size: 13.5px; font-weight: 600; color: #374151; }
.vns-pub-field input,
.vns-pub-field select,
.vns-pub-field textarea { font-family: inherit; font-size: 14.5px; color: #1f2937; border: 1.5px solid #d1d5db; border-radius: 8px; padding: 11px 14px; background: #f9fafb; transition: border-color .2s, box-shadow .2s; width: 100%; box-sizing: border-box; }
.vns-pub-field input:focus,
.vns-pub-field select:focus,
.vns-pub-field textarea:focus { outline: none; border-color: #1e4d8c; background: #fff; box-shadow: 0 0 0 3px rgba(30,77,140,.12); }
.vns-pub-field textarea { resize: vertical; min-height: 80px; }

/* Checkboxes / radios */
.vns-pub-checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.vns-pub-check { display: flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; padding: 5px 12px; border: 1.5px solid #e5e7eb; border-radius: 8px; transition: all .2s; background: #fff; }
.vns-pub-check:hover { border-color: #1e4d8c; background: #f0f7ff; }
.vns-pub-check input { accent-color: #1e4d8c; width: 16px; height: 16px; }
.vns-pub-check--consent { font-size: 13px; line-height: 1.5; padding: 12px 14px; border-radius: 10px; background: #f9fafb; width: 100%; }

/* Nav / Submit button */
.vns-pub-nav { display: flex; gap: 12px; margin-top: 20px; align-items: center; }
.vns-pub-btn { font-family: inherit; font-size: 15px; font-weight: 700; padding: 13px 30px; border: 2px solid transparent; border-radius: 10px; cursor: pointer; background: #1e4d8c; color: #fff; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; }
.vns-pub-btn:hover { background: #2d6cc0; }
.vns-pub-btn:disabled { background: #9ca3af; cursor: not-allowed; }
.vns-pub-btn--outline { background: #fff; border-color: #d1d5db; color: #374151; }
.vns-pub-btn--outline:hover { border-color: #1e4d8c; color: #1e4d8c; }

/* Success */
.vns-pub-success { text-align: center; padding: 48px 24px; background: #f0fdf4; border: 2px solid #86efac; border-radius: 16px; }
.vns-pub-success-icon { font-size: 56px; margin-bottom: 16px; }
.vns-pub-success h2 { font-size: 22px; font-weight: 700; color: #16a34a; margin-bottom: 10px; }
.vns-pub-success p { font-size: 15px; color: #374151; max-width: 500px; margin: 0 auto 20px; line-height: 1.6; }

/* Error */
.vns-pub-error { background: #fef2f2; border: 1.5px solid #fca5a5; color: #b91c1c; border-radius: 8px; padding: 12px 16px; font-size: 14px; margin-bottom: 12px; }

/* Risk Assessment specific */
.vns-ra-cat { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.vns-ra-cat-title { background: #1e4d8c; color: #fff; padding: 8px 14px; font-size: 13.5px; font-weight: 700; }
.vns-ra-item { padding: 10px 14px; border-bottom: 1px solid #f3f4f6; }
.vns-ra-item:last-child { border-bottom: none; }
.vns-ra-item-label { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.vns-ra-item-label input { accent-color: #1e4d8c; width: 17px; height: 17px; }
.vns-ra-detail { margin-top: 12px; padding: 12px; background: #f9fafb; border-radius: 8px; border: 1px solid #e5e7eb; }
.vns-ra-who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.vns-ra-who-lbl { font-size: 13px; display: flex; align-items: center; gap: 5px; }
.vns-ra-score-row { display: flex; align-items: center; gap: 10px; }
.vns-ra-score-row select { padding: 6px 10px; border: 1.5px solid #d1d5db; border-radius: 6px; font-size: 13px; background: #fff; }

/* HSC Checklist */
.vns-hsc-grid { display: flex; flex-direction: column; gap: 0; }
.vns-hsc-item { padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
.vns-hsc-item:last-child { border-bottom: none; }
.vns-hsc-item-label { font-weight: 600; color: #1f2937; margin-bottom: 8px; font-size: 14px; }
.vns-hsc-controls { margin-left: 0; }
.vns-hsc-risk, .vns-hsc-changes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.vns-hsc-lbl { font-size: 12.5px; font-weight: 600; color: #6b7280; min-width: 120px; }
.vns-hsc-rl { font-size: 13px; display: flex; align-items: center; gap: 5px; cursor: pointer; }

@media (max-width: 500px) {
    .vns-pub-section { padding: 16px; }
    .vns-pub-btn { width: 100%; justify-content: center; }
    .vns-pub-nav { flex-direction: column; }
}
