:root{--navy:#061326;--gold:#ffc319;--line:#dce5f0;--text:#101b2d;--muted:#667389;--danger:#d93446}
*{box-sizing:border-box}
body{margin:0;background:#eef3f9;color:var(--text);font-family:"Noto Sans Thai",sans-serif;letter-spacing:0}
button,input,select,textarea{font:inherit}
.report-header{min-height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 max(16px,calc((100% - 1180px)/2));background:var(--navy);color:#fff}
.report-header a{color:#fff;text-decoration:none;font-size:23px;font-weight:800}.report-header a b,.report-header a span{color:var(--gold)}
.report-header button{min-height:38px;padding:0 14px;border:1px solid #637086;border-radius:6px;background:transparent;color:#fff}
.report-header>div{display:flex;gap:8px}
.report-shell{width:min(100% - 32px,1180px);margin:32px auto 70px}.report-heading{text-align:center}.report-heading p,.report-heading h1{margin:0}.report-heading p{color:#9a6b00;font-weight:700}.report-heading h1{font-size:32px}.report-heading span{color:var(--muted)}
.stepper{display:grid;grid-template-columns:repeat(3,1fr);padding:0;margin:26px 0 16px;list-style:none}.stepper li{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;border-bottom:3px solid #cad5e3;color:#748196}.stepper li.active{border-color:var(--gold);color:#624800}.stepper b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#dfe7f1}.stepper .active b{background:var(--gold);color:#171100}
.report-content{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:18px;align-items:start}#report-form{padding:26px;border:1px solid var(--line);border-radius:7px;background:#fff}.report-step{display:grid;gap:18px}.report-step[hidden]{display:none}.step-title{padding-bottom:16px;border-bottom:1px solid var(--line)}.step-title span{color:#9a6b00;font-weight:700}.step-title h2{margin:2px 0 0;font-size:22px}
label>span,legend{display:block;margin-bottom:6px;font-size:13px;font-weight:700}em{color:var(--danger);font-style:normal;font-size:11px}input,select,textarea{width:100%;min-height:45px;padding:10px 12px;border:1px solid #c7d3e2;border-radius:6px;background:#fff;color:var(--text);outline:none}textarea{resize:vertical}input:focus,select:focus,textarea:focus{border-color:#d99c00;box-shadow:0 0 0 3px rgba(255,195,25,.2)}.tip{display:inline-grid;place-items:center;width:20px;height:20px;margin-left:4px;padding:0;border:1px solid #9eadc0;border-radius:50%;background:#fff;color:#536176;font-size:12px;font-weight:800}
.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.bank-fieldset{padding:17px;border:1px solid var(--line);border-radius:6px}.bank-row{display:grid;grid-template-columns:1fr 1fr 34px;gap:12px;align-items:end;padding:12px 0;border-bottom:1px solid var(--line)}.remove-bank{width:34px;height:44px;border:0;background:#fff0f2;color:var(--danger);font-size:20px}.add-bank{margin-top:14px;padding:9px 13px;border:1px solid #bdc9d9;border-radius:5px;background:#fff;font-weight:700}
.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.upload-field{min-width:0}.upload-field.full{grid-column:1/-1}.upload-box{display:block;padding:16px;border:1px dashed #9aabc0;border-radius:6px;background:#f8faff}.upload-box input{padding:8px;background:#fff}.upload-box small,.upload-box strong{display:block;margin-top:6px;color:var(--muted);font-size:11px}.upload-box strong{color:#344158}.selected-files:empty{display:none}.selected-files{display:grid;gap:8px;margin-top:8px}.file-card{display:grid;grid-template-columns:54px minmax(0,1fr) 34px;gap:10px;align-items:center;padding:8px;border:1px solid var(--line);border-radius:6px;background:#fff}.file-card img{width:54px;height:54px;object-fit:cover;border-radius:4px;background:#edf2f8}.file-card strong,.file-card small{display:block;overflow-wrap:anywhere}.file-card strong{font-size:12px}.file-card small{color:var(--muted);font-size:10px}.file-card .file-status{color:#16733e;font-weight:700}.file-card.processing .file-status{color:#8a6500}.file-card.error .file-status{color:var(--danger)}.remove-file{display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid #f1bec5;border-radius:5px;background:#fff4f5;color:var(--danger);font-size:19px}
.consent{display:flex;gap:10px;align-items:flex-start}.consent input{width:18px;min-height:18px;margin-top:3px}.consent span{margin:0;font-weight:500}.form-message{min-height:24px;margin-top:14px;color:var(--danger);font-weight:700}.form-nav{display:flex;justify-content:space-between;gap:12px;padding-top:16px;border-top:1px solid var(--line)}.form-nav button{min-height:44px;padding:0 22px;border-radius:6px;font-weight:800}.back-button{border:1px solid #bdc9d9;background:#fff}.next-button,.submit-button{margin-left:auto;border:0;background:var(--gold)}.submit-button:disabled{opacity:.55}.storage-warning{padding:12px;border-radius:6px;background:#fff2d9;color:#885900}
.report-summary{position:sticky;top:18px;padding:22px;border:1px solid var(--line);border-radius:7px;background:#fff}.report-summary h2{margin:0 0 12px;font-size:19px}.report-summary dl{margin:0}.report-summary dl div{display:grid;grid-template-columns:110px 1fr;gap:10px;padding:13px 0;border-bottom:1px solid var(--line)}.report-summary dt{font-size:12px;font-weight:700}.report-summary dd{margin:0;color:#526078;font-size:12px;text-align:right;overflow-wrap:anywhere}.summary-safe{display:grid;gap:4px;margin-top:18px;padding:14px;border:1px solid #9ac7ee;border-radius:6px;background:#eef7ff}.summary-safe strong{color:#164c7c;font-size:13px}.summary-safe span{color:#4d6881;font-size:11px}.report-success{text-align:center;padding:44px 12px}.report-success a{display:inline-block;margin-top:12px;color:#735300;font-weight:700}
body.dark-mode{--line:#2b3d55;--text:#f2f5fa;--muted:#aeb9ca;background:#061326}body.dark-mode #report-form,body.dark-mode .report-summary,body.dark-mode .file-card{background:#0d1b2f}body.dark-mode input,body.dark-mode select,body.dark-mode textarea,body.dark-mode .upload-box,body.dark-mode .add-bank,body.dark-mode .back-button{border-color:#3e5068;background:#0a1729;color:#f2f5fa}body.dark-mode .summary-safe{border-color:#31577a;background:#10253a}body.dark-mode .report-summary dd,body.dark-mode .upload-box strong{color:#d2dbe7}body.dark-mode .remove-bank{background:#321922}body.dark-mode .tip{border-color:#52647b;background:#12243b;color:#d9e1ec}
@media(max-width:900px){.report-content{grid-template-columns:1fr}.report-summary{position:static;grid-row:1}.report-summary dl{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}}
@media(max-width:650px){.report-heading h1{font-size:27px}.stepper li span{display:none}#report-form{padding:18px 14px}.two-columns,.upload-grid{grid-template-columns:1fr}.upload-field.full{grid-column:1}.bank-row{grid-template-columns:1fr 40px}.bank-row label{grid-column:1}.remove-bank{grid-column:2;grid-row:1/3;height:100%}.report-summary{padding:16px}.report-summary dl{display:block}.file-card{grid-template-columns:48px minmax(0,1fr) 34px}.file-card img{width:48px;height:48px}}

/* Clearer form hierarchy, summary emphasis and accessible help */
body {
  line-height: 1.5;
}

.report-header a,
.report-header button,
.report-heading h1,
.step-title h2,
.report-summary h2 {
  letter-spacing: 0;
}

.report-header > div {
  align-items: center;
}

.report-header button:focus-visible,
.report-header a:focus-visible {
  outline: 3px solid rgba(255, 195, 25, 0.45);
  outline-offset: 2px;
}

.report-heading p {
  color: #795500;
}

.stepper li {
  color: #5e6c80;
  font-weight: 600;
}

.stepper li.active {
  color: #5f4500;
  font-weight: 800;
}

#report-form {
  box-shadow: 0 12px 34px rgba(6, 19, 38, 0.06);
}

.report-summary {
  overflow: hidden;
  padding: 0 22px 22px;
  border: 1px solid #d4a300;
  border-top: 5px solid var(--gold);
  box-shadow: 0 16px 40px rgba(6, 19, 38, 0.14);
}

.report-summary h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 -22px 4px;
  padding: 17px 22px 14px;
  border-bottom: 1px solid var(--line);
  background: #fffaf0;
  color: #172236;
  font-size: 20px;
  font-weight: 800;
}

.report-summary h2::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #171100;
  font-size: 15px;
}

.report-summary dl div {
  grid-template-columns: minmax(94px, 0.8fr) minmax(0, 1.2fr);
  padding: 14px 0;
}

.report-summary dt {
  color: #26364d;
  font-weight: 800;
}

.report-summary dd {
  color: #435269;
  font-weight: 600;
  line-height: 1.45;
}

.summary-safe {
  border-left: 4px solid #2784cf;
  background: #f1f8ff;
}

.tip {
  position: relative;
  vertical-align: middle;
  cursor: help;
}

.tip:hover,
.tip:focus-visible,
.tip[aria-expanded="true"] {
  border-color: #a87700;
  background: #fff4c7;
  color: #6b4b00;
  outline: none;
}

.tip-popover {
  position: fixed;
  z-index: 100;
  width: min(300px, calc(100vw - 24px));
  padding: 11px 13px;
  border: 1px solid #d3a200;
  border-radius: 7px;
  background: #fffdf7;
  color: #26354a;
  box-shadow: 0 14px 36px rgba(6, 19, 38, 0.22);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.65;
}

.tip-popover[hidden] {
  display: none;
}

.consent a {
  color: #765500;
  font-weight: 800;
}

body.dark-mode .report-heading p,
body.dark-mode .step-title span {
  color: #ffd24a;
}

body.dark-mode .stepper li {
  color: #b7c3d3;
}

body.dark-mode .stepper li.active {
  color: #ffd24a;
}

body.dark-mode .stepper b {
  background: #26364b;
  color: #d9e3ef;
}

body.dark-mode .stepper .active b {
  background: var(--gold);
  color: #171100;
}

body.dark-mode .report-summary {
  border-color: #9d7900;
  border-top-color: #ffd13d;
  background: #101f34;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
}

body.dark-mode .report-summary h2 {
  border-bottom-color: #33465f;
  background: #14243a;
  color: #ffffff;
}

body.dark-mode .report-summary dt {
  color: #f4f7fb;
}

body.dark-mode .report-summary dd {
  color: #d5dfeb;
}

body.dark-mode .summary-safe {
  border-color: #4a90c9;
  background: #102a43;
}

body.dark-mode .summary-safe strong {
  color: #9ed2ff;
}

body.dark-mode .summary-safe span {
  color: #c2d5e6;
}

body.dark-mode .tip-popover {
  border-color: #b58b00;
  background: #17273d;
  color: #eef4fb;
}

body.dark-mode .consent a {
  color: #ffd34a;
}

@media(max-width:650px) {
  .report-header {
    gap: 10px;
  }

  .report-header a {
    font-size: 20px;
  }

  .report-header button {
    padding: 0 10px;
    font-size: 12px;
  }

  .report-summary {
    padding: 0 16px 16px;
  }

  .report-summary h2 {
    margin-inline: -16px;
    padding-inline: 16px;
  }
}

html,body{max-width:100%;overflow-x:hidden}.report-content,.report-step,.report-summary,.file-card{min-width:0}.report-step strong,.report-step small,.report-step p,.report-summary dd,.file-card strong,.file-card small{overflow-wrap:anywhere}@media(max-width:480px){.report-shell{width:calc(100% - 24px)}.form-nav{flex-wrap:wrap}.form-nav button{min-width:0;flex:1 1 120px;padding-inline:12px}.report-header{padding-inline:12px}}

.submission-status {
  width: min(100%, 760px);
  margin: 24px auto 18px;
  padding: 34px clamp(20px, 5vw, 54px) 40px;
  border: 1px solid #d4a300;
  border-top: 5px solid var(--gold);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(6, 19, 38, 0.12);
  text-align: center;
}

.submission-status[hidden] {
  display: none;
}

.submission-status-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border: 2px solid #d4a300;
  border-radius: 50%;
  color: #8a6500;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0;
}

.submission-status-kicker {
  margin: 0;
  color: #8a6500;
  font-size: 13px;
  font-weight: 800;
}

.submission-status h2 {
  margin: 4px 0 3px;
  color: var(--text);
  font-size: 25px;
}

.submission-status-description {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.submission-progress {
  height: 8px;
  margin: 24px 0 22px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebf3;
  text-align: left;
}

.submission-progress span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e3a600, var(--gold));
  transition: width 0.25s ease;
}

.submission-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.submission-steps li {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: #8995a7;
}

.submission-steps li b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e4eaf2;
  color: #67758a;
  font-size: 12px;
}

.submission-steps li strong,
.submission-steps li small {
  display: block;
  overflow-wrap: anywhere;
}

.submission-steps li strong {
  color: #68778b;
  font-size: 12px;
}

.submission-steps li small {
  margin-top: 2px;
  color: #8995a7;
  font-size: 10px;
  line-height: 1.4;
}

.submission-steps li.current b {
  background: var(--gold);
  color: #171100;
}

.submission-steps li.current strong,
.submission-steps li.done strong {
  color: #25354b;
  font-weight: 800;
}

.submission-steps li.done b {
  background: #1f9c59;
  color: #fff;
  font-size: 0;
}

.submission-steps li.done b::after {
  content: "✓";
  font-size: 13px;
}

.submission-success {
  margin-top: 26px;
  padding: 22px 16px 4px;
  border-top: 1px solid var(--line);
}

.submission-success p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.submission-success > strong {
  display: block;
  margin-top: 2px;
  color: #986900;
  font-size: 30px;
  letter-spacing: 1px;
}

.submission-success h3 {
  margin: 14px 0 2px;
  color: var(--text);
  font-size: 20px;
}

.submission-success > span {
  color: var(--muted);
  font-size: 13px;
}

.submission-ack {
  display: block;
  min-width: 148px;
  min-height: 44px;
  margin: 22px auto 0;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  background: var(--gold);
  color: #171100;
  font-weight: 900;
}

.submission-status.success {
  border-color: #80c49d;
  border-top-color: #1f9c59;
}

.submission-status.success .submission-status-mark {
  border-color: #1f9c59;
  color: #1f9c59;
}

.submission-status.success .submission-status-kicker {
  color: #168a4f;
}

body.dark-mode .submission-status {
  border-color: #826500;
  border-top-color: #ffd13d;
  background: #0d1b2f;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
}

body.dark-mode .submission-status-mark {
  border-color: #d4a300;
  color: #ffd34a;
}

body.dark-mode .submission-status-kicker,
body.dark-mode .submission-status-description,
body.dark-mode .submission-success p,
body.dark-mode .submission-success > span {
  color: #c5d0de;
}

body.dark-mode .submission-status h2,
body.dark-mode .submission-success h3,
body.dark-mode .submission-steps li.current strong,
body.dark-mode .submission-steps li.done strong {
  color: #f4f7fb;
}

body.dark-mode .submission-progress,
body.dark-mode .submission-steps li b {
  background: #26364b;
}

body.dark-mode .submission-steps li strong {
  color: #c5d0de;
}

body.dark-mode .submission-steps li small {
  color: #aeb9ca;
}

body.dark-mode .submission-status.success {
  border-color: #397e5a;
  border-top-color: #35c878;
}

body.dark-mode .submission-status.success .submission-status-mark {
  border-color: #35c878;
  color: #35c878;
}

@media(max-width:700px) {
  .submission-steps {
    grid-template-columns: 1fr 1fr;
    gap: 14px 10px;
  }
}

@media(max-width:420px) {
  .submission-status {
    margin-top: 16px;
    padding: 26px 14px 30px;
  }

  .submission-status h2 {
    font-size: 21px;
  }

  .submission-success > strong {
    font-size: 26px;
  }
}
@media(max-width:720px){
  em,.upload-box small,.upload-box strong,.file-card small,
  .summary-safe span{font-size:12px}
}
