:root {
  --ink: #111111;
  --muted: #676f7a;
  --line: #d8dee8;
  --paper: #ffffff;
  --panel: #f7fbfc;
  --navy: #111111;
  --blue: #f7559a;
  --green: #16c7e8;
  --amber: #c17716;
  --danger: #f04438;
  --shadow: 0 18px 44px rgba(23, 32, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  background: #eef2f7;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

a {
  color: inherit;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.sheet {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.brand-strip {
  height: 8px;
  background: linear-gradient(90deg, var(--blue), var(--green) 52%, #255cff);
}

.header {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 34px 38px 26px;
  border-bottom: 1px solid var(--line);
}

.header > div {
  min-width: 0;
}

.logo {
  display: block;
  width: min(220px, 100%);
  height: auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.subtitle {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 22px 38px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.meta-field {
  min-width: 0;
}

.meta-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.meta-input,
.field-input,
.field-textarea {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #cbd3df;
  border-radius: 7px;
  font: inherit;
}

.meta-input {
  height: 38px;
  padding: 8px 10px;
}

.content {
  min-width: 0;
  padding: 30px 38px 38px;
}

.section {
  min-width: 0;
  break-inside: avoid;
  margin-bottom: 30px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-title {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 1.18rem;
}

.section-index {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #ffffff;
  background: var(--navy);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
}

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

.field {
  min-width: 0;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

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

.field-label {
  min-width: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.required {
  flex: 0 0 auto;
  padding: 2px 7px;
  color: #ffffff;
  background: var(--danger);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}

.optional {
  flex: 0 0 auto;
  padding: 2px 7px;
  color: var(--muted);
  background: #edf1f6;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}

.field-input {
  height: 42px;
  padding: 9px 11px;
}

.field-textarea {
  min-height: 82px;
  resize: vertical;
  padding: 10px 11px;
}

.hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.choice {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid #d7dee8;
  border-radius: 7px;
  font-size: 0.82rem;
}

.check {
  width: 13px;
  height: 13px;
  border: 1.5px solid #8b98a9;
  border-radius: 3px;
  background: #ffffff;
}

.notice {
  margin: 0 0 26px;
  padding: 16px 18px;
  background: #f5fbf8;
  border: 1px solid #cfeadf;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  color: #22543f;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 30px 38px 38px;
}

.form-card {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-decoration: none;
}

.form-card:hover {
  border-color: #9bbbe5;
  box-shadow: 0 10px 24px rgba(23, 52, 92, 0.09);
}

.card-kicker {
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-title {
  margin: 10px 0 8px;
  color: var(--navy);
  font-size: 1.34rem;
}

.card-copy {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.card-action {
  margin-top: 22px;
  color: var(--green);
  font-weight: 800;
}

.footer {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 18px 38px;
  color: var(--muted);
  background: var(--panel);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

@media (max-width: 760px) {
  .page {
    padding: 0;
  }

  .sheet {
    border-width: 0;
    box-shadow: none;
  }

  .header,
  .meta-grid,
  .content,
  .cards,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .meta-grid,
  .fields,
  .cards {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}

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

  .page {
    max-width: none;
    padding: 0;
  }

  .sheet {
    border: 0;
    box-shadow: none;
  }

  .form-card:hover {
    box-shadow: none;
  }

  .field,
  .form-card,
  .notice {
    break-inside: avoid;
  }

  .meta-input,
  .field-input,
  .field-textarea {
    border-color: #aeb8c7;
  }
}
