/* V3.1 — original, accessible four-stage intake interface */
.form-main{min-width:0}.form-heading h2{font-size:29px}.wizard-header{padding:25px 27px 22px;background:#eaf0ee;border:1px solid #d8e2e0;margin:30px 0 28px}.wizard-caption{font-size:10px;letter-spacing:1.7px;color:#35576a;font-weight:800;margin-bottom:15px}.wizard-track{height:4px;background:#cbd8d8;overflow:hidden}.wizard-progress{width:25%;height:100%;background:#af8a49;transition:width .25s}.wizard-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:19px}.wizard-steps span{color:#71828a;font-size:11px;font-weight:700}.wizard-steps b{display:block;color:#627681;font:700 13px 'DM Sans',sans-serif;margin-bottom:5px}.wizard-steps .current,.wizard-steps .current b{color:#102d41}.wizard-panel{display:none;animation:panelfade .18s ease-out}.wizard-panel.active{display:block}.wizard-panel-intro{margin:4px 0 25px;padding-bottom:20px;border-bottom:1px solid #d6dfdf}.wizard-panel-intro>span{font-size:10px;letter-spacing:1.7px;font-weight:800;color:#a07a42}.wizard-panel-intro h3{font:700 25px/1.35 'Libre Baskerville',Georgia,serif;color:#102b40;margin:10px 0}.wizard-panel-intro p{font-size:13px;line-height:1.75;color:#637687;margin:0}.wizard-panel .field-row{margin-top:17px}.wizard-panel label{font-size:13px!important}.wizard-panel input:not([type=checkbox]),.wizard-panel textarea,.wizard-panel select{font-size:13px;min-height:49px}.wizard-panel label small{font-size:11px}.wizard-actions{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:28px 0 9px}.wizard-back{border:1px solid #d2dddf;padding:13px 16px;background:transparent;color:#193b50;font-weight:700;font-size:12px}.wizard-back[hidden]{display:none}.wizard-counter{font-size:10px;letter-spacing:1px;font-weight:700;color:#87959a}.wizard-submit{display:none;margin:18px 0 0}.wizard-panel.active .wizard-submit{display:inline-flex}.wizard-context{margin-top:12px}.evidence-upload{margin-top:25px;background:#f1f6f5;border:1px dashed #9fb5b5;padding:22px;display:flex;align-items:center;gap:14px}.upload-icon{width:43px;height:43px;border-radius:50%;display:grid;place-items:center;background:#dce8e6;color:#204555;font-size:23px}.evidence-upload>div:nth-child(2){flex:1}.evidence-upload strong{font-size:13px}.evidence-upload p{font-size:11px;color:#6c7e84;margin:5px 0}.file-picker{display:inline-flex!important;margin:0!important;border:1px solid #193f52;padding:11px 13px;color:#17384b;cursor:pointer;white-space:nowrap;font-weight:700!important}.evidence-upload input{display:none}.selected-files{display:grid;gap:7px;margin-top:12px}.selected-files>div{padding:9px 12px;background:#f2f6f6;color:#24495b;font-size:12px;overflow-wrap:anywhere}.file-warning{font-size:11px;line-height:1.8;color:#63747c;margin:14px 0}.review-summary{border:1px solid #dbe2e3;background:#f8faf9;padding:20px;display:grid;gap:0}.review-row{border-bottom:1px solid #dce5e3;padding:12px 0}.review-row:last-child{border-bottom:0}.review-row>span{display:block;color:#70818c;font-size:10px;text-transform:uppercase;letter-spacing:1px;font-weight:700;margin-bottom:5px}.review-row>strong{font-size:13px;font-weight:600;color:#203b4a;overflow-wrap:anywhere;white-space:pre-line}.wizard-panel .consent{font-size:12px!important}.form-main .wizard-panel [type=checkbox]{accent-color:#1c5366}.form-main form .form-error[hidden]{display:none}@keyframes panelfade{from{opacity:.4;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@media(max-width:700px){.wizard-header{padding:17px;margin-top:24px}.wizard-steps{gap:5px}.wizard-steps span{font-size:9px}.wizard-panel-intro h3{font-size:22px}.wizard-actions{flex-wrap:wrap}.wizard-counter{order:3;width:100%;text-align:center}.evidence-upload{flex-wrap:wrap}.evidence-upload>div:nth-child(2){min-width:55%}}

/* V3.3: keep declaration checkbox aligned beside its statement, not centered. */
.form-main .wizard-panel > label.consent{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;align-items:start!important;column-gap:14px!important;margin:28px 0 14px!important;clear:both!important;line-height:1.75!important;}
.form-main .wizard-panel > label.consent > input[type=checkbox]{display:block!important;position:static!important;width:19px!important;height:19px!important;min-height:19px!important;max-width:19px!important;margin:3px 0 0!important;padding:0!important;flex:none!important;justify-self:start!important;align-self:start!important;}
.form-main .wizard-panel > label.consent > span{display:block!important;min-width:0!important;line-height:1.75!important;text-align:left!important;color:#526878!important;}

/* V3.4.1: removable, accessible evidence selections */
.selected-files .attachment-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 13px;background:#edf3f3;border:1px solid #d9e4e4;color:#24495b;min-width:0}
.attachment-info{display:flex;flex-direction:column;gap:3px;min-width:0;overflow-wrap:anywhere}
.attachment-info strong{font-size:12px;font-weight:700}
.attachment-info small{font-size:11px;color:#657d88}
.attachment-remove{flex-shrink:0;background:#fff;border:1px solid #c8d7d8;border-radius:2px;color:#8c2a35;padding:8px 12px;font:700 12px 'DM Sans',sans-serif;cursor:pointer}
.attachment-remove:hover,.attachment-remove:focus-visible{border-color:#a64c54;background:#fff5f5;outline-offset:2px}
.attachment-feedback{margin:0;padding:10px 12px;color:#92323b;background:#fff0f0;border:1px solid #e6b6b6;font-size:12px}
@media(max-width:450px){.attachment-row{flex-wrap:wrap}.attachment-remove{margin-left:auto}}

/* V3.5: authoritative consent layout with no legacy input positioning. */
.form-main .wizard-panel label.consent{display:flex!important;flex-direction:row!important;align-items:flex-start!important;justify-content:flex-start!important;gap:14px!important;width:100%!important;margin:28px 0 18px!important;text-align:left!important}
.form-main .wizard-panel label.consent input[type="checkbox"]{display:block!important;appearance:auto!important;position:static!important;transform:none!important;float:none!important;flex:0 0 20px!important;width:20px!important;height:20px!important;min-height:20px!important;margin:3px 0 0!important;padding:0!important;align-self:flex-start!important}
.form-main .wizard-panel label.consent span{display:block!important;flex:1 1 auto!important;width:auto!important;margin:0!important;padding:0!important;line-height:1.7!important}
.wizard-panel[data-step="2"]>label{display:block!important;margin-top:25px!important;clear:both!important}
.wizard-panel[data-step="2"]>label small{display:block;margin-top:9px!important;line-height:1.6}
.access-toggle{display:inline-block;margin:-2px 0 17px;background:transparent;border:0;color:#155a6e;font-size:12px;font-weight:700;cursor:pointer;padding:3px 0}
.credential .secret-code{overflow-wrap:anywhere;letter-spacing:.08em}
@media(max-width:700px){.form-main .wizard-panel label.consent{gap:11px!important}}

/* V3.6 — robust layout for declaration and upload controls. */
.form-main .wizard-panel label.consent{display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;justify-content:start!important;align-items:start!important;gap:12px!important;max-width:100%;cursor:pointer}
.form-main .wizard-panel label.consent>input[type="checkbox"]{grid-column:1!important;grid-row:1!important;position:static!important;display:block!important;margin:3px 0 0!important;width:19px!important;height:19px!important;min-width:19px!important;min-height:19px!important;flex:none!important;transform:none!important;float:none!important}
.form-main .wizard-panel label.consent>span{grid-column:2!important;grid-row:1!important;min-width:0!important;line-height:1.75!important;overflow-wrap:anywhere!important;text-align:left!important}
.wizard-panel[data-step="2"] .attachment-row{width:100%;box-sizing:border-box;align-items:center}
.wizard-panel[data-step="2"] .attachment-info{flex:1 1 auto}
@media(max-width:600px){.wizard-actions{gap:12px}.wizard-actions button{max-width:100%}}
