/* The proposal-PDF modal printed in header.php.

   The form inside is an ordinary .contact-form, so its fields, focus ring,
   submit button and messages come from kbh-site.css and kbh-cf7.css exactly
   as the main contact form has them. What is here is the box around it, and
   one column instead of two: three short fields in a narrow box read better
   stacked. kbh-site.css is not edited -- see HANDOFF.md. */

.pdf-modal {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(28px, 4vw, 44px);
  border: 0;
  border-top: 6px solid var(--orange);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  overflow-y: auto;
}
.pdf-modal::backdrop { background: rgba(35, 35, 35, .62); }

.pdf-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.pdf-modal__close:hover,
.pdf-modal__close:focus-visible { color: var(--orange); }

.pdf-modal__title {
  margin: 0 40px 10px 0;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.2;
}
.pdf-modal__intro {
  margin: 0 0 22px;
  color: var(--ink-2);
  font-size: 17.25px;
  line-height: 1.5;
}

/* One column, every field full width. */
.pdf-modal .contact-form { grid-template-columns: minmax(0, 1fr); max-width: none; }
.pdf-modal .form-foot { flex-direction: column; align-items: stretch; }
.pdf-modal .contact-form input[type="submit"] { width: 100%; }

/* The consent line: a checkbox and a sentence, not a stacked field.
   CF7 renders [acceptance] as
   span.wpcf7-acceptance > span.wpcf7-list-item > label > input + span,
   and its own stylesheet indents .wpcf7-list-item by 1em. */
.pdf-modal .pdf-consent { grid-column: 1 / -1; }
.pdf-modal .pdf-consent .wpcf7-list-item { display: block; margin: 0; }
.pdf-modal .pdf-consent label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.45;
}
.pdf-modal .pdf-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--orange);
}
.pdf-modal__done .btn { width: 100%; }

/* The hero's three buttons as one column, all as wide as the widest (the
   orange one). inline-grid sizes the column to its widest item and stretches
   the rest to match; max-width keeps it inside a phone screen, where long
   labels wrap instead. */
.hero .hero-actions {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 100%;
}
.hero .hero-actions .btn { width: 100%; white-space: normal; text-align: center; }
/* On a phone kbh-site.css already runs every button full width; keep that. */
@media (max-width: 560px) {
  .hero .hero-actions { display: grid; }
}

/* A two-line button: a small lead-in above the main label, for an offer too
   long to read as one uppercase line ("ask us about your clinic's" /
   "FREE US VISIBILITY CHECK"). Each line still keeps to itself, as
   .cta-panel .btn asks; only the stacking is new. */
.btn-2line {
  flex-direction: column;
  gap: 4px;
  padding-block: 12px 14px;
  line-height: 1.2;
  text-align: center;
}
.btn-2line .btn-lead {
  font-size: 0.68em;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.75;
}
