:root {
  --tc-green-900: #123b2a;
  --tc-green-800: #174936;
  --tc-green-700: #1d5a42;
  --tc-green-100: #e8f2ed;
  --tc-gold-700: #b7861f;
  --tc-gold-500: #d7ad45;
  --tc-gold-100: #fbf2dc;
  --tc-cream: #fbfaf6;
  --tc-warm-100: #f4efe6;
  --tc-warm-200: #e7dfd2;
  --tc-warm-700: #685c4d;
  --tc-ink: #17201c;
  --tc-muted: #5d6962;
  --tc-white: #ffffff;
  --tc-danger: #a7352f;
  --tc-danger-soft: #fff0ef;
  --tc-info-soft: #edf5fb;
  --tc-focus: #0f6cbd;
  --shadow-soft: 0 18px 45px rgba(18, 59, 42, 0.12);
  --shadow-card: 0 12px 32px rgba(23, 32, 28, 0.11);
  --radius-card: 8px;
  --radius-control: 6px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--tc-cream);
  color: var(--tc-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body,
button,
input,
select,
textarea {
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--tc-green-800);
}

a:hover {
  color: var(--tc-green-700);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--tc-focus);
  outline-offset: 3px;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--tc-white);
  color: var(--tc-green-900);
  padding: 10px 14px;
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-card);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  background: var(--tc-green-900);
  color: var(--tc-white);
  border-bottom: 4px solid var(--tc-gold-500);
}

.site-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark__image {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: var(--tc-white);
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
}

.brand-mark__text {
  display: grid;
  gap: 1px;
}

.brand-mark__text span {
  color: #eaf2ed;
  font-size: 0.88rem;
}

.brand-mark__text strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.hero-section {
  background:
    linear-gradient(135deg, rgba(18, 59, 42, 0.97), rgba(29, 90, 66, 0.92)),
    linear-gradient(90deg, var(--tc-green-900), var(--tc-green-700));
  color: var(--tc-white);
  padding: 58px 0 64px;
}

.hero-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.82fr);
  gap: 36px;
  align-items: start;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 10px 0 22px;
  font-size: 2.75rem;
  line-height: 1.08;
  font-weight: 800;
}

.hero-copy p {
  max-width: 860px;
  margin: 0 0 18px;
  color: #f1f6f3;
  font-size: 1.06rem;
}

.eyebrow,
.section-kicker,
.document-card__label {
  color: var(--tc-gold-500);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  border-bottom: 2px solid var(--tc-gold-500);
  padding-bottom: 4px;
}

.required-note {
  font-weight: 800;
}

.privacy-notice {
  background: rgba(255, 255, 255, 0.96);
  color: var(--tc-ink);
  border: 1px solid rgba(215, 173, 69, 0.55);
  border-left: 6px solid var(--tc-gold-500);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.privacy-notice h2 {
  margin: 0 0 10px;
  color: var(--tc-green-900);
  font-size: 1.24rem;
}

.privacy-notice p {
  margin: 0;
  color: var(--tc-muted);
}

.content-section,
.portal-form {
  padding: 46px 0;
}

.content-section {
  background: var(--tc-warm-100);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.section-number {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  background: var(--tc-green-900);
  color: var(--tc-white);
  border: 2px solid var(--tc-gold-500);
  border-radius: 50%;
  font-weight: 800;
}

.section-heading h2 {
  margin: 0;
  color: var(--tc-green-900);
  font-size: 1.65rem;
  line-height: 1.18;
}

.section-kicker {
  margin: 0 0 2px;
  color: var(--tc-gold-700);
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.document-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  background: var(--tc-white);
  border: 1px solid var(--tc-warm-200);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.document-card__media {
  position: relative;
  display: grid;
  min-height: 270px;
  background: var(--tc-green-100);
  border-bottom: 1px solid var(--tc-warm-200);
}

.document-card__media img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: contain;
  padding: 18px;
}

.asset-preview.is-hidden {
  display: none;
}

.asset-fallback {
  align-self: stretch;
  display: grid;
  min-height: 270px;
  place-items: center;
  padding: 24px;
  color: var(--tc-green-900);
  font-weight: 800;
  text-align: center;
}

.sample-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  background: var(--tc-gold-500);
  color: var(--tc-green-900);
  padding: 5px 9px;
  border-radius: var(--radius-control);
  font-size: 0.78rem;
  font-weight: 800;
}

.document-card__body {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px;
}

.document-card__body h3 {
  margin: 0;
  color: var(--tc-green-900);
  font-size: 1.25rem;
  line-height: 1.24;
}

.document-card__body p {
  margin: 0;
  color: var(--tc-muted);
}

.document-card__note,
.sensitive-reminder {
  border-left: 4px solid var(--tc-gold-500);
  padding: 9px 12px;
  background: var(--tc-gold-100);
  color: var(--tc-ink) !important;
  font-weight: 700;
}

.button-row,
.file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 10px 16px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--tc-green-800);
  color: var(--tc-white);
  border-color: var(--tc-green-800);
}

.button--primary:hover {
  background: var(--tc-green-700);
  color: var(--tc-white);
}

.button--secondary {
  background: var(--tc-white);
  color: var(--tc-green-900);
  border-color: var(--tc-green-700);
}

.button--secondary:hover {
  background: var(--tc-green-100);
}

.button--text {
  background: transparent;
  color: var(--tc-danger);
  border-color: transparent;
  padding-inline: 8px;
}

.button--submit {
  width: min(100%, 360px);
  min-height: 54px;
  background: var(--tc-gold-500);
  color: var(--tc-green-900);
  border-color: var(--tc-gold-500);
  font-size: 1rem;
}

.button--submit:hover {
  background: #e5bf5e;
}

.button[disabled],
.button[aria-disabled="true"] {
  opacity: 0.64;
  cursor: not-allowed;
  transform: none;
}

.portal-form {
  background: var(--tc-cream);
}

.configuration-notice,
.error-summary {
  margin-bottom: 24px;
  border-radius: var(--radius-card);
  padding: 18px 20px;
}

.configuration-notice {
  display: grid;
  gap: 4px;
  background: var(--tc-info-soft);
  border: 1px solid #b5d5ef;
  color: #153d59;
}

.configuration-notice--error {
  background: var(--tc-danger-soft);
  border-color: var(--tc-danger);
  color: var(--tc-danger);
}

.configuration-notice code {
  font-size: 0.95em;
}

.error-summary {
  background: var(--tc-danger-soft);
  border: 2px solid var(--tc-danger);
}

.error-summary h2 {
  margin: 0 0 8px;
  color: var(--tc-danger);
  font-size: 1.15rem;
}

.error-summary ul {
  margin: 0;
  padding-left: 21px;
}

.error-summary a {
  color: var(--tc-danger);
  font-weight: 800;
}

.form-section {
  padding: 34px 0;
  border-top: 1px solid var(--tc-warm-200);
}

.form-section:first-of-type {
  border-top: 0;
}

.form-note {
  margin: -10px 0 22px;
  color: var(--tc-muted);
}

.form-note--strong {
  display: inline-block;
  background: var(--tc-gold-100);
  color: var(--tc-green-900);
  border-left: 4px solid var(--tc-gold-500);
  padding: 10px 12px;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field-group {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field-group--wide {
  grid-column: 1 / -1;
}

.field-group label,
.upload-fieldset legend,
.consent-fieldset legend {
  color: var(--tc-green-900);
  font-weight: 800;
}

.field-group label span {
  color: var(--tc-danger);
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #b9c3bc;
  border-radius: var(--radius-control);
  background: var(--tc-white);
  color: var(--tc-ink);
  padding: 10px 12px;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"],
.dropzone[aria-invalid="true"] {
  border-color: var(--tc-danger);
  box-shadow: 0 0 0 3px rgba(167, 53, 47, 0.14);
}

.field-hint,
.field-error {
  margin: 0;
  font-size: 0.92rem;
}

.field-hint {
  color: var(--tc-muted);
}

.field-error {
  min-height: 1.35em;
  color: var(--tc-danger);
  font-weight: 700;
}

.field-error:empty {
  min-height: 0;
}

.field-error--checkbox {
  margin: 3px 0 0 34px;
}

.conditional-field[hidden],
[hidden] {
  display: none !important;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  max-width: 920px;
  margin-top: 12px;
}

.checkbox-row input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 3px 0 0;
  accent-color: var(--tc-green-800);
}

.checkbox-row label {
  color: var(--tc-ink);
  font-weight: 700;
}

.upload-fieldset,
.consent-fieldset {
  min-width: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.upload-fieldset legend,
.consent-fieldset legend {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.file-uploader {
  display: grid;
  gap: 10px;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dropzone {
  display: grid;
  gap: 9px;
  min-height: 160px;
  place-items: center;
  align-content: center;
  padding: 26px;
  border: 2px dashed #93a59b;
  border-radius: var(--radius-card);
  background: var(--tc-white);
  color: var(--tc-green-900);
  text-align: center;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.dropzone span {
  color: var(--tc-muted);
}

.dropzone.is-dragover {
  background: var(--tc-green-100);
  border-color: var(--tc-green-800);
}

.file-details {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--tc-warm-200);
  border-left: 5px solid var(--tc-green-700);
  border-radius: var(--radius-card);
  background: var(--tc-white);
  padding: 14px 16px;
}

.file-details strong,
.file-details span {
  display: block;
  overflow-wrap: anywhere;
}

.file-details span {
  color: var(--tc-muted);
  font-size: 0.93rem;
}

.submit-section {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 34px 0 14px;
  border-top: 1px solid var(--tc-warm-200);
}

.submit-section h2 {
  margin: 0;
  color: var(--tc-green-900);
}

.submission-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--tc-green-800);
  font-weight: 800;
}

.success-panel {
  padding: 54px 0 72px;
  background: var(--tc-green-100);
}

.success-panel__inner {
  display: grid;
  gap: 18px;
  max-width: 880px;
  justify-items: start;
  background: var(--tc-white);
  border: 1px solid var(--tc-warm-200);
  border-left: 7px solid var(--tc-green-700);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.success-panel__mark {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--tc-green-700);
  color: var(--tc-white);
  font-weight: 900;
}

.success-panel h2 {
  margin: 0;
  color: var(--tc-green-900);
  font-size: 1.75rem;
  line-height: 1.2;
}

.success-panel p {
  margin: 0;
  color: var(--tc-muted);
}

.success-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin: 0;
}

.success-details div {
  border: 1px solid var(--tc-warm-200);
  border-radius: var(--radius-card);
  padding: 14px;
  background: var(--tc-cream);
}

.success-details dt {
  color: var(--tc-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.success-details dd {
  margin: 4px 0 0;
  color: var(--tc-green-900);
  font-size: 1.05rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.not-found-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.not-found {
  width: min(100% - 32px, 560px);
  display: grid;
  gap: 16px;
  justify-items: start;
  background: var(--tc-white);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.not-found__crest {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.not-found h1,
.not-found p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero-section__inner,
  .document-grid,
  .form-grid,
  .success-details {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 2.15rem;
  }

  .privacy-notice {
    max-width: 720px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, var(--max-width));
  }

  .site-header__inner {
    min-height: 74px;
  }

  .brand-mark__image {
    width: 48px;
    height: 48px;
  }

  .brand-mark__text span {
    font-size: 0.78rem;
  }

  .brand-mark__text strong {
    font-size: 0.95rem;
  }

  .hero-section {
    padding: 40px 0 46px;
  }

  .hero-copy h1 {
    font-size: 1.86rem;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .content-section,
  .portal-form {
    padding: 32px 0;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading h2 {
    font-size: 1.36rem;
  }

  .document-card__media {
    min-height: 210px;
  }

  .document-card__body,
  .privacy-notice,
  .success-panel__inner {
    padding: 20px;
  }

  .button-row,
  .file-actions,
  .file-details {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .dropzone {
    min-height: 178px;
    padding: 22px 16px;
  }

  .field-error--checkbox {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
