:root {
  --student-form-error: #9f332d;
  --student-form-error-soft: #fff0ed;
  --student-form-focus: #a66d00;
}

.student-form-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #5f5b52;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.student-form-note > span,
.student-required-mark {
  color: var(--student-form-error);
  font-size: 15px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.student-form-feedback[hidden] {
  display: none !important;
}

.student-form-feedback {
  box-sizing: border-box;
  width: auto;
  border: 1.5px solid var(--student-form-error);
  border-left-width: 5px;
  border-radius: 6px;
  padding: 11px 13px;
  background: var(--student-form-error-soft);
  color: #70231f !important;
  font-size: 13px !important;
  font-weight: 800;
  line-height: 1.45;
}

.student-form-feedback.is-success {
  border-color: #267647;
  background: #e5f5e9;
  color: #18502f !important;
}

.student-form :is(input, select, textarea):focus-visible,
[data-student-form] :is(input, select, textarea):focus-visible {
  outline: 3px solid var(--student-form-focus);
  outline-offset: 2px;
}

.student-form :is(input, select, textarea)[aria-invalid="true"],
[data-student-form] :is(input, select, textarea)[aria-invalid="true"] {
  border-color: var(--student-form-error) !important;
  box-shadow: 0 0 0 3px rgba(159, 51, 45, .16) !important;
}

[data-screen="redacoes"] #redEssayForm > .student-form-note,
[data-screen="revisoes"] #revCycleForm > .student-form-note,
[data-screen="anotacoes"] #annoForm > .student-form-note {
  padding: 14px 24px;
  border-bottom: 1px dashed #aaa59b;
  background: #fffdf8;
}

[data-screen="redacoes"] #redEssayForm > .student-form-feedback,
[data-screen="revisoes"] #revCycleForm > .student-form-feedback,
[data-screen="anotacoes"] #annoForm > .student-form-feedback {
  margin: 0 24px 16px;
}

[data-screen="desempenho"] #performanceExternalForm > .student-form-note {
  grid-column: 1 / -1;
}

[data-screen="desempenho"] #performanceExternalFeedback.student-form-feedback {
  margin: 14px 0 0;
}

[data-screen="feedback"] .fbx-form .student-form-feedback {
  margin: 0 0 15px;
}

[data-screen="redacoes"] :is(.red-general-score > div:first-child > span, .red-upload-field small),
[data-screen="revisoes"] .rev-interval-heading span,
[data-screen="anotacoes"] .anno-error-photo small,
[data-screen="feedback"] :is(.fbx-card-head small, .fbx-types button small, .fbx-field-grid label > small, .fbx-field > small, .fbx-safety small, .fbx-form-footer > span),
[data-screen="desempenho"] .performance-entry-heading small {
  font-size: 11px !important;
  line-height: 1.4;
}

[data-screen="feedback"] .fbx-types button strong {
  font-size: 12px !important;
}

[data-screen="redacoes"] .red-field > span,
[data-screen="revisoes"] .rev-field > span,
[data-screen="anotacoes"] .anno-field > span,
[data-screen="feedback"] :is(.fbx-types legend, .fbx-field > span, .fbx-field-grid label > span),
[data-screen="desempenho"] .performance-entry-fields label > span {
  font-size: 11px !important;
  line-height: 1.35;
}

[data-screen="redacoes"] .red-field :is(input, textarea),
[data-screen="revisoes"] .rev-field :is(input, textarea),
[data-screen="anotacoes"] .anno-field :is(input, textarea),
[data-screen="feedback"] :is(.fbx-field-grid input, .fbx-field input, .fbx-field textarea),
[data-screen="desempenho"] .performance-entry-fields :is(input, select) {
  font-size: 13px !important;
}

[data-screen="redacoes"] .red-field input,
[data-screen="revisoes"] .rev-field input,
[data-screen="anotacoes"] .anno-field input,
[data-screen="feedback"] :is(.fbx-field-grid input, .fbx-field input),
[data-screen="desempenho"] .performance-entry-fields :is(input, select) {
  min-height: 44px;
}

html[data-egghead-theme="dark"] {
  --student-form-error: #ff9b91;
  --student-form-error-soft: #3a2423;
  --student-form-focus: #f5ca3d;
}

html[data-egghead-theme="dark"] .student-form-note {
  color: #bbb6ac;
}

html[data-egghead-theme="dark"] :is(
  [data-screen="redacoes"] #redEssayForm,
  [data-screen="revisoes"] #revCycleForm,
  [data-screen="anotacoes"] #annoForm
) > .student-form-note {
  border-color: #5d626c;
  background: #24272d;
}

html[data-egghead-theme="dark"] .student-form-feedback {
  color: #ffd8d4 !important;
}

html[data-egghead-theme="dark"] .student-form-feedback.is-success {
  border-color: #72c990;
  background: #20362a;
  color: #c9f3d7 !important;
}

@media (max-width: 700px) {
  [data-screen="redacoes"] #redEssayForm > .student-form-note,
  [data-screen="revisoes"] #revCycleForm > .student-form-note,
  [data-screen="anotacoes"] #annoForm > .student-form-note {
    padding: 12px 20px;
  }

  [data-screen="redacoes"] #redEssayForm > .student-form-feedback,
  [data-screen="revisoes"] #revCycleForm > .student-form-feedback,
  [data-screen="anotacoes"] #annoForm > .student-form-feedback {
    margin-right: 20px;
    margin-left: 20px;
  }

  [data-screen] [data-student-form] :is(input, select, textarea) {
    font-size: 16px !important;
  }

  [data-screen] [data-student-form] :is(button, .dark-action, .outline-action) {
    min-height: 44px !important;
  }

  [data-screen="feedback"] .fbx-form-footer > div .dark-action {
    grid-column: 1 / -1;
  }
}
