.ms-pdf-form { max-width:640px; margin:1.5rem 0; }
.ms-pdf-form label { display:block; margin-bottom:.4rem; font-weight:600; }
.ms-pdf-form input:not([type="hidden"]), .ms-pdf-form select { width:100%; box-sizing:border-box; min-height:44px; padding:10px 12px; border:1px solid #999; border-radius:4px; background:#fff; color:#222; font:inherit; }
.ms-pdf-form p { margin:0 0 1rem; }
.ms-pdf-form .ms-pdf-phrase { font-size:.9em; line-height:1.5; }
.ms-pdf-form button { padding:12px 20px; cursor:pointer; }
.ms-pdf-form button:disabled { opacity:.65; cursor:wait; }
.ms-pdf-form .ms-pdf-trap { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.ms-pdf-form .ms-pdf-message:not(:empty) { margin-top:1rem; padding:12px; border:1px solid #999; border-radius:4px; }
.ms-pdf-form :focus-visible { outline:2px solid #1766a0; outline-offset:3px; }

.ms-pdf-form select {
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
  padding-right:44px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M1 1h10L6 7z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 16px center;
  background-size:12px 8px;
  cursor:pointer;
}
@media (forced-colors:active) {
  .ms-pdf-form select { appearance:auto; background-image:none; }
}

/* Colors are opt-in and scoped to each shortcode instance. */
.ms-pdf-form.ms-pdf-has-text-color,
.ms-pdf-form.ms-pdf-has-text-color p,
.ms-pdf-form.ms-pdf-has-text-color label,
.ms-pdf-form.ms-pdf-has-text-color label span,
.ms-pdf-form.ms-pdf-has-text-color input,
.ms-pdf-form.ms-pdf-has-text-color select,
.ms-pdf-form.ms-pdf-has-text-color option,
.ms-pdf-form.ms-pdf-has-text-color .ms-pdf-message,
.ms-pdf-form.ms-pdf-has-text-color .ms-pdf-message a {
  color:var(--ms-pdf-text-color);
}
.ms-pdf-form.ms-pdf-has-text-color input::placeholder {
  color:var(--ms-pdf-text-color);
  opacity:1;
}
.ms-pdf-form.ms-pdf-has-button-text-color button[type="submit"],
.ms-pdf-form.ms-pdf-has-button-text-color button[type="submit"]:hover,
.ms-pdf-form.ms-pdf-has-button-text-color button[type="submit"]:focus {
  color:var(--ms-pdf-button-text-color);
}
.ms-pdf-form.ms-pdf-has-button-background-color button[type="submit"],
.ms-pdf-form.ms-pdf-has-button-background-color button[type="submit"]:hover,
.ms-pdf-form.ms-pdf-has-button-background-color button[type="submit"]:focus {
  background-color:var(--ms-pdf-button-background-color);
  background-image:none;
  border-color:var(--ms-pdf-button-background-color);
}
