:root {
  color-scheme: light;
  --amzito-red: #dc2b1c;
  --amzito-red-dark: #b92317;
  --bs-danger: var(--amzito-red);
  --bs-danger-rgb: 220, 43, 28;
  --bs-link-color: #a92318;
  --bs-link-hover-color: #7f1b13;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: #f8f9fa;
  color: #212529;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--bs-link-color);
}

a:hover {
  color: var(--bs-link-hover-color);
}

.site-header {
  border-bottom: 1px solid #dee2e6;
  background: #fff;
}

.header-inner {
  display: flex;
  width: min(calc(100% - 32px), 1040px);
  min-height: 68px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: var(--bs-border-radius);
  color: #495057;
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover {
  background: #f1f3f5;
  color: #212529;
}

.site-nav a[aria-current="page"] {
  background: #e9ecef;
  color: #212529;
  font-weight: 600;
}

.hero,
.page-shell {
  width: min(calc(100% - 32px), 960px);
  margin-right: auto;
  margin-left: auto;
}

.hero {
  padding: 48px 0 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #6c757d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: #212529;
  line-height: 1.25;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
}

.lead {
  max-width: 760px;
  margin: 14px 0 0;
  color: #6c757d;
  font-size: 18px;
  line-height: 1.55;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 18px;
  color: #6c757d;
  font-size: 14px;
}

.document,
.legal-links .card {
  border: 1px solid #dee2e6;
  border-radius: var(--bs-border-radius);
  background: #fff;
}

.document {
  margin-bottom: 40px;
  padding: clamp(24px, 5vw, 48px);
}

.document section {
  scroll-margin-top: 20px;
}

.document section + section {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid #dee2e6;
}

.document h2 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 600;
}

.document h3 {
  margin: 26px 0 10px;
  font-size: 19px;
  font-weight: 600;
}

.document p {
  margin: 12px 0;
}

.document ul,
.document ol {
  padding-left: 1.4rem;
}

.document li + li {
  margin-top: 6px;
}

.note {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid #f1aeb5;
  border-left: 4px solid var(--amzito-red);
  border-radius: var(--bs-border-radius);
  background: #f8d7da;
}

.note.success {
  border-color: #a3cfbb;
  border-left-color: #198754;
  background: #d1e7dd;
}

.note.warning {
  border-color: #ffe69c;
  border-left-color: #ffc107;
  background: #fff3cd;
}

.note p:first-child {
  margin-top: 0;
}

.note p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid #dee2e6;
  border-radius: var(--bs-border-radius);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #dee2e6;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f8f9fa;
  font-weight: 600;
}

tr:last-child td {
  border-bottom: 0;
}

.contact-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.contact-item {
  padding: 14px 16px;
  border: 1px solid #dee2e6;
  border-radius: var(--bs-border-radius);
  background: #f8f9fa;
}

.contact-item span {
  display: block;
  margin-bottom: 2px;
  color: #6c757d;
  font-size: 13px;
}

.steps {
  margin: 20px 0 0;
  padding-left: 2.25rem;
}

.steps li {
  padding: 8px 12px;
}

.steps li::marker {
  color: #6c757d;
  font-weight: 700;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: #343a40;
  font-size: 14px;
  font-weight: 600;
}

textarea.form-control {
  min-height: 112px;
  resize: vertical;
}

.form-control:focus,
.form-check-input:focus {
  border-color: #e58179;
  box-shadow: 0 0 0 0.25rem rgb(220 43 28 / 18%);
}

.form-check-input:checked {
  border-color: var(--amzito-red);
  background-color: var(--amzito-red);
}

.field-help {
  margin: 0;
  color: #6c757d;
  font-size: 13px;
}

.check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dee2e6;
  border-radius: var(--bs-border-radius);
  background: #f8f9fa;
}

.check-row .form-check-input {
  margin-top: 3px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.btn-danger {
  --bs-btn-bg: var(--amzito-red);
  --bs-btn-border-color: var(--amzito-red);
  --bs-btn-hover-bg: var(--amzito-red-dark);
  --bs-btn-hover-border-color: var(--amzito-red-dark);
  --bs-btn-active-bg: var(--amzito-red-dark);
  --bs-btn-active-border-color: var(--amzito-red-dark);
}

.form-status {
  display: none;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid #a3cfbb;
  border-radius: var(--bs-border-radius);
  background: #d1e7dd;
  color: #0a3622;
  font-size: 14px;
}

.form-status.visible {
  display: block;
}

.form-status.warning {
  border-color: #ffe69c;
  background: #fff3cd;
  color: #664d03;
}

.prepared-request {
  display: none;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #dee2e6;
  border-radius: var(--bs-border-radius);
  background: #f8f9fa;
}

.prepared-request.visible {
  display: block;
}

.prepared-request textarea {
  margin-top: 6px;
  background: #fff;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 14px;
}

.prepared-request .field-help {
  margin-top: 8px;
}

.legal-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.legal-links .card {
  padding: 24px;
}

.legal-links h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
}

.legal-links p {
  margin: 0 0 20px;
  color: #6c757d;
}

.site-footer {
  padding: 8px 16px 36px;
  color: #6c757d;
  font-size: 13px;
  text-align: center;
}

.site-footer p {
  margin: 4px 0;
}

.site-footer a {
  color: inherit;
}

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

  .brand img {
    width: 126px;
  }

  .site-nav a {
    padding: 7px;
    font-size: 13px;
  }

  .site-nav .nav-home {
    display: none;
  }

  .hero {
    padding-top: 36px;
  }

  .contact-box,
  .form-grid,
  .legal-links {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }
}

@media (max-width: 460px) {
  .header-inner,
  .hero,
  .page-shell {
    width: calc(100% - 24px);
  }

  .brand img {
    width: 112px;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a {
    font-size: 12px;
  }

  .document {
    padding: 20px 16px;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }
}

@media print {
  body {
    background: #fff;
    font-size: 12px;
  }

  .site-header,
  .site-footer,
  .actions {
    display: none;
  }

  .hero {
    padding: 20px 0;
  }

  .document {
    padding: 0;
    border: 0;
  }

  a {
    color: inherit;
  }
}
