/* Contact form (views/form.php): the form body is admin HTML from the panel (div.input, label, <strong>, a button with the
   legacy classes btn btn-primary pull-left, checkboxes in float:left boxes). Its markup cannot change in the view, so it
   is laid out here. Controls rendered by the view carry their own Tailwind classes. */
@layer components {
  .contact-form-body .input:empty,
  .contact-form-body .glyphicons {
    display: none;
  }
  .contact-form-body > * + * {
    margin-top: calc(var(--spacing) * 3);
  }
  /* a box with only the label sits right above the box with its field */
  .contact-form-body > .input:has(> label:only-child) + * {
    margin-top: 0;
  }
  .contact-form-body label:not([class]) {
    display: block;
    margin-bottom: calc(var(--spacing) * 1);
    font-size: var(--text-sm);
    font-weight: 500;
  }
  .contact-form-body strong {
    display: block;
    margin-top: calc(var(--spacing) * 2);
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
  }
  .contact-form-body a {
    color: var(--color-primary);
    text-decoration: underline;
  }
  .contact-form-body [style*="float"] {
    float: none !important;
  }
  .contact-form-body .pull-left,
  .contact-form-body .pull-right {
    float: none;
  }
  .contact-form-body button[type="submit"],
  .contact-form-body button:not([type]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--spacing) * 2);
    margin-top: calc(var(--spacing) * 2);
    border-radius: var(--radius-lg);
    background-color: var(--color-primary);
    padding: calc(var(--spacing) * 3) calc(var(--spacing) * 6);
    font-weight: 600;
    color: var(--color-primary-foreground);
    cursor: pointer;
  }
  .contact-form-body button[type="submit"]:hover,
  .contact-form-body button:not([type]):hover {
    background-color: color-mix(in oklab, var(--color-primary) 90%, transparent);
  }
  .contact-form-body button[aria-busy="true"] {
    opacity: 0.7;
    cursor: progress;
  }
  @media (max-width: 39.99rem) {
    .contact-form-body button[type="submit"],
    .contact-form-body button:not([type]) {
      width: 100%;
    }
  }
}
