﻿:root {
  --paper-width: 210mm;
  --paper-min-height: 297mm;
  --ink: #181818;
  --muted: #404040;
  --teal: #079da5;
  --teal-line: #83bab8;
  --paper: #ffffff;
  --canvas: #eef2f6;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.35;
}

.page-shell {
  width: 100%;
  padding: 28px 16px;
  overflow-x: auto;
}

.document-page {
  position: relative;
  width: min(var(--paper-width), calc(100vw - 32px));
  min-height: var(--paper-min-height);
  margin: 0 auto;
  padding: 24mm 22mm 24mm;
  background: var(--paper);
  border: 1px solid #d7dce1;
  box-shadow: 0 14px 40px rgba(28, 39, 49, 0.12);
}

.letterhead {
  display: grid;
  grid-template-columns: minmax(330px, 1.28fr) minmax(260px, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 28px;
}

.company-block {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.company-logo {
  display: block;
  width: 64px;
  height: auto;
  margin-top: 2px;
}

.company-info,
.national-block {
  font-size: 13px;
  line-height: 1.22;
}

.company-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.company-info strong {
  white-space: nowrap;
}

.company-info strong,
.national-block strong {
  font-weight: 700;
}

.national-block {
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
}

.national-block span:nth-child(2) {
  font-weight: 700;
}

.separator {
  margin-top: 12px;
}

.date-line {
  width: 100%;
  margin: 18px 0 0;
  font-style: italic;
  text-align: right;
}

.date-input {
  width: 34px;
  min-height: 20px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px dotted #777;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  text-align: center;
}

h1 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
}

.recipient {
  margin: 0 0 2px;
  font-size: 17px;
}

.intro {
  max-width: 166mm;
  margin: 0 0 30px;
  font-size: 17px;
  text-align: left;
}

.info-form {
  margin: 0;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 16px;
}

.info-table th,
.info-table td {
  border: 1px solid var(--teal-line);
  vertical-align: top;
}

.info-table th {
  padding: 8px 8px;
  background: var(--teal);
  color: #ffffff;
  font-weight: 700;
  text-align: center;
}

.info-table th:first-child,
.info-table td:first-child {
  width: 10%;
  text-align: center;
}

.info-table th:nth-child(2),
.info-table td:nth-child(2) {
  width: 35%;
}

.info-table th:nth-child(3),
.info-table td:nth-child(3) {
  width: 55%;
}

.info-table td {
  min-height: 43px;
  padding: 9px 8px;
}

.info-table td:first-child {
  padding-top: 10px;
}

.info-table input,
.info-table textarea {
  display: block;
  width: 100%;
  min-height: 24px;
  margin: 0;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.35;
  outline: 0;
}

.info-table textarea {
  min-height: 58px;
  resize: vertical;
}

.info-table input:focus,
.info-table textarea:focus,
.date-input:focus {
  background: #effafa;
  box-shadow: inset 0 -2px 0 var(--teal);
}

.info-table input::placeholder,
.info-table textarea::placeholder {
  color: #8a8a8a;
  font-style: italic;
}

.note {
  margin-top: 46px;
  font-size: 17px;
}

.note p {
  margin: 0;
}

.note a {
  color: #106bd9;
}

.page-number {
  position: absolute;
  left: 50%;
  bottom: 14mm;
  transform: translateX(-50%);
  font-size: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .page-shell {
    padding: 12px;
  }

  .document-page {
    width: 100%;
    min-height: auto;
    padding: 18px 14px 64px;
  }

  .letterhead {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .national-block {
    justify-items: start;
    text-align: left;
  }

  .date-line {
    text-align: left;
  }

  .company-block {
    grid-template-columns: 58px 1fr;
  }

  .company-logo {
    width: 58px;
  }

  .intro,
  .recipient,
  .note {
    font-size: 16px;
  }

  .info-table {
    font-size: 15px;
  }

  .info-table input,
  .info-table textarea {
    font-size: 15px;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .page-shell {
    padding: 0;
    overflow: visible;
  }

  .document-page {
    width: var(--paper-width);
    min-height: var(--paper-min-height);
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  .info-table input::placeholder,
  .info-table textarea::placeholder {
    color: transparent;
  }
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-top: 22px;
}

.submit-button {
  min-width: 132px;
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid #087f86;
  border-radius: 6px;
  background: var(--teal);
  color: #ffffff;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.submit-button:hover,
.submit-button:focus-visible {
  background: #087f86;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

.form-status[data-state="success"] {
  color: #08783f;
}

.form-status[data-state="error"] {
  color: #b42318;
}

.form-status[data-state="pending"] {
  color: #7a5600;
}



@media (max-width: 720px) {
  .company-info strong {
    white-space: normal;
  }
}




.recipient em {
  font-weight: 700;
}
