/**
 * Slate embedded-form overrides.
 *
 * Apply the .acu-slate-embed wrapper only when a Slate form is inserted into
 * an existing ACU page. Standalone Slate pages retain their form description.
 *
 * Slate names each form element #form_<UUID>_container. The UUID belongs to one
 * form only, and it changes when Marketing rebuilds that form. Match the ID
 * pattern here so these rules survive a form swap.
 *
 * Slate also scopes its own per-form CSS with the same ID, sometimes with
 * !important. Those rules score 1-1-0, so a selector needs an ID of its own to
 * win. The unmatched #_specificity_only_ in :is() supplies it: :is() takes the
 * score of its strongest argument, which lifts these rules to 1-2-0, while the
 * attribute selector does the matching.
 */
.acu-slate-embed #form_description {
  display: none !important;
}

/*
 * Release the fixed horizontal padding some forms carry in their own Slate
 * stylesheet. Forms without it are unaffected, so this stays as a guard.
 */
.acu-slate-embed
  :is(#_specificity_only_, [id^="form_"][id$="_container"])
  .form_container {
  padding-inline: 0 !important;
}

.acu-slate-embed
  :is(#_specificity_only_, [id^="form_"][id$="_container"])
  .form_action_submit {
  padding-inline: 0 !important;
}

/*
 * The theme uppercases this button through the legacy rule
 * form[action*="gradapply.acu.edu"] button.default. Show the label as Slate
 * stores it, which keeps the button in the site-wide CTA style.
 */
.acu-slate-embed
  :is(#_specificity_only_, [id^="form_"][id$="_container"])
  .form_button_submit {
  text-transform: none !important;
}
