/* Shared styling for the copy inside every order form.
 *
 * Stamped into nine pages by tools/apply-form-notice.js, which also adds the
 * link to this file. Kept separate from service-page.css because the homepage
 * does not load that stylesheet, and separate from site-nav.css because this
 * is form content rather than navigation.
 *
 * Colours are literals, not var(--muted). That variable is #7f7f9b on the
 * homepage but still #5a5a72 in service-page.css, which fails the 4.5:1
 * contrast minimum -- inheriting it would make this text fail on eight of the
 * nine pages. #8b8ba8 is 5.71:1 against the darkest background here and
 * 5.71:1 against the form panel, so it passes wherever the block lands.
 */

.pay-line {
  margin: 1.4rem 0 0;
  padding: .75rem .95rem;
  background: rgba(0, 245, 195, .06);
  border: 1px solid rgba(0, 245, 195, .18);
  border-radius: 2px;
  color: #00f5c3;          /* 12.06:1 on the tinted panel */
  font-size: .78rem;
  line-height: 1.6;
}

/* The pay line belongs to the button it sits above, so it should not inherit
   the centred alignment some form rows use. */
[dir=rtl] .pay-line { text-align: right; }

@media (max-width: 600px) {
  .pay-line { font-size: .74rem; padding: .65rem .8rem; }
}

/* ── Guidance + privacy notice, directly above a form's fields ───────────── */

.form-guide { margin: 0 0 1.8rem; }

.form-guide-copy {
  color: #8b8ba8;           /* 5.71:1 on the form panel; see the note above */
  font-size: .82rem;
  line-height: 1.7;
  margin: 0 0 .9rem;
}

/* Deliberately louder than the guidance above it. Someone about to paste a
   contract or a customer list into a free-text box should not have to hunt
   for this. */
.form-privacy {
  position: relative;
  margin: 0;
  padding: .7rem .9rem .7rem 2.1rem;
  background: rgba(255, 255, 255, .035);
  border-left: 2px solid #00f5c3;
  border-radius: 2px;
  color: var(--text);
  font-size: .78rem;
  line-height: 1.6;
}

/* The mark is drawn, not marked up: the translation swap assigns textContent
   and would delete a child element the first time the language changed. */
.form-privacy::before {
  content: '\26A0';
  position: absolute;
  left: .78rem;
  top: .72rem;
  color: #00f5c3;
  font-size: .8rem;
}

[dir=rtl] .form-privacy {
  padding: .7rem 2.1rem .7rem .9rem;
  border-left: none;
  border-right: 2px solid #00f5c3;
}
[dir=rtl] .form-privacy::before { left: auto; right: .78rem; }

@media (max-width: 600px) {
  .form-guide-copy { font-size: .79rem; }
  .form-privacy { font-size: .75rem; }
}
