@layer form {
  .form-inline {
    align-items: center;
    display: inline-flex;
    gap: 1rem;
    justify-content: center;

    input[type=text] {
      width: 300px;
    }

    input[type=submit] {
      width: 100px;
    }
  }

  .field {
    margin: 1rem 0;
  }

  label {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
  }

  label.required::after {
    content: "*";
  }

  input,
  select {
    background-color: #fbfafc !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    color: #000;
    cursor: auto;
    font-size: 14px;
    font-weight: 500;
    height: 32px;
    margin: 8px 0;
    padding: 0 8px;
    width: 100%;
  }

  input[type=checkbox], input[type=radio] {
    height: auto;
    width: auto;
  }

  input[type=submit] {
    background-color: #fff !important;
    border: 1px solid #7b13d6;
    color: #7b13d6;
    font-weight: bold;
  }

  textarea {
    background-color: #fbfafc !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    color: #000;
    cursor: auto;
    font-size: 14px;
    font-weight: 500;
    margin: 8px 0;
    padding: 0 8px;
    width: 100%;
  }

  select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    background-image: none;
  }

  select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 32px;
  }

  input:focus,
  select:focus {
    border-color: #aaa;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  }

  input:disabled,
  select:disabled {
    background-color: #f3f3f3;
    color: #999;
    cursor: not-allowed;
  }
}