/* input */
input[type="text"],
input[type="email"],
input[type="tel"] {
  padding: 1rem;
  color: var(--color-txt);
  font-size: 1.6rem;
  font-weight: 500;
  border: 1px solid #79747e;
  border-radius: 12px;
  line-height: 1;
  background-color: var(--color-white);

  &:focus-visible {
    outline-color: var(--color-txt-accent);
  }

  @media screen and (max-width: 767px) {
    padding: 0.75rem;
    font-size: 1.4rem;
  }
}

input[type="checkbox"] {
  appearance: none;
  position: relative;
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-txt-primary);
  border-radius: 2px;
  background-color: var(--color-white);
  cursor: pointer;

  &:checked {
    background-color: var(--color-txt-primary);

    &::after {
      content: "";
      position: absolute;
      top: 5px;
      left: 3px;
      width: 12px;
      height: 6px;
      border-bottom: 2px solid #ffffff;
      border-left: 2px solid #ffffff;
      transform: rotate(-45deg);
    }
  }

  &:focus-visible {
    outline-color: var(--color-txt-accent);
  }
}

textarea {
  padding: 1rem;
  color: var(--color-txt);
  font-size: 1.6rem;
  font-weight: 500;
  border: 1px solid #79747e;
  border-radius: 12px;
  background-color: var(--color-white);

  &:focus-visible {
    outline-color: var(--color-txt-accent);
  }

  @media screen and (max-width: 767px) {
    padding: 0.75rem;
    font-size: 1.4rem;
  }
}

iframe {
  width: 100%;
  height: 100%;
  padding: 1.25rem;
  max-height: 27rem;
  border: 1px solid #79747e;
  border-radius: 24px;
  box-sizing: border-box;
  background-color: var(--color-white);
}

.input_small {
  width: 29rem;
}

.input_middle {
  width: 51rem;
}

.input_large {
  width: 73rem;
}

.sec_entry_form {
  max-width: 1060px;
  margin: 0 auto;

  & .entry_form_item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4rem;
    margin-bottom: 3rem;

    & .label {
      width: 27.5rem;
      color: var(--color-txt);
      font-size: 1.6rem;
      font-weight: 700;
      line-height: 1;

      & span {
        display: inline-block;
        padding: 8px 16px;
        margin-right: 0.8rem;
        color: var(--color-white);
        font-size: 1.5rem;
        font-weight: 700;
        border-radius: 100px;
        text-align: center;
        line-height: 1;

        &.required {
          background-color: var(--color-accent);
        }
        &.optional {
          background-color: var(--color-primary);
        }
      }
    }

    &.textarea {
      align-items: flex-start;
      margin-bottom: 4.8rem;
    }
  }

  & .entry_form_terms {
    margin-bottom: 3rem;
  }

  & .terms-agree {
    margin-bottom: 4.5rem;

    & label {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1rem;
      text-align: center;
    }
  }
  & .entry_form_submit {
    width: 100%;
    text-align: center;

    & .btn-entry {
      padding: 2.6rem 10rem;
      font-size: 2.2rem;
      font-weight: 700;
      line-height: 1;
    }
  }
}

@media screen and (max-width: 1179px) {
  .input_small {
    width: 48%;
  }
  .input_middle,
  .input_large {
    width: 100%;
  }

  .sec_entry_form {
    & .entry_form_item {
      gap: 2rem;

      & .label {
        width: 45%;
      }
    }
  }
}

@media screen and (max-width: 1023px) {
  .sec_entry_form {
    & .entry_form_item {
      justify-content: space-between;
      flex-wrap: wrap;
      margin-bottom: 3rem;

      & .label {
        width: 100%;
      }
    }
  }
}
@media screen and (max-width: 767px) {
  .sec_entry_form {
    & .entry_form_item {
      gap: 1rem;

      &.textarea {
        margin-bottom: 3.5rem;
      }
    }
    & .terms-agree {
      margin-bottom: 3.5rem;
      & label {
        text-align: left;
      }
    }
    & .entry_form_submit {
        & .btn-entry {
            font-size: 2rem;
        }
    }
  }
}

#page-confirm {
    & .contents {
        padding-top: 5rem;
    }
}
.sec_confirm {
  & .sec_contents {
    width: auto;
    max-width: 76.8rem;
    margin: 0 auto;
    padding: 5rem 2.5rem;
    border-radius: 24px;
    border: 3px solid #fff;
    background: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);

    & .ttl {
    width: 100%;
    margin-bottom: 3.5rem;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    }

    & .form_confirm {
        & .confirm-contents {
            margin-bottom: 4.5rem;

            & .confirm_item {
                display: flex;
                align-items: stretch;
                justify-content: flex-start;
                gap: 1rem;
                margin-bottom: 1.5rem;

                & .label {
                display: inline-flex;
                align-items: center;
                min-width: 33%;
                padding: 0.5rem 1.5rem;
                font-size: 1.6rem;
                font-weight: 700;
                color: var(--color-white);
                background-color: var(--color-primary);
                border-radius: 4px;
                }
                & .value {
                padding:  0.5rem;
                font-size: 1.6rem;
                font-weight: 500;
                color: var(--color-txt);
                }
            }
        }
        & .cf-turnstile {
            margin: 0 auto 4.5rem;
            text-align: center;
        }
        & .controls {
            display: flex;
            align-items: stretch;
            justify-content: center;
            gap: 2rem;

            & .btn-submit {
                width: auto;

                &::after {
                    content: none;
                }
            }
            & .btn-back {
                width: auto;
                min-width: 15rem;
                padding: 0.75rem 1.4rem;
                color: var(--color-txt-primary);
                background: transparent;
                border: 2px solid var(--color-txt-primary);

                &:hover {
                    background-color: rgba(82, 169, 32, 0.15);
                }
                &::after {
                    content: none;
                }
            }
        }
    }
    }
}

@media screen and (max-width: 767px) {
    #page-confirm {
        & .contents {
            padding-top: 1.6rem;
            padding-bottom: 1.6rem;
        }
    }
    .sec_confirm  {
        padding: 0 1.6rem;

        & .sec_contents {
            padding: 3.2rem 1.6rem;

            & .ttl {
                font-size: clamp(2.15rem, 5.25vw, 2.4rem);
            }

            & .form_confirm {
                & .confirm-contents {
                    margin-bottom: 3rem;

                    & .confirm_item {
                        margin-bottom: 1.5rem;
                        flex-wrap: wrap;
                        gap: 0.5rem;

                        & .label {
                            width: auto;
                        }
                        & .value {
                            width: 100%;
                        }
                    }
                }
                & .cf-turnstile {
                    margin-bottom: 3rem;
                }
                & .controls {
                    width: 100%;
                    flex-wrap: wrap;
                    gap: 1.5rem;

                    & .btn-submit {
                        width: 100%;
                        max-width: none;
                        font-size: 2rem;
                    }
                    & .btn-back {
                        width: 100%;
                        max-width: none;
                        padding: 1.5rem 3rem;
                        font-size: 2rem;
                    }
                }
            }
        }
    }
}