/* ==========================================================================
   Project Override — 当前 LP form.html 视觉还原
   基于设计截图覆盖，仅写与 form.css 不同的属性，不复制基础声明
   加载顺序：form.css → form-project.css
   本文件只处理 form.html，不涉及 確認画面 / エラー画面 / Thanks
   ========================================================================== */

/* 容器：贴合设计稿宽度，背景改为透明（由页面背景色承载米色底） */
#myForm {
  max-width: 674px;
  gap: 28px;
  background: transparent;
}

/* PC/SP 统一改为纵向排列——设计稿本身即纵排，不再按断点区分横/纵 */
.form-group:has(> label + .form-input),
.form-group:has(> label + select) {
  grid-template-columns: 1fr;
  gap: 10px;
}

.form-group:has(> label + .form-input) label,
.form-group:has(> label + select) label {
  padding-top: 0;
}

/* Label */
.form-group label {
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 700;
}

/* 必須 Badge：改为橙红渐变胶囊 */
.form-group-tag {
  padding: 3px 10px;
  color: #fff;
  background: linear-gradient(90deg, #f7941e, #ee4d2d);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: 2px;
}

/* Input / Textarea：默认白底、去边框，仅 focus 时显示品牌色描边 */
.form-input {
  min-height: 56px;
  padding: 16px 18px;
  background-color: #fff;
  border: 1px solid transparent;
  border-radius: 10px;
}

.form-input:hover:not(:focus):not(:disabled) {
  border-color: transparent;
}

.form-input:focus {
  outline: none;
  border-color: #ee6c4d;
  box-shadow: 0 0 0 3px rgba(238, 108, 77, 0.12);
}

#myForm .form-input:focus-visible {
  outline: none;
  outline-offset: 0;
}

.form-input::placeholder {
  color: #b7b7b7;
}

.form-textarea {
  min-height: 190px;
}

/* 個人情報 Checkbox：圆形勾选样式，左对齐 */
.agree-checkbox {
  justify-content: flex-start;
  gap: 10px;
}

.agree-checkbox input[type="checkbox"] {
  position: relative;
  width: 20px;
  height: 20px;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 1px solid #cccccc;
  border-radius: 50%;
  accent-color: #ee4d2d;
}

.agree-checkbox input[type="checkbox"]:checked {
  background: #ee4d2d;
  border-color: #ee4d2d;
}

.agree-checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.agree-checkbox label {
  font-size: 14px;
  color: #333333;
  text-align: left;
}

/* Submit：橙红渐变按钮，箭头靠右固定 */
#submit {
  position: relative;
  min-height: 68px;
  background: linear-gradient(90deg, #f7941e, #ee4d2d);
  border-color: transparent;
  border-radius: 14px;
  font-size: 17px;
  letter-spacing: 0.02em;
}

#submit:hover:not(:disabled) {
  background: linear-gradient(90deg, #f5860d, #e6421e);
  border-color: transparent;
}

#submit svg {
  position: absolute;
  right: 22px;
}
