/* src/pages/css/return-form.scss */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
ol,
ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
}
:root {
  --card-max-width: 50rem;
}
.container {
  display: flex;
  justify-content: center;
}
.wrapper {
  display: flex;
  flex-direction: column;
}
#card {
  max-width: var(--card-max-width);
  padding: 1.5rem;
  background-color: #fff;
}
button {
  padding: 0.5rem 1.5rem;
  background-color: #0056c0;
  color: #fff;
  opacity: 0.9;
  border: none;
  border-radius: 0.25rem;
}
button:not(:first-child) {
  margin-left: 1rem;
}
button:hover {
  cursor: pointer;
  opacity: 1;
}
button:focus {
  outline: 2px solid #0056c0;
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.5;
}
body {
  margin: 0;
  background-color: #f8f9fa;
  color: #111;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji";
}
h1 {
  margin-bottom: 1.5rem;
  font-weight: 500;
}
h2,
h3 {
  margin-bottom: 1rem;
  font-weight: 500;
}
p {
  padding: 0;
  margin: 0 0 0.25rem 0;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
li {
  margin-bottom: 0.5rem;
}
input {
  padding: 0.25rem 0.5rem;
}
select {
  padding: 0.25rem 0.5rem;
}
hr {
  margin-top: 1rem;
}
form label {
  display: block;
}
form > label {
  font-size: 2rem;
  margin-bottom: 2rem;
}
form > * > label {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
form > * > * > label {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
form > * > * > * > label {
  font-size: 0.8rem;
}
form > * > * > * > * > label {
  font-size: 0.8rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.form-field > label {
  margin-bottom: 0.125rem;
}
.form-field > input.invalid.touched {
  border-width: 1px;
  border-style: solid;
  border-color: red;
}
.form-field > select.invalid.touched {
  border-color: red;
}
.field-error {
  margin-bottom: 0.125rem;
  color: red;
  font-size: 90%;
}
.form-array-item,
.form-row {
  display: flex;
  justify-content: space-between;
}
.form-array-item > *,
.form-row > * {
  flex-grow: 1;
}
.form-array-item > :not(:first-child),
.form-row > :not(:first-child) {
  margin-left: 1rem;
}
.submit {
  margin: 1rem 0;
}
.form-array-item {
  align-items: center;
}
.hints {
  list-style: none;
  margin: 0;
}
ul.hints li {
  margin-bottom: 0.125rem;
  opacity: 0.8;
  font-size: 70%;
}
.debug {
  max-width: var(--card-max-width);
  margin-top: 20px;
  padding: 10px;
  background-color: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow-x: scroll;
}
.lock {
  overflow-y: hidden;
}
.overlay {
  position: fixed;
  display: flex;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  background-color: black;
  opacity: 0.6;
}
.loader {
  display: flex;
  width: 8rem;
  height: 8rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  background-color: #fff;
}
.loader .spinner {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
  border: 4px solid rgba(0, 0, 0, 0);
  border-radius: 50%;
  border-right-color: #0056c0;
  animation: l15 1s infinite linear;
}
.loader .spinner::before,
.loader .spinner::after {
  content: "";
  grid-area: 1/1;
  margin: 2px;
  border: inherit;
  border-radius: 50%;
  animation: l15 2s infinite;
}
.loader .spinner::after {
  margin: 8px;
  animation-duration: 3s;
}
@keyframes l15 {
  100% {
    transform: rotate(1turn);
  }
}
#error-display {
  margin-top: 1rem;
  padding: 1rem;
  color: #a90000;
  background-color: #e7b4b4;
  border-radius: 0.25rem;
  border: 2px solid red;
}
#error-display h3 {
  margin-bottom: 0.5rem;
}
