/*
 * CRM forms (EVA widget) in the site's look. Loaded wherever a form is shown.
 *
 * The widget adds its own <style> at the end of <head> when it loads, so these rules start with
 * the form wrapper (.regent-form-slot__target) to outweigh it without !important.
 * Colours and font are the active theme's own variables (Regent Education: template_main.min.css
 * :root). With a theme that does not define them, the widget keeps its own colours.
 * The submit button repeats the shape of the theme's primary button (.button / .button--primary),
 * because the widget builds its button itself and cannot take those classes.
 * Further tweaks per site: Appearance > Customize > Additional CSS.
 */

/*
 * The widget's accent colour: button, focused field border, checkbox, privacy link.
 * Its own max-width (28rem) assumes a 16px root; a theme with a smaller root (Regent: 62.5%, so
 * 280px) squeezes the form and the thank-you box, so the form takes the width of its spot instead.
 */
.regent-form-slot__target .eva-lead-widget {
  --eva-accent: var(--dark-magenta);
  font-family: var(--primary-font-family);
  max-width: none;
}

/* The thank-you box replaces the form; keep the gap the form's fields have, so text placed
   under the form (the opt-in note) does not sit against the box. */
.regent-form-slot__target .eva-lead-widget .eva-lead-confirmation {
  margin-bottom: 0.9em;
}

.regent-form-slot__target .eva-lead-widget .eva-lead-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
  padding: 1.2rem 2.4rem;
  border-radius: 0.8rem;
  border: 0;
  font-size: 1.6rem;
  line-height: 1.5;
  font-weight: 700;
  background-color: var(--dark-magenta);
  color: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
}

.regent-form-slot__target .eva-lead-widget .eva-lead-submit:hover,
.regent-form-slot__target .eva-lead-widget .eva-lead-submit:focus,
.regent-form-slot__target .eva-lead-widget .eva-lead-submit:active {
  background-color: var(--purple);
  color: var(--white);
}

/*
 * A stand-in entry (a form not built in Odoo yet): the list of what the form will ask for, in
 * place of the form. Replace the entry's code with the Odoo embed and this goes away.
 */
.regent-form-slot__target .odoo-forms-planned {
  padding: var(--gap, 2rem);
  border: 1px dashed var(--medium-gray, #c3c3c3);
  border-radius: var(--form-box-radius, 0.8rem);
  background-color: var(--white, #fff);
  font-family: var(--primary-font-family, inherit);
}
/* The compact stand-in (a theme spot): HubSpot's form markup, laid out by the spot's own CSS. */
.regent-form-slot__target .odoo-forms-planned--compact {
  padding: 0;
  border: 0;
  background-color: transparent;
}
.regent-form-slot__target .odoo-forms-planned__intro {
  margin: 0 0 var(--gap-sm, 1rem);
  font-weight: 600;
}
.regent-form-slot__target .odoo-forms-planned__fields {
  margin: 0 0 var(--gap-sm, 1rem);
}
.regent-form-slot__target .odoo-forms-planned__fields abbr {
  color: var(--dark-magenta, inherit);
  text-decoration: none;
}
.regent-form-slot__target .odoo-forms-planned__button {
  margin: 0;
  color: var(--dark-gray, inherit);
  font-size: 0.875em;
}
