@font-face {
  font-family: "Sen";
  src: url("./assets/fonts/Sen-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Sen", sans-serif;
}

.form-wrapper {
  display: flex;
  justify-content: center;
  padding: 40px;
  & form {
    width: 100%;
    max-width: 500px;
    & fieldset {
      border: 2px solid black;
      padding: 20px;
      border-radius: 8px;
      & legend {
        font-weight: bold;
        padding: 0 10px;
        text-align: center;
        color: #56361f;
      }
      & .input-group {
        margin-bottom: 15px;
        display: flex;
        flex-direction: column;
        gap: 5px;
        & input,
        select,
        textarea {
          padding: 8px;
          border: 1px solid #ccc;
          border-radius: 4px;
          caret-color: #f9bea9;
        }
        & :focus {
          outline: 3px solid #56361f;
          outline-offset: 2px;
        }
        & textarea {
          resize: horizontal;
          min-height: 80px;
          max-width: 460px;
        }
        & input:disabled {
          background-color: #eeeeee;
          border: 1px dashed #999;
          color: #777;
          cursor: not-allowed;
        }
        & input[type="checkbox"],
        input[type="radio"] {
          width: auto;
          cursor: pointer;
        }
      }
      & .input-group:has(input[type="checkbox"]) {
        flex-direction: row;
        align-items: center;
        cursor: pointer;
      }
      & button {
        width: 100%;
        padding: 12px;
        background-color: #f2ceb4;
        color: #56361f;
        border: none;
        border-radius: 4px;
        font-weight: bold;
        cursor: pointer;
        margin-top: 10px;
      }
      & button:hover {
        background-color: #56361f;
        color: #f2ceb4;
      }
    }
  }
}
