form.regular * { outline : 0px dotted #8881; }

form.regular {
  margin: 32px 0px;

  fieldset {
    position: relative;
    margin: 24px 0px;
    padding: 16px 0px;
    border: none;
    border-top: 3px double #ddd;

    > legend {
      margin: auto;
      padding: 0px 16px;
      font-size: 90%;
    }

    dl {
      margin: 16px 0px 32px 0px;

      > dt {
        width: 180px;
        height: 48px;
        margin: 0px 0px 16px 0px;
        padding: 16px 0px;
        line-height: 48px;

        @media screen and (max-width: 640px) {
          height: auto;
          margin: 0px;
          padding: 8px 0px 8px 0px;
          line-height: 1;
          width: 100%;
        }
      }

      > dd {
        min-height: 48px;
        margin: -96px 0px 16px 0px;
        padding: 16px 0px 0px 180px;
        border-top: 0px solid #eee;

        @media screen and (max-width: 640px) {
          min-height: auto;
          margin: 0px 0px 32px 0px;
          padding: 8px 0px 0px 0px;
        }
      }

      > dd + dd {
        margin-top: 0px;

        @media screen and (max-width: 640px) {
          margin-top: -24px;
        }
      }

      p {
        margin: 8px 0px;
        font-size: 90%;
      }

      samp {
        display: block;
        max-height: 480px;
        overflow-y: auto;
        margin: 0px;
        padding: 12px;
        line-height: 24px;
        background-color: #f4f4f4;
        white-space: pre-line;
        font-family: sans-serif;
        font-size: 1rem;
      }
    }
  }

  input, select, textarea, button {
    position: relative;
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 0px 0px 8px 0px;
    padding: 0px 12px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    outline: none;
    line-height: 1;
    font-size: 1rem;
  }

  input, select, textarea {
    font-family: sans-serif;
  }

  input:focus, select:focus, textarea:focus {
    border-color: #88a;
  }

  label.tag {
    position: relative;
    display: inline-block;
    vertical-align: middle;

    > input {
      padding-left: 80px;
    }

    > span {
      position: absolute;
      display: block;
      top: 1px;
      left: 1px;
      width: 64px;
      line-height: 46px;
      height: calc(100% - 10px);
      background-color: #f8f8f8;
      border-right: 1px solid #ddd;
      text-align: center;
      font-size: 85%;
      color: #555;
      z-index: 1;
    }
  }

  input[type="radio"] {
    display: inline-block;
    width: 24px;
    height: 48px;
    margin: 0px;
    padding: 0px;
    vertical-align: middle;
  }

  input[type="radio"] + span {
    position: relative;
    display: inline-block;
    min-width: 96px;
    height: 48px;
    padding: 0px 16px 0px 8px;
    line-height: 48px;
    vertical-align: middle;
    cursor: pointer;
  }

  input[type="radio"] + span:before {
    content: "";
    position: absolute;
    left: -24px;
    top: 12px;
    width: 24px;
    height: 24px;
  }

  input[type="radio"]:checked + span:before {
    background-color: transparent;
  }

  textarea {
    min-height: 180px;
    max-height: 480px;
    padding: 12px;
    overflow-y: scroll;
    resize: vertical;
    line-height: 1.5;
  }

  button {
    display: inline-block;
    width: fit-content;
    min-width: 160px;
    padding: 0px 32px;
    background-color: hsl(210, 100%, 30%);
    border: none;
    font-size: 90%;
    font-family: inherit;
    cursor: pointer;
    color: #fff;
    filter: brightness(100%);
    transition: filter 0.5s ease;
  }

  button:focus {
    filter: brightness(140%)
  }

  button:hover {
    filter: brightness(120%)
  }

  button[value="accept"] {
    background-color: hsl(185, 100%, 30%);
  }

  button[value="agreed"] {
    background-color: hsl(160, 100%, 30%);
  }

  button[value="return"] {
    background-color: hsl(17, 100%, 40%);
  }

  button[value="cancel"] {
    background-color: hsl(17, 100%, 40%);
  }

  .large {
    max-width: 480px;
  }

  .medium {
    max-width: 360px;
  }

  .small {
    max-width: 240px;
  }

  menu {
    list-style-type: none;
    display: flex;
    margin: 16px 0px;
    padding: 0px;
    justify-content: center;

    > li {
      margin: 16px;
    }
  }

  menu + menu {
    margin-top: -32px;

    > li {

      button {
        min-width: 80px;
        min-height: 32px;
        font-size: 80%;
      }

    }
  }

  mark {
    display: block;
    margin: 8px 0px;
    padding: 0px;
    background-color: transparent;
    color: hsl(17, 100%, 40%);
  }

  .progress {
    list-style-type: none;
    display: flex;
    margin: 16px 0px;
    padding: 0px;
    justify-content: center;

    > li {
      position: relative;
      margin: 0px 0px 0px 32px;
      padding: 0px 24px;
      height: 32px;
      background-color: hsl(256, 100%, 96%);
      border-radius: 32px;
      line-height: 32px;
      font-size: 80%;
      color: hsl(256, 50%, 40%);
      cursor: default;
    }

    > li::after {
      content: ">";
      position: absolute;
      left: -32px;
      top: 0px;
      width: 32px;
      height: 32px;
      line-height: 32px;
      text-align: center;
    }

    > li.current {
      background-color: hsl(256, 100%, 90%);
    }

    > li:first-child {
      margin-left: 0px;
    }

    > li:first-child::after {
      content: none;
    }
  }
}