/* ============================================
   Contact Form Section
   ============================================ */
.contact-form {
  background: var(--white);
  padding: 80px 329px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Intro text */
.contact-form__intro {
  text-align: center;
  padding-bottom: 30px;
}

.contact-form__intro p {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: #0d0d0d;
}

/* Form */
.contact-form__form {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  max-width: 780px;
  align-items: flex-start;
}

/* Field group */
.contact-form__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* Label row */
.contact-form__label-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-form__label {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  color: var(--black1);
  white-space: nowrap;
}

/* Required / optional badge */
.contact-form__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 20px;
  border-radius: 3px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  color: var(--white);
  white-space: nowrap;
}

.contact-form__badge--required {
  background: #c6120b;
}

.contact-form__badge--optional {
  background: var(--line-gray);
  color: #777;
}

/* Input */
.contact-form__input {
  width: 100%;
  padding: 20px;
  border: 1px solid var(--line-gray);
  border-radius: 5px;
  background: var(--white);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  color: var(--black1);
  outline: none;
  transition: border-color 0.25s ease;
}

.contact-form__input::placeholder {
  color: #bcbcbc;
  font-weight: 400;
}

.contact-form__input:focus {
  border-color: var(--black1);
}

/* Textarea */
.contact-form__textarea {
  width: 100%;
  height: 300px;
  padding: 25px 20px;
  border: 1px solid var(--line-gray);
  border-radius: 5px;
  background: var(--white);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--black1);
  resize: vertical;
  outline: none;
  transition: border-color 0.25s ease;
}

.contact-form__textarea::placeholder {
  color: #bcbcbc;
  font-weight: 400;
}

.contact-form__textarea:focus {
  border-color: var(--black1);
}

/* Privacy policy */
.contact-form__privacy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 360px;
  align-self: center;
}

.contact-form__checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

/* Hide native checkbox */
.contact-form__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Custom checkbox box */
.contact-form__checkbox-custom {
  display: inline-block;
  width: 25px;
  height: 25px;
  border: 1px solid #333;
  border-radius: 3px;
  background: var(--white);
  flex-shrink: 0;
  position: relative;
  transition: background 0.2s ease;
}

.contact-form__checkbox:checked + .contact-form__checkbox-custom {
  background: var(--black1);
}

.contact-form__checkbox:checked + .contact-form__checkbox-custom::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  width: 7px;
  height: 12px;
  border: 2px solid var(--white);
  border-left: none;
  border-top: none;
  transform: rotate(45deg);
}

.contact-form__checkbox-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  color: #333;
  white-space: nowrap;
}

.contact-form__privacy-link {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  color: #333;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.contact-form__privacy-link:hover {
  opacity: 0.6;
}

/* Submit button */
.contact-form__submit-wrap {
  display: flex;
  justify-content: center;
  width: 360px;
  align-self: center;
}

.contact-form__submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 360px;
  height: 60px;
  background: var(--black1);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  gap: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.contact-form__submit:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.contact-form__submit-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  color: var(--white);
  flex: 1;
  text-align: center;
  padding-left: 30px;
}

.contact-form__submit-arrow {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--white);
  border-right: 2px solid var(--white);
  transform: rotate(45deg);
  margin-right: 24px;
  flex-shrink: 0;
}

/* ============================================
   Responsive — 786px
   ============================================ */
@media (max-width: 786px) {

  .contact-form {
    padding: 60px 24px 80px;
    gap: 30px;
  }

  .contact-form__intro p {
    font-size: 14px;
    text-align: center;
  }

  .contact-form__privacy {
    width: 100%;
  }

  .contact-form__submit-wrap {
    width: 100%;
  }

  .contact-form__submit {
    width: 100%;
  }
}
