@layer components {
  .c-form__field {
    margin-bottom: 10px;
  }

  .c-form__label {
    display: block;
    margin: 20px 0 10px;
    padding: 12px 23px;
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
    background-color: #ebebeb;
    color: #002247;
    font-size: 16px;
    font-weight: 700;
  }

  .c-form__required {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 7px;
    border-radius: var(--r-s);
    background-color: var(--c-pink);
    color: var(--c-white);
    font-size: 85%;
    line-height: 1;
  }

  .c-form__control {
    padding: 0 15px;
  }

  .c-form__note {
    margin: 0;
    padding: 0 0 12px;
    font-size: var(--fs-sm);
    line-height: 1;
  }

  .c-form__input {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: var(--c-white);
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 0.075);
    color: var(--c-ink-sub);
    font-size: 14px;
    line-height: 1.42857143;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  }

  textarea.c-form__input {
    height: auto;
  }

  .c-form__input:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 0.075), 0 0 8px rgb(102 175 233 / 0.6);
  }

  .c-form__input::placeholder {
    color: #999;
    opacity: 1;
  }

  .c-form__input[aria-invalid="true"] {
    border-color: #ee0101;
  }

  .c-form__error {
    margin: 0 0 6px;
    color: #ee0101;
    font-size: var(--fs-xs);
    font-weight: 700;
  }

  .c-form__entity {
    display: none;
  }

  .c-form__confirm {
    overflow: hidden;
  }

  input.c-form__confirm {
    border: 0;
    background-color: transparent;
    box-shadow: none;
    resize: none;
    appearance: none;
  }

  .c-form__confirm-text {
    padding: 6px 12px;
    white-space: pre-wrap;
    word-break: break-word;
  }

  .c-form__alert {
    margin-bottom: 8px;
    padding: 8px;
  }

  .c-form__alert--error {
    border: 1px solid #f00;
    background-color: #e4b5b5;
  }

  .c-form__alert--success {
    border: 1px solid #05a000;
    background-color: #b5ecb4;
  }

  .c-form__complete {
    padding: 30px 15px;
  }

  .c-form__actions {
    padding: 30px 0;
    text-align: center;
  }

  .c-form__submit,
  .c-form__back {
    position: relative;
    display: inline-block;
    margin: 5px;
    padding: 16px 67px 16px 20px;
    border: 3px solid var(--c-green);
    background-color: var(--c-white);
    color: var(--c-green);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
  }

  .c-form__submit::before {
    content: "";
    position: absolute;
    top: 5px;
    right: 48px;
    display: block;
    width: 1px;
    height: 40px;
    border-left: 3px solid var(--c-green);
    transform: rotate(26deg);
  }

  .c-form__submit::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 18px;
    height: 18px;
    transform: translate(-20px, -50%);
    background-color: currentColor;
    mask: var(--icon-chevron) 0 0 / 100% 100% no-repeat;
  }

  .c-form__back {
    padding: 16px 20px;
  }

  .c-form__back::before {
    content: "";
    display: inline-block;
    box-sizing: content-box;
    width: 0.35714286em;
    height: 1em;
    margin-right: 5px;
    padding: 0 7px 0 8px;
    vertical-align: -0.142857em;
    background-color: currentColor;
    mask: var(--icon-angle-right) 7px 0 / 0.35714286em 1em no-repeat;
    transform: scaleX(-1);
  }

  .c-form__trap {
    position: absolute;
    left: -9999px;
  }

  @media (max-width: 768px) {
    .c-form__submit,
    .c-form__back {
      font-size: 14px;
    }
  }
}
