/* ============================================
   BE LEGACY - Contact Page Styles
   ============================================ */

/* ---------- Contact Section ---------- */
.contact {
  padding: 110px 0 120px;
}

.contact__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}

.contact__title {
  align-items: center;
  text-align: center;
}

.contact__title .c-section__title-en {
  letter-spacing: 2px;
}

.contact__title .c-section__title-ja {
  letter-spacing: 1.6px;
}

/* ---------- Form ---------- */
.contact__form {
  margin-top: 64px;
  max-width: 805px;
  margin-left: auto;
  margin-right: auto;
}

.contact__row {
  display: flex;
  align-items: center;
  gap: 0;
}

.contact__row + .contact__row {
  margin-top: 40px;
}

.contact__row--top {
  align-items: flex-start;
}

.contact__label {
  width: 252px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact__row--top .contact__label {
  padding-top: 12px;
}

.contact__label-text {
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 16px;
  font-weight: 600;
  color: #303034;
  letter-spacing: 1.6px;
  @media (max-width: 768px) {
    font-size: 14px;
  }
}

.contact__required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(48, 48, 52, 0.6);
  border: 1px solid rgba(48, 48, 52, 0.6);
  padding: 1px 8px 2px;
  line-height: 1;
}

.contact__field {
  flex: 1;
}

.contact__input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(48, 48, 52, 0.2);
  background: #fff;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.01);
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 16px;
  color: #303034;
  letter-spacing: 1.6px;
  outline: none;
  transition: border-color 0.3s;
}

.contact__input:focus {
  border-color: rgba(48, 48, 52, 0.5);
}

/* ---------- Select ---------- */
.contact__select-wrap {
  position: relative;
}

.contact__select-wrap::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 50%;
  width: 7px;
  height: 4px;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid #303034;
  transform: translateY(-50%);
  pointer-events: none;
}

.contact__select {
  width: 100%;
  height: 48px;
  padding: 0 50px 0 24px;
  border: 1px solid rgba(48, 48, 52, 0.2);
  background: #fff;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.01);
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 16px;
  color: #303034;
  letter-spacing: 1.6px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.3s;
}

.contact__select:focus {
  border-color: rgba(48, 48, 52, 0.5);
}

/* ---------- Textarea ---------- */
.contact__textarea {
  width: 100%;
  height: 226px;
  padding: 16px;
  border: 1px solid rgba(48, 48, 52, 0.2);
  background: #fff;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.01);
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 16px;
  color: #303034;
  letter-spacing: 1.6px;
  line-height: 1.75;
  outline: none;
  resize: vertical;
  transition: border-color 0.3s;
}

.contact__textarea:focus {
  border-color: rgba(48, 48, 52, 0.5);
}

/* ---------- Agree / Submit ---------- */
.contact__agree {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 56px;
}

.contact__privacy {
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 16px;
  font-weight: 400;
  color: #303034;
  letter-spacing: 0.8px;
  line-height: 28px;
  text-align: center;
}

.contact__privacy-link {
  font-weight: 700;
  text-decoration: underline;
}

.contact__checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 64px;
}

.contact__checkbox {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(48, 48, 52, 0.3);
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

.contact__checkbox:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #303034;
  border-bottom: 2px solid #303034;
  transform: rotate(45deg);
}

.contact__checkbox-label {
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  letter-spacing: 1.6px;
  line-height: 32px;
  cursor: pointer;
}

.contact__btn-wrapper {
  margin-top: 64px;
}

.contact__submit {
  cursor: pointer;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  background: linear-gradient(to right, transparent 50%, #303034 50%);
  background-size: 200% 100%;
  background-position: right;
  color: #fff;
  border-color: #303034;
}

.contact__submit::after {
  background: #fff;
}

.contact__submit::before {
  border-color: #fff;
}

.contact__submit:hover {
  background-position: left;
  color: rgba(48, 48, 52, 0.8);
  border-color: rgba(48, 48, 52, 0.4);
}

.contact__submit:hover::after {
  background: rgba(48, 48, 52, 0.4);
}

.contact__submit:hover::before {
  border-color: rgba(48, 48, 52, 0.4);
}

/* ============================================
   Contact - Responsive Tablet (768px - 1023px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  .contact {
    padding: 80px 0 80px;
  }

  .contact__inner {
    padding: 0 40px;
  }

  .contact__form {
    max-width: 100%;
  }

  .contact__label {
    width: 200px;
  }
}

/* ============================================
   Contact - Responsive (max-width: 767px)
   ============================================ */
@media (max-width: 767px) {
  .contact {
    padding: 48px 0 60px;
  }

  .contact__inner {
    padding: 0 20px;
  }

  .contact__form {
    margin-top: 40px;
    max-width: 100%;
  }

  .contact__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .contact__row + .contact__row {
    margin-top: 24px;
  }

  .contact__row--top .contact__label {
    padding-top: 0;
  }

  .contact__label {
    width: 100%;
  }

  .contact__field {
    width: 100%;
  }

  .contact__input {
    height: 32px;
    font-size: 16px;
  }

  .contact__select {
    height: 32px;
    font-size: 14px;
  }

  .contact__textarea {
    height: 180px;
    font-size: 16px;
  }

  .contact__agree {
    margin-top: 40px;
  }

  .contact__privacy {
    font-size: 14px;
    letter-spacing: 0.7px;
    line-height: 26px;
    text-align: left;
  }

  .contact__checkbox-wrap {
    margin-top: 40px;
  }

  .contact__checkbox-label {
    font-size: 14px;
    letter-spacing: 1.4px;
  }

  .contact__btn-wrapper {
    margin-top: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
  }
}
