/* Careers uses Formidable's native form markup with the theme's field styles. */
.application--formidable {
  --application-error-accent:#ff4e42;
}

.application--formidable .frm_forms,
.application--formidable .frm_form_fields {
  width:100%;
  min-width:0
}

.application--formidable .frm_forms fieldset {
  min-width:0;
  margin:0;
  padding:0;
  border:0
}

.application--formidable .frm_forms .frm_fields_container {
  display:flex;
  flex-direction:column;
  gap:1.25rem
}

.application--formidable .frm_forms .frm_form_field {
  width:100%;
  min-width:0;
  margin:0
}

.application--formidable .frm_forms .frm_primary_label {
  display:block;
  margin:0 0 .5rem;
  padding:0;
  color:#173e2d;
  font:400 1rem/1.5rem var(--font-body)
}

.application--formidable .frm_forms .frm_form_field :is(input[type="text"],input[type="email"],input[type="tel"],textarea) {
  display:block;
  width:100%;
  min-height:3.25rem;
  margin:0;
  padding:.8125rem 1rem;
  border:1px solid var(--application-field-border, #7a887f);
  border-radius:.375rem;
  background:var(--color-cream);
  box-shadow:none;
  outline:3px solid transparent;
  outline-offset:3px;
  color:#173e2d;
  font:400 1rem/1.5rem var(--font-body);
  transition:outline-color .18s ease
}

.application--formidable .frm_forms .frm_form_field textarea {
  height:3.25rem;
  resize:vertical
}

.application--formidable .frm_forms .frm_form_field :is(input,textarea)::placeholder {
  color:var(--color-muted);
  opacity:1
}

.application--formidable .frm_forms .frm_submit {
  margin:0
}

.application--formidable .frm_forms button.frm_button_submit {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:var(--button-height);
  margin:0;
  padding:1rem .75rem;
  border:0;
  border-radius:var(--button-radius);
  background:var(--color-forest);
  box-shadow:none;
  color:var(--color-cream);
  font:700 1rem/1.5rem var(--font-body)
}

.application--formidable .frm_forms button.frm_button_submit:hover {
  background:var(--button-forest-hover)
}

/* Keep the theme's focus outline instead of Formidable's blue border and glow. */
.application--formidable .frm_forms.with_frm_style .frm_form_field :is(input:not([type=file]):not([type=range]):not([readonly]),textarea):focus {
  border-color:var(--application-field-border, #7a887f);
  box-shadow:none;
  outline-color:var(--color-forest)
}

.application--formidable .frm_forms.with_frm_style .frm_submit button.frm_button_submit:focus-visible:not(:disabled) {
  outline:3px solid var(--color-forest);
  outline-offset:3px;
  box-shadow:0 0 0 6px var(--color-white)
}

.application--formidable .frm_forms .frm_form_field [aria-invalid="true"] {
  --application-field-border:var(--application-error-accent)
}

.application--formidable .frm_forms.with_frm_style {
  --submit-bg-color:var(--color-forest);
  --submit-text-color:var(--color-cream);
  --submit-active-bg-color:var(--color-yellow);
  --submit-active-border-color:var(--color-yellow);
  --submit-active-color:var(--color-forest);
  --success-bg-color:var(--color-sage);
  --success-border-color:var(--color-forest);
  --success-text-color:var(--color-forest);
  --error-bg:var(--color-cream);
  --error-border:var(--application-error-accent);
  --border-color-error:var(--application-error-accent);
  --error-text:var(--color-error);
  --required-color:var(--color-error);
}

.application--formidable .frm_forms.with_frm_style .frm_submit button.frm_button_submit:disabled {
  background:var(--button-forest-pressed);
  opacity:1;
  cursor:not-allowed;
}

.application--formidable .frm_forms.with_frm_style .frm_loading_form button.frm_button_submit {
  background:var(--button-forest-pressed);
  border-color:var(--button-forest-pressed);
}

.application--formidable .frm_forms.with_frm_style .frm_loading_form button.frm_button_submit::before {
  width:1.125rem;
  height:1.125rem;
  margin:-.5625rem 0 0 -.5625rem;
  border-width:2px;
  border-right-color:var(--color-yellow);
  border-bottom-color:var(--color-yellow);
}

@media(prefers-reduced-motion:reduce) {
  .application--formidable .frm_forms.with_frm_style .frm_loading_form button.frm_button_submit::before {
    animation:none;
  }
}

.application--formidable .frm_forms.with_frm_style :is(.frm_message,.frm_error_style) {
  margin:0;
  padding:1rem;
  border-radius:var(--button-radius);
  font:400 1rem/1.5 var(--font-body);
}

.application--formidable .frm_forms.with_frm_style .frm_message {
  border:1px solid var(--color-forest);
  background:var(--color-sage);
  color:var(--color-forest);
}

.application--formidable .frm_forms.with_frm_style .frm_error_style {
  border:1px solid var(--application-error-accent);
  background:var(--color-cream);
  color:var(--color-error);
  font-weight:700;
}

.application--formidable .frm_forms.with_frm_style .frm_error_style[data-frm-error-summary] {
  margin-block-end:1.25rem;
}

.application--formidable .frm_forms.with_frm_style .frm_error_style .frm_error_link {
  color:var(--color-error);
  text-decoration:underline;
  text-underline-offset:.15em;
}

.application--formidable .frm_forms.with_frm_style .frm_error {
  color:var(--color-error);
  font-weight:700;
}
