/* /pr-templates/ signup page (pr-templates/index.php), on the legal pages' layout. Loaded after legal-v9.css.
   Reuses legal-v9's cards, green-tick list, eyebrow and secondary pill button, and the $25 popup's
   form fields (.email-field, .gdpr_checkbox) and gradient button. */

/* two cards: the template list on the left, the form on the right */
body.bp-prt-page #bp-legal .bp-prt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 25rem);
  column-gap: clamp(1.5rem, 4vw, 3rem);
  row-gap: var(--card-gap, 1.5rem);
  align-items: start;
}
body.bp-prt-page #bp-legal .bp-prt-list-card {
  grid-column: 1;
  grid-row: 1;
}
body.bp-prt-page #bp-legal .bp-prt-form-card {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  scroll-margin-top: 7rem; /* below the floating desktop bar when the success panel scrolls into view */
}
/* desktop: the cards start a little higher, over the white end of the hero curve, so the form's button is in the
   first screen at 1440x900. z-index keeps them above the curve (z-index 1 inside the hero). */
@media (min-width: 992px) {
  body.bp-prt-page #bp-legal .bp-prt-layout {
    position: relative;
    z-index: 3;
    margin-top: -3rem;
  }
}

/* the 16 names: two columns, read top to bottom */
body.bp-prt-page #wrap #bp-legal .bp-prt-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(8, auto);
  grid-auto-flow: column;
  column-gap: var(--space-6, 1.5rem);
  margin: 0;
}
body.bp-prt-page #wrap #bp-legal .bp-prt-list > li {
  margin: 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--legal-rule);
  color: var(--legal-ink);
  font-size: var(--text-base, 1rem);
  line-height: 1.5;
}
body.bp-prt-page #wrap #bp-legal .bp-prt-list > li:nth-child(8),
body.bp-prt-page #wrap #bp-legal .bp-prt-list > li:nth-child(16) {
  border-bottom: 0;
}
body.bp-prt-page #bp-legal .bp-prt-list .bp-legal-check {
  margin-top: 0.0625rem;
}

/* form: the popup's fields, with visible labels */
body.bp-prt-page #wrap #bp-legal .bp-prt-form p {
  margin: 0 0 var(--space-4, 1rem);
}
body.bp-prt-page #wrap #bp-legal .bp-prt-field label {
  display: block;
  margin: 0 0 0.375rem;
  color: var(--legal-ink);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  line-height: 1.4;
}
body.bp-prt-page #wrap #bp-legal .bp-prt-field .email-field {
  display: block;
  min-height: 3rem;
  color: var(--legal-ink);
  font-size: 1rem;
  background: #fff;
}
body.bp-prt-page #wrap #bp-legal .bp-prt-field .email-field:focus {
  border-color: var(--legal-link);
  box-shadow: 0 0 0 3px rgba(2, 135, 237, 0.15);
}
body.bp-prt-page #wrap #bp-legal .bp-prt-consent label {
  display: flex;
  align-items: flex-start;
  margin: 0;
  color: var(--legal-body);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
}
body.bp-prt-page #wrap #bp-legal .bp-prt-consent .gdpr_checkbox {
  flex: 0 0 auto;
  float: none;
  margin-top: 0 !important;
}
body.bp-prt-page #wrap #bp-legal .bp-prt-form button[type="submit"] {
  margin-top: var(--space-2, 0.5rem);
}
body.bp-prt-page #wrap #bp-legal .bp-prt-form button[type="submit"] .btn-txt {
  font-size: var(--text-md, 1.0625rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}
body.bp-prt-page #wrap #bp-legal .bp-prt-form button[disabled] {
  opacity: 0.7;
  cursor: progress;
}
body.bp-prt-page #wrap #bp-legal .bp-prt-note {
  color: var(--legal-body);
}
/* SendFox's form.js appends these; the popup shows the same text */
body.bp-prt-page #wrap #bp-legal .bp-prt-form .sendfox-message {
  margin: var(--space-3, 0.75rem) 0 0;
  font-size: var(--text-sm, 0.875rem);
  line-height: 1.45;
}
body.bp-prt-page #wrap #bp-legal .bp-prt-form .sendfox-message.error {
  color: #c62828;
}

/* after signup */
body.bp-prt-page #wrap #bp-legal .bp-prt-ready h2 {
  margin: 0 0 var(--space-6, 1.5rem);
  font-size: var(--text-2xl, 1.5rem) !important;
}
body.bp-prt-page #wrap #bp-legal .bp-prt-ready h2:focus {
  outline: none;
}
body.bp-prt-page #wrap #bp-legal .bp-prt-ready-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3, 0.75rem);
}
body.bp-prt-page #wrap #bp-legal .bp-prt-ready-actions .btn {
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
}
body.bp-prt-page #wrap #bp-legal .bp-prt-ready-actions .btn .btn-txt {
  font-size: var(--text-md, 1.0625rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}
body.bp-prt-page #wrap #bp-legal .bp-prt-ready-actions .btn .btn-txt .far {
  margin-right: 0.5rem;
}
body.bp-prt-page #wrap #bp-legal .bp-prt-ready-actions .bp-legal-btn-secondary {
  justify-content: center;
  margin-top: 0;
  text-decoration: none;
}
body.bp-prt-page #wrap #bp-legal .bp-prt-ready-note {
  margin: var(--space-6, 1.5rem) 0 0;
  color: var(--legal-body);
  font-size: var(--text-sm, 0.9375rem);
  line-height: 1.6;
}
body.bp-prt-page #wrap #bp-legal .bp-prt-ready-note strong {
  color: var(--legal-ink);
  font-weight: 700;
}
body.bp-prt-page #wrap #bp-legal .bp-prt-ready-note a {
  color: var(--legal-link);
  font-weight: 600;
}
body.bp-prt-page #wrap #bp-legal .bp-prt-ready-note a:hover {
  color: var(--legal-link-hover);
}

/* tablets and phones: one column, the form first */
@media (max-width: 991px) {
  body.bp-prt-page #bp-legal .bp-prt-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  body.bp-prt-page #bp-legal .bp-prt-form-card {
    grid-column: 1;
    grid-row: 1;
    scroll-margin-top: calc(var(--m-header-h, 73px) + 1rem);
  }
  body.bp-prt-page #bp-legal .bp-prt-list-card {
    grid-column: 1;
    grid-row: 2;
  }
}

/* phones: the list in one column */
@media (max-width: 575px) {
  body.bp-prt-page #wrap #bp-legal .bp-prt-list {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-flow: row;
  }
  body.bp-prt-page #wrap #bp-legal .bp-prt-list > li:nth-child(8) {
    border-bottom: 1px solid var(--legal-rule);
  }
}
