// This file is part of Indico.
// Copyright (C) 2002 - 2026 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.

@use 'base/palette' as *;

.field-error {
  color: $red !important;
  border-color: $red !important;
  font-weight: bold;
}

.field-description,
:global(.field-description) {
  font-style: italic;
  font-size: 0.9em;
  color: $dark-gray;
}

.fieldset {
  border: 0;
  margin-bottom: 0.5em;
  padding: 0;

  legend {
    font-weight: bold;
    font-size: 1.3em;
    border-bottom: 1px solid $separator-color;
    width: 100%;
    padding-left: 0;
    padding-bottom: 0.5em;
    margin-bottom: 0.3em;
    color: $light-black;
  }

  & + .fieldset:not(.compact) {
    margin-top: 2em;
  }
}
