:root {
  --ocean: #00115a;
  --sky: #008ce6;
  --wood: #004632;
  --mint: #64d2b4;
  --ink: #162239;
  --muted: #607084;
  --line: #dce4eb;
  --page: #f5f7fa;
  --error: #a71d38;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
  font-size: 16px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: var(--ocean);
}
.site-header {
  height: 100px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - 1100px) / 2));
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  text-decoration: none;
  color: var(--ocean);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.brand small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
}
.header-note {
  font-size: 13px;
  color: var(--muted);
}
main {
  max-width: 960px;
  padding: 0 28px;
  margin: 0 auto;
}
.intro {
  padding: 54px 0 32px;
  max-width: 700px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wood);
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(34px, 5vw, 49px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ocean);
  margin: 0 0 22px;
  font-weight: 750;
}
.intro > p:not(.eyebrow) {
  max-width: 600px;
  font-size: 17px;
  color: #526277;
}
.intro .deadline {
  font-size: 14px !important;
  color: var(--wood) !important;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ocean);
  line-height: 1.3;
  margin: 0 0 5px;
}
h3 {
  font-size: 16px;
  color: var(--ocean);
  margin: 0;
}
.steps {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0 0 30px;
  gap: 28px;
  font-size: 13px;
  color: var(--muted);
}
.steps li {
  display: flex;
  gap: 9px;
  align-items: center;
}
.steps span {
  height: 26px;
  width: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: white;
  font-size: 12px;
}
.steps .active {
  color: var(--ocean);
  font-weight: 700;
}
.steps .active span {
  background: var(--ocean);
  color: white;
  border-color: var(--ocean);
}
.panel {
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 22px;
  box-shadow: 0 3px 12px #00115a03;
}
.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 27px;
}
.section-heading p {
  font-size: 14px;
  margin: 4px 0 0;
  color: var(--muted);
}
.section-number {
  flex: none;
  background: #e8f7f2;
  color: var(--wood);
  font-size: 12px;
  display: grid;
  place-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-weight: 700;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field {
  min-width: 0;
}
.field label,
.signature-section > label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 7px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #c7d3df;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  outline-offset: 2px;
}
.field textarea {
  min-height: 96px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--sky);
  border-color: var(--sky);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
}
small,
.muted {
  font-size: 12px;
  color: var(--muted);
}
.field small {
  display: block;
  margin-top: 6px;
}
.full-width {
  grid-column: 1/-1;
}
.field-error {
  color: var(--error);
  font-size: 12px;
  margin: 5px 0 0;
}
.field-error:empty {
  display: none;
}
.date-pair,
.amount-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.amount-pair {
  grid-template-columns: 1.5fr 1fr;
}
.trip-fields {
  margin-top: 20px;
}
.upload-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: -10px;
  margin-bottom: 23px;
}
.expense-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 21px;
  margin-bottom: 18px;
}
.expense-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.row-actions {
  display: flex;
  gap: 5px;
  align-items: center;
}
.row-actions button {
  border: 0;
  background: transparent;
  padding: 5px 7px;
  color: var(--muted);
  font-size: 13px;
}
.row-actions button:disabled {
  opacity: 0.3;
  cursor: default;
}
.row-actions .remove-row {
  color: var(--error);
  margin-left: 8px;
}
.receipt-zone {
  border-top: 1px dashed var(--line);
  margin-top: 22px;
  padding-top: 16px;
}
.upload-button,
.signature-file {
  position: relative;
  display: inline-block;
  cursor: pointer;
  color: var(--ocean);
  font-size: 13px;
  font-weight: 600;
}
.upload-button {
  border: 1px solid #c7d3df;
  padding: 9px 13px;
  border-radius: 6px;
  background: #fafcfd;
}
.upload-button input,
.signature-file input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload-button:focus-within,
.signature-file:focus-within {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}
.receipt-zone > small {
  margin-left: 10px;
}
.file-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.file-list li {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 9px 0;
  border-bottom: 1px solid #edf1f5;
  font-size: 12px;
}
.file-name {
  flex: 1;
  min-width: 110px;
  overflow-wrap: anywhere;
}
.file-status {
  color: var(--wood);
}
.file-status.failed {
  color: var(--error);
}
.file-list button {
  border: 0;
  background: #f0f4f8;
  border-radius: 4px;
  color: var(--muted);
  padding: 3px 7px;
  font-size: 12px;
}
.totals {
  text-align: right;
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 20px;
  font-size: 19px;
  color: var(--ocean);
  font-weight: 700;
}
.total-caption {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  margin-right: 15px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 650;
  padding: 13px 20px;
  text-decoration: none;
  border: 1px solid transparent;
}
.button.primary {
  background: var(--ocean);
  color: #fff;
}
.button.primary:hover {
  background: #142b76;
}
.button.secondary {
  background: #fff;
  border-color: #c7d3df;
  color: var(--ocean);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin: 27px 0 58px;
}
.form-actions p {
  font-size: 12px;
  color: var(--muted);
  max-width: 430px;
  margin: 0;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
  cursor: pointer;
  margin: 20px 0;
}
.check-label input {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--ocean);
  margin-top: 2px;
}
.declaration-text {
  font-size: 14px;
}
.signature-section {
  margin-top: 28px;
}
.signature-section canvas {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  background: #fafbfd;
  border: 1px solid #c7d3df;
  border-radius: 8px;
  touch-action: none;
}
.signature-actions {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 9px;
}
.text-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  padding: 0;
  text-decoration: underline;
}
.privacy p {
  font-size: 13px;
  color: var(--muted);
}
.error-banner {
  background: #fff0f2;
  border: 1px solid #f3c1cb;
  color: #8d1930;
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 14px;
}
.instructions {
  background: #eaf6f2;
  color: var(--wood);
  padding: 17px 22px;
  border-radius: 8px;
  margin-bottom: 22px;
  font-size: 14px;
}
.dev-notice {
  margin-top: 20px;
  padding: 9px 14px;
  border: 1px solid #e6d275;
  border-radius: 6px;
  background: #fff9d9;
  font-size: 12px;
  color: #675415;
}
.receipt {
  margin: 65px 0;
  padding: 44px;
  max-width: 780px;
}
.receipt h1 {
  font-size: 38px;
}
.receipt > p {
  color: var(--muted);
  max-width: 600px;
}
.success-mark {
  display: grid;
  place-content: center;
  color: var(--wood);
  background: #def7ed;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 28px;
  margin-bottom: 28px;
}
.reference-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f2f6fa;
  border-radius: 8px;
  padding: 20px;
  margin: 27px 0;
}
.reference-box span {
  font-size: 12px;
  color: var(--muted);
}
.reference-box strong {
  font-size: 15px;
  color: var(--ocean);
  overflow-wrap: anywhere;
}
#review-content {
  font-size: 14px;
}
#review-content dl {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 9px 15px;
  margin-bottom: 25px;
}
#review-content dt {
  color: var(--muted);
}
#review-content dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.review-expense {
  border-top: 1px solid var(--line);
  padding: 13px 0;
}
.event-list a {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
footer {
  max-width: 960px;
  padding: 25px 28px 35px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 25px;
  font-size: 11px;
  color: var(--muted);
}
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 10;
  background: #fff;
  padding: 10px;
}
.skip-link:focus {
  top: 5px;
}
:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}
@media (max-width: 650px) {
  main {
    padding: 0 16px;
  }
  .site-header {
    height: 80px;
    padding: 0 16px;
  }
  .brand {
    font-size: 14px;
  }
  .header-note {
    display: none;
  }
  .intro {
    padding-top: 35px;
  }
  .steps {
    gap: 15px;
    font-size: 11px;
  }
  .steps li {
    gap: 5px;
    flex: 1;
    align-items: flex-start;
  }
  .steps span {
    flex: none;
    width: 22px;
    height: 22px;
  }
  .panel {
    padding: 22px 17px;
  }
  .field-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .section-heading {
    gap: 12px;
  }
  .section-heading h2 {
    font-size: 19px;
  }
  .section-heading p {
    font-size: 13px;
  }
  .expense-card {
    padding: 16px 12px;
  }
  .receipt-zone > small {
    display: block;
    margin: 9px 0 0;
  }
  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 20px;
  }
  .button {
    width: 100%;
  }
  .signature-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .receipt {
    padding: 28px 20px;
    margin: 35px 0;
  }
  .receipt h1 {
    font-size: 32px;
  }
  footer {
    padding: 22px 16px;
    flex-direction: column;
    gap: 7px;
  }
  #review-content dl {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  #review-content dd {
    margin-bottom: 10px;
  }
}
