:root {
  --blue: #1467a8;
  --blue-dark: #0b456f;
  --navy: #12354f;
  --ink: #1e2b36;
  --muted: #687783;
  --line: #d9e1e7;
  --line-dark: #c4cfd8;
  --page: #f3f5f7;
  --surface: #fff;
  --success: #197451;
  --danger: #b42332;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #fff;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, var(--tblr-font-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  -webkit-font-smoothing: antialiased;
}

.site-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--blue-dark);
  border-radius: 3px;
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

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

.site-header {
  background: var(--tblr-bg-surface-secondary, #f6f8fb);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 190px;
  height: auto;
}

.header-datetime {
  color: #566573;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.portal-main {
  flex: 1;
  padding: 52px 0 48px;
  background: #fff;
}

.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 27px;
}

.page-overline,
.section-label {
  display: block;
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 780;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.page-overline {
  font-size: 0.74rem;
  letter-spacing: 0.025em;
  text-transform: none;
}

.page-intro h1 {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 730;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.page-intro p {
  max-width: none;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.portal-card {
  position: relative;
  display: grid;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  box-shadow: 0 12px 34px rgba(25, 49, 68, 0.07);
  grid-template-columns: minmax(0, 1.42fr) minmax(350px, 0.85fr);
}

.verification-area {
  padding: 46px 50px 38px;
  border-top: 4px solid var(--blue);
}

.section-heading h2,
.information-area h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 720;
  letter-spacing: -0.018em;
  line-height: 1.3;
}

.section-heading > p {
  max-width: 670px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.62;
}

.location-list {
  display: grid;
  margin: 12px 0 0;
  padding: 0;
  gap: 6px;
  color: #526572;
  font-size: 0.75rem;
  line-height: 1.5;
  list-style: none;
}

.location-list li {
  position: relative;
  padding-left: 17px;
}

.location-list li::before {
  position: absolute;
  top: 0.6em;
  left: 1px;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--blue);
  border-radius: 50%;
}

.section-heading > .exact-note {
  margin-top: 11px;
  color: #334957;
  font-weight: 700;
}

.verification-form {
  margin-top: 29px;
}

.field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.form-label {
  margin: 0;
  color: #263744;
  font-size: 0.78rem;
  font-weight: 720;
}

.field-heading > span {
  color: #7a8792;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-row {
  display: grid;
  align-items: stretch;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.document-input-wrap {
  position: relative;
}

.document-input {
  height: 56px;
  padding: 0 46px 0 17px;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid #aebbc5;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.document-input:focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 103, 168, 0.12);
}

.document-input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 50, 0.1);
}

.clear-input {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #73818c;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  transform: translateY(-50%);
}

.clear-input:hover,
.clear-input:focus-visible {
  color: var(--ink);
  background: #e9eef2;
  outline: none;
}

.verify-button {
  display: inline-flex;
  min-width: 205px;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-inline: 21px;
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 720;
}

.verify-button:hover,
.verify-button:focus {
  color: #fff;
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.verify-button span {
  font-size: 1.05rem;
}

.form-meta {
  display: flex;
  min-height: 31px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-top: 8px;
}

.form-hint,
.form-message {
  margin: 0;
  font-size: 0.67rem;
  line-height: 1.5;
}

.form-hint {
  color: #7a8792;
}

.form-message {
  font-weight: 650;
  text-align: right;
}

.form-message.is-error {
  color: var(--danger);
}

.form-message.is-ready {
  color: var(--success);
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 23px;
  padding: 15px 16px;
  background: #f1f6f9;
  border-left: 3px solid #7196b1;
}

.privacy-mark {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 13px;
  height: 11px;
  margin-top: 5px;
  border: 1.5px solid #537590;
  border-radius: 2px;
}

.privacy-mark::before {
  position: absolute;
  top: -7px;
  left: 2px;
  width: 7px;
  height: 8px;
  content: "";
  border: 1.5px solid #537590;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.privacy-note strong {
  display: block;
  margin-bottom: 2px;
  color: #344b5d;
  font-size: 0.71rem;
  font-weight: 720;
}

.privacy-note p {
  margin: 0;
  color: #637582;
  font-size: 0.68rem;
  line-height: 1.5;
}

.information-area {
  padding: 46px 36px 36px;
  background: #f7f9fa;
  border-top: 4px solid #85b8da;
  border-left: 1px solid var(--line);
}

.verification-steps {
  margin: 27px 0 0;
  padding: 0;
  list-style: none;
}

.verification-steps li {
  position: relative;
  display: grid;
  gap: 13px;
  padding-bottom: 22px;
  grid-template-columns: 28px 1fr;
}

.verification-steps li:not(:last-child)::after {
  position: absolute;
  top: 28px;
  bottom: 3px;
  left: 13px;
  width: 1px;
  content: "";
  background: #ccd6de;
}

.verification-steps li > span {
  display: grid;
  width: 28px;
  height: 28px;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid #b8c7d2;
  border-radius: 50%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 800;
  place-items: center;
}

.verification-steps strong {
  display: block;
  margin-bottom: 3px;
  color: #2a3a47;
  font-size: 0.75rem;
  font-weight: 720;
}

.verification-steps p {
  margin: 0;
  color: #71808b;
  font-size: 0.68rem;
  line-height: 1.5;
}

.documents-section {
  margin-top: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.documents-heading {
  padding: 27px 32px;
  color: #dce9f2;
  background: #173b56;
}

.documents-heading h2,
.benefits-heading h2 {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 720;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.documents-heading .section-label {
  color: #8fc2e3;
}

.documents-heading h2 {
  color: #fff;
}

.document-catalogue {
  display: grid;
  margin: 0;
  padding: 0;
  counter-reset: document-item;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.document-catalogue li {
  position: relative;
  display: flex;
  min-height: 68px;
  min-width: 0;
  align-items: center;
  padding: 14px 22px 14px 62px;
  color: #50626f;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  counter-increment: document-item;
  font-size: 0.72rem;
  font-weight: 620;
  line-height: 1.5;
}

.document-catalogue li::before {
  position: absolute;
  top: 50%;
  left: 23px;
  color: #4f88ad;
  content: counter(document-item, decimal-leading-zero);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transform: translateY(-50%);
}

.document-catalogue li:nth-child(3n) {
  border-right: 0;
}

.document-catalogue li:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.portal-benefits {
  display: grid;
  margin-top: 16px;
  padding: 30px 38px;
  color: #dfeaf2;
  background: #173b56;
  border-radius: 3px;
  gap: 38px;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.65fr);
}

.portal-benefits .section-label {
  color: #8dc1e4;
}

.benefits-heading h2 {
  color: #fff;
}

.portal-benefits ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 13px 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
}

.portal-benefits li {
  position: relative;
  padding-left: 22px;
  color: #d8e5ee;
  font-size: 0.7rem;
  line-height: 1.5;
}

.portal-benefits li::before {
  position: absolute;
  top: -1px;
  left: 0;
  color: #77b8df;
  content: "✓";
  font-size: 0.83rem;
  font-weight: 800;
}

.site-footer {
  color: #75828c;
  background: var(--tblr-bg-surface-secondary, #f6f8fb);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.7rem;
}

.footer-inner nav {
  display: flex;
  gap: 22px;
}

@media (max-width: 991.98px) {
  .portal-card {
    grid-template-columns: 1fr;
  }

  .information-area {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .verification-steps {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
  }

  .verification-steps li {
    padding-bottom: 0;
  }

  .verification-steps li:not(:last-child)::after {
    display: none;
  }

  .portal-benefits {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .document-catalogue {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-catalogue li:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .document-catalogue li:nth-child(2n) {
    border-right: 0;
  }

  .document-catalogue li:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .document-catalogue li:last-child {
    border-bottom: 0;
  }
}

@media (min-width: 1200px) {
  .page-intro p {
    white-space: nowrap;
  }
}

@media (max-width: 767.98px) {
  .header-inner {
    min-height: 76px;
  }

  .brand img {
    width: 158px;
  }

  .header-datetime {
    font-size: 0.66rem;
  }

  .portal-main {
    padding: 34px 0 32px;
    background: #fff;
  }

  .page-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 21px;
  }

  .page-intro h1 {
    font-size: 1.35rem;
  }

  .page-intro p {
    font-size: 0.8rem;
  }

  .verification-area,
  .information-area {
    padding: 34px 24px 29px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .verify-button {
    width: 100%;
  }

  .form-meta {
    min-height: 42px;
    flex-direction: column;
    gap: 5px;
  }

  .form-message {
    text-align: left;
  }

  .verification-steps {
    display: block;
  }

  .verification-steps li {
    padding-bottom: 21px;
  }

  .verification-steps li:not(:last-child)::after {
    display: block;
  }

  .documents-heading,
  .portal-benefits {
    padding: 28px 24px;
  }

  .portal-benefits ul {
    grid-template-columns: 1fr;
  }

  .document-catalogue {
    grid-template-columns: 1fr;
  }

  .document-catalogue li,
  .document-catalogue li:nth-child(2n),
  .document-catalogue li:nth-child(3n) {
    border-right: 0;
  }

  .document-catalogue li:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .document-catalogue li:last-child {
    border-bottom: 0;
  }

  .footer-inner {
    min-height: 96px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
  }
}

@media (max-width: 430px) {
  .header-datetime {
    max-width: 142px;
    line-height: 1.4;
    text-align: right;
    white-space: normal;
  }

  .field-heading > span {
    display: none;
  }

  .footer-inner nav {
    flex-wrap: wrap;
    gap: 12px;
  }
}

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