.card-page .page-header h1 { max-width: none; font-size: clamp(2.2rem, 5.5vw, 4rem); }

.generator { display: grid; gap: 2rem; margin-bottom: 4rem; }
.card-preview { display: grid; gap: 1.5rem; align-content: start; order: -1; }
.card-preview h2, .card-form h2 { margin: 0 0 0.25rem; font-size: 1.15rem; letter-spacing: 0; }
.card-side-label { margin: 0 0 0.4rem; color: var(--ink-muted); font-size: 0.85rem; font-weight: 700; }
.cards { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.cut { flex: 0 1 26rem; min-width: 0; }

.card-form { display: grid; gap: 1.25rem; align-content: start; }
.card-form fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 0.75rem; }
.card-form legend { padding: 0; margin-bottom: 0.5rem; color: var(--ink); font-weight: 760; }
.card-form .row { display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
.card-form label { display: grid; gap: 0.3rem; color: var(--ink); font-size: 0.95rem; font-weight: 650; }
.card-form input {
  width: 100%; min-height: 2.9rem; padding: 0.6rem 0.8rem;
  border: 1px solid var(--line); border-radius: 0.75rem;
  background: var(--white); color: var(--ink); font: inherit; font-weight: 450;
}
.card-form input:focus-visible { outline: none; box-shadow: var(--focus); }
.card-form .hint { margin: 0; color: var(--ink-muted); font-size: 0.9rem; }
.card-form button.button { width: 100%; font: inherit; font-weight: 760; cursor: pointer; }
.card-form button.button:focus-visible { outline: none; box-shadow: var(--focus); }

.card-notes ol { padding-left: 1.2rem; }
.card-notes li { margin-bottom: 0.4rem; }
.related-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 2rem; }

@media (min-width: 60rem) {
  .generator { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; }
  .card-preview { order: 0; position: sticky; top: 1.5rem; }
  .card-form .row { grid-template-columns: 1fr 1fr; }
}

/* The card. 100cqw is the card width (85.6 mm), so it scales from phone to print. */
.card-wrap { container-type: inline-size; width: 100%; }
.card {
  --red: #f5292e; --navy: #0a2a3b; --mint-card: #e8f7f2; --teal-dark: #087168;
  display: flex; flex-direction: column; box-sizing: border-box;
  width: 100%; aspect-ratio: 85.6 / 54; overflow: hidden;
  border: 0.9cqw solid var(--red); border-radius: 2.6cqw;
  background: #fff; color: var(--navy);
  box-shadow: 0 0.6rem 1.4rem rgba(16, 36, 46, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.2;
}
.card-head { flex: 0 0 41%; display: flex; align-items: center; justify-content: space-between; padding: 0 4cqw; background: var(--red); color: #fff; font-weight: 900; line-height: 1.1; }
.card-head b { display: block; }
.card-head .l1 { font-size: 7cqw; }
.card-head .l2 { font-size: 3.8cqw; margin-top: 0.4cqw; }
.card-head .l3 { font-size: 4.6cqw; }
.card-paw { width: 11cqw; height: 11cqw; fill: var(--navy); flex: none; }
.card-call { flex: 0 0 13%; display: flex; align-items: center; justify-content: center; padding: 0 3cqw; text-align: center; font-size: 3.2cqw; font-weight: 700; border-bottom: 0.15cqw solid rgba(10, 42, 59, 0.15); }

/* Write-in lines: about 7 mm of writing height above each line on the printed card. */
.card-lines { flex: 1; display: flex; flex-direction: column; padding: 0 4cqw 2.4cqw; }
.write { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding-top: 1cqw; }
.write-label { font-size: 2.2cqw; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: rgba(10, 42, 59, 0.6); }
.write-line { display: block; min-height: 5.2cqw; padding: 0 0.6cqw 0.4cqw; border-bottom: 0.25cqw solid rgba(10, 42, 59, 0.55); font-size: 3.4cqw; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.card-bar { flex: 0 0 14%; display: flex; align-items: center; justify-content: space-between; gap: 2cqw; padding: 0 3cqw; background: var(--navy); color: #fff; }
.card-bar b { font-size: 3.9cqw; font-weight: 900; }
.card-bar span { font-size: 2.5cqw; font-weight: 650; }
.card-rows { flex: 1; display: flex; flex-direction: column; padding: 0 3cqw 0.6cqw; }
.card-row { flex: 1; display: flex; align-items: flex-end; gap: 2.4cqw; padding-bottom: 1.4cqw; }
.card-num { flex: none; align-self: center; width: 4.6cqw; height: 4.6cqw; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 2.9cqw; font-weight: 800; }
.card-row .write { height: 100%; }
.write--name { flex: 1.15; }
.write--phone { flex: 1; }
.card-foot { flex: 0 0 6%; display: grid; place-items: center; background: var(--teal-dark); color: #fff; font-size: 2.3cqw; font-weight: 800; }

@media print {
  @page { size: A4; margin: 10mm; }
  html, body { background: #fff; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header, .footer, .no-print, .container > *:not(.generator), .card-form, .card-side-label { display: none !important; }
  .page { padding: 0; }
  .container { width: auto; }
  .generator, .card-preview { display: block; margin: 0; position: static; }
  .cards { display: flex; flex-wrap: nowrap; gap: 0; }
  .cut {
    flex: none; width: calc(85.6mm + 8mm); padding: 4mm; box-sizing: border-box;
    background:
      linear-gradient(#000 0 0) left 3.9mm top 0 / 0.2mm 2.5mm no-repeat,
      linear-gradient(#000 0 0) left 0 top 3.9mm / 2.5mm 0.2mm no-repeat,
      linear-gradient(#000 0 0) right 3.9mm top 0 / 0.2mm 2.5mm no-repeat,
      linear-gradient(#000 0 0) right 0 top 3.9mm / 2.5mm 0.2mm no-repeat,
      linear-gradient(#000 0 0) left 3.9mm bottom 0 / 0.2mm 2.5mm no-repeat,
      linear-gradient(#000 0 0) left 0 bottom 3.9mm / 2.5mm 0.2mm no-repeat,
      linear-gradient(#000 0 0) right 3.9mm bottom 0 / 0.2mm 2.5mm no-repeat,
      linear-gradient(#000 0 0) right 0 bottom 3.9mm / 2.5mm 0.2mm no-repeat;
  }
  .card-wrap { width: 85.6mm; }
  .card { box-shadow: none; }
}
.faq-heading { margin-top: 3rem; font-size: clamp(1.65rem, 3vw, 2.4rem); letter-spacing: -0.035em; }
