/**
 * @file
 * Forms overrides.
 */

.form-item label,
.fieldset-legend,
.field--type-datetime h4 {
  font-size: 1rem;
  word-break: break-word;
  font-weight: 400;
}

.field--type-datetime h4,
.fieldgroup legend {
  margin-bottom: var(--spacer-xs);
}

.form-item label.form-required:after,
.submit-required label:after,
fieldset.submit-required legend:after {
  content: '*';
  color: var(--color-danger);
}

fieldset.submit-required label:after {
  display: none;
}

fieldset b {
  font-weight: 500;
}

.form-item .description {
  font-size: var(--font-size-s);
  color: var(--color-gray-10);
  line-height: 1.4;
  word-break: break-word;
}

input[type="file"] ~ .button {
  height: 2rem;
  line-height: 2rem;
  font-size: var(--font-size-s);
  padding: 0 1rem;
}

input[type="file"] ~ .button[name*="upload_button"] {
  display: none;
}

input[disabled],
textarea[disabled],
select[disabled] {
  background-color: var(--color-gray);
  border: none;
}

select {
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDYiIGhlaWdodD0iNTIiIHZpZXdCb3g9IjAgMCA0NiA1MiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAgMEg0NlY1MkgwVjBaIiBmaWxsPSIjMDBBQUY0Ii8+CjxwYXRoIGQ9Ik0xOCAxM0gyOVYyNEgxOFYxM1oiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0yMy41IDM5TDExIDI0TDM2IDI0TDIzLjUgMzlaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K);
  background-position: right center;
  background-repeat: no-repeat;
}

.form-type-managed-file {
  margin: 0;
}

.js-form-type-radio,
.form-type-managed-file .form-item {
  margin-top: .5rem;
  margin-bottom: .5rem;
}

.js-form-type-radio label,
.form-type-managed-file .form-item label,
.form-type-checkbox label {
  font-size: var(--font-size-m);
}

.user-logout-confirm .form-actions {
  display: flex;
  gap: 1rem;
  margin-top: var(--spacer-m);
}

input[type="checkbox"] {
  border-radius: 3px;
}
