
/* =========================================================
   YOURJAPAN
   Fluent Forms - Custom Travel Inquiry
   COMPLETE VERSION
   ========================================================= */


/* -----------------------------------------
   01. 整體表單
----------------------------------------- */

.fluentform {
  font-family: inherit;
  color: #222;
}

.fluentform .ff-el-group {
  margin-bottom: 28px;
}


/* 題目 Label */
.fluentform .ff-el-input--label label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  color: #222;
  margin-bottom: 10px;
}


/* 說明文字 */
.fluentform .ff-el-help-message {
  font-size: 13px;
  line-height: 1.8;
  color: #888;
  margin-top: 8px;
}


/* 必填星號 */
.fluentform .ff-el-is-required.asterisk-right label:after {
  color: #66D3AF !important;
}


/* -----------------------------------------
   02. 一般 Input / Textarea
----------------------------------------- */

.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="number"],
.fluentform input[type="tel"],
.fluentform input[type="date"],
.fluentform textarea,
.fluentform select {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid #dedede !important;
  border-radius: 2px !important;
  background: #fff;
  font-size: 14px;
  color: #222;
  box-shadow: none !important;
  transition:
    border-color .25s ease,
    box-shadow .25s ease;
}


/* Textarea */
.fluentform textarea {
  min-height: 120px;
  resize: vertical;
}


/* Placeholder */
.fluentform input::placeholder,
.fluentform textarea::placeholder {
  color: #aaa;
}


/* Focus */
.fluentform input:focus,
.fluentform textarea:focus,
.fluentform select:focus {
  outline: none !important;
  border-color: #66D3AF !important;
  box-shadow: 0 0 0 2px rgba(102, 211, 175, .10) !important;
}


/* -----------------------------------------
   03. Section 標題
----------------------------------------- */

.fluentform .ff-el-section-break {
  position: relative;
  margin-top: 80px;
  margin-bottom: 34px;
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid #e4e4e4;
  border-bottom: none;
}


/* 第一個區塊 */
.fluentform .ff-el-section-break:first-child {
  margin-top: 0;
}


/* 左上綠色短線 */
.fluentform .ff-el-section-break::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 55px;
  height: 2px;
  background: #66D3AF;
}


/* Section Title */
.fluentform .ff-el-section-break .ff-el-section-title {
  margin: 0 !important;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: .02em;
  color: #222;
}


/* Section 說明 */
.fluentform .ff-el-section-break .ff-section_break_desk {
  margin-top: 9px;
  font-size: 14px;
  line-height: 1.8;
  color: #777;
}


/* -----------------------------------------
   04. Radio / Checkbox 共通
----------------------------------------- */

.fluentform .ff-el-form-check {
  margin-bottom: 8px;
}

.fluentform .ff-el-form-check-label {
  cursor: pointer;
}


/* -----------------------------------------
   05. 國家選擇 → Button Style
----------------------------------------- */

.fluentform
.ff-el-input--content:has(input[name="origin_region"]) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}


.fluentform
.ff-el-input--content:has(input[name="origin_region"])
.ff-el-form-check {
  margin: 0;
}


.fluentform
.ff-el-input--content:has(input[name="origin_region"])
.ff-el-form-check-label {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #dedede;
  background: #fff;
  font-size: 14px;
  text-align: center;
  transition: all .2s ease;
}


/* 隱藏 radio */
.fluentform
.ff-el-input--content:has(input[name="origin_region"])
input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}


/* Hover */
.fluentform
.ff-el-input--content:has(input[name="origin_region"])
.ff-el-form-check-label:hover {
  border-color: #66D3AF;
}


/* 選中 */
.fluentform
.ff-el-input--content:has(input[name="origin_region"])
.ff-el-form-check-label:has(input:checked) {
  border-color: #66D3AF;
  background: #F4FCF9;
  color: #3D9F7F;
  font-weight: 600;
}


/* -----------------------------------------
   06. 日本主要地區 → Button Style
----------------------------------------- */

.fluentform
.ff-el-input--content:has(input[name="main_region"]) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}


.fluentform
.ff-el-input--content:has(input[name="main_region"])
.ff-el-form-check {
  margin: 0;
}


.fluentform
.ff-el-input--content:has(input[name="main_region"])
.ff-el-form-check-label {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid #dedede;
  background: #fff;
  font-size: 14px;
  text-align: center;
  transition: all .2s ease;
}


.fluentform
.ff-el-input--content:has(input[name="main_region"])
input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}


.fluentform
.ff-el-input--content:has(input[name="main_region"])
.ff-el-form-check-label:hover {
  border-color: #66D3AF;
}


.fluentform
.ff-el-input--content:has(input[name="main_region"])
.ff-el-form-check-label:has(input:checked) {
  background: #F4FCF9;
  border-color: #66D3AF;
  color: #3D9F7F;
  font-weight: 600;
}


/* 尚未決定 */
.fluentform
.ff-el-input--content:has(input[name="main_region"])
.ff-el-form-check:last-child {
  grid-column: span 2;
}


/* -----------------------------------------
   07. 旅行主題 Checkbox Tag
----------------------------------------- */

.fluentform
.ff-el-input--content:has(input[name^="travel_themes"]) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}


.fluentform
.ff-el-input--content:has(input[name^="travel_themes"])
.ff-el-form-check {
  margin: 0;
}


.fluentform
.ff-el-input--content:has(input[name^="travel_themes"])
.ff-el-form-check-label {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #dedede;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
}


.fluentform
.ff-el-input--content:has(input[name^="travel_themes"])
input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}


.fluentform
.ff-el-input--content:has(input[name^="travel_themes"])
.ff-el-form-check-label:hover {
  border-color: #66D3AF;
}


.fluentform
.ff-el-input--content:has(input[name^="travel_themes"])
.ff-el-form-check-label:has(input:checked) {
  background: #F4FCF9;
  border-color: #66D3AF;
  color: #3D9F7F;
  font-weight: 600;
}


/* =========================================
   08. TRAVEL ARRANGEMENT
   方案 Card 完整版
========================================= */

.fluentform
.ff-el-input--content:has(input[name="travel_plan"]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 18px;
}

/* 每個方案 */
.fluentform
.ff-el-input--content:has(input[name="travel_plan"])
.ff-el-form-check {
  margin: 0;
}


/* Card */
.fluentform
.ff-el-input--content:has(input[name="travel_plan"])
.ff-el-form-check-label {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 150px;
  padding: 35px 28px;
  border: 1px solid #dedede;
  background: #fff;
  cursor: pointer;
  transition:
    border-color .25s ease,
    box-shadow .25s ease,
    transform .25s ease,
    background .25s ease;
}


/* 隱藏 Radio */
.fluentform
.ff-el-input--content:has(input[name="travel_plan"])
input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}


/* 方案名稱 */
.fluentform
.ff-el-input--content:has(input[name="travel_plan"])
.ff-el-form-check-label span {
  display: block;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 600;
  color: #222;
}


/* Hover */
.fluentform
.ff-el-input--content:has(input[name="travel_plan"])
.ff-el-form-check-label:hover {
  border-color: #66D3AF;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  transform: translateY(-3px);
}


/* 選中 */
.fluentform
.ff-el-input--content:has(input[name="travel_plan"])
.ff-el-form-check-label:has(input:checked) {
  border: 2px solid #66D3AF;
  background: #F4FCF9;
}


/* 選中 Check */
.fluentform
.ff-el-input--content:has(input[name="travel_plan"])
.ff-el-form-check-label:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #66D3AF;
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
}


/* 第一張推薦方案 */
.fluentform
.ff-el-input--content:has(input[name="travel_plan"])
.ff-el-form-check:first-child
.ff-el-form-check-label {
  padding-top: 52px;
}


/* RECOMMENDED 標籤 */
.fluentform
.ff-el-input--content:has(input[name="travel_plan"])
.ff-el-form-check:first-child
.ff-el-form-check-label::before {
  content: "YOURJAPAN RECOMMENDED";
  position: absolute;
  top: 0;
  left: 0;
  padding: 8px 16px;
  background: #66D3AF;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
}


/* 第三個推薦選項 */
.fluentform
.ff-el-input--content:has(input[name="travel_plan"])
.ff-el-form-check:nth-child(3) {
  grid-column: 1 / -1;
}


.fluentform
.ff-el-input--content:has(input[name="travel_plan"])
.ff-el-form-check:nth-child(3)
.ff-el-form-check-label {
  min-height: 52px;
  padding: 14px 20px;
  justify-content: center;
  background: #fafafa;
}

/* =========================================
   TRAVEL PLAN HELP MESSAGE
========================================= */

.fluentform
.ff-el-group:has(input[name="travel_plan"])
.ff-el-help-message {
  margin-top: 14px;
  padding: 20px 22px;
  background: #fafafa;
  border-left: 2px solid #66D3AF;
  font-size: 13px;
  line-height: 1.75;
  color: #666;
  white-space: pre-line;
}

/* 減少段落之間過大的距離 */
.fluentform
.ff-el-group:has(input[name="travel_plan"])
.ff-el-help-message br + br {
  line-height: 1.2;
}


/* -----------------------------------------
   09. 住宿 / 房型 / 餐飲 Checkbox Tag
----------------------------------------- */

.fluentform
.ff-el-input--content:has(input[name^="stay_type"]),

.fluentform
.ff-el-input--content:has(input[name^="room_type"]),

.fluentform
.ff-el-input--content:has(input[name^="dining_type"]) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}


/* Item */
.fluentform
.ff-el-input--content:has(input[name^="stay_type"])
.ff-el-form-check,

.fluentform
.ff-el-input--content:has(input[name^="room_type"])
.ff-el-form-check,

.fluentform
.ff-el-input--content:has(input[name^="dining_type"])
.ff-el-form-check {
  margin: 0;
}


/* Label */
.fluentform
.ff-el-input--content:has(input[name^="stay_type"])
.ff-el-form-check-label,

.fluentform
.ff-el-input--content:has(input[name^="room_type"])
.ff-el-form-check-label,

.fluentform
.ff-el-input--content:has(input[name^="dining_type"])
.ff-el-form-check-label {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #dedede;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
}


/* 隱藏 checkbox */
.fluentform
.ff-el-input--content:has(input[name^="stay_type"])
input[type="checkbox"],

.fluentform
.ff-el-input--content:has(input[name^="room_type"])
input[type="checkbox"],

.fluentform
.ff-el-input--content:has(input[name^="dining_type"])
input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}


/* Hover */
.fluentform
.ff-el-input--content:has(input[name^="stay_type"])
.ff-el-form-check-label:hover,

.fluentform
.ff-el-input--content:has(input[name^="room_type"])
.ff-el-form-check-label:hover,

.fluentform
.ff-el-input--content:has(input[name^="dining_type"])
.ff-el-form-check-label:hover {
  border-color: #66D3AF;
}


/* Checked */
.fluentform
.ff-el-input--content:has(input[name^="stay_type"])
.ff-el-form-check-label:has(input:checked),

.fluentform
.ff-el-input--content:has(input[name^="room_type"])
.ff-el-form-check-label:has(input:checked),

.fluentform
.ff-el-input--content:has(input[name^="dining_type"])
.ff-el-form-check-label:has(input:checked) {
  border-color: #66D3AF;
  background: #F4FCF9;
  color: #3D9F7F;
  font-weight: 600;
}


/* -----------------------------------------
   10. 住宿平均預算
----------------------------------------- */

.fluentform
.ff-el-input--content:has(input[name="stay_budget"]) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}


.fluentform
.ff-el-input--content:has(input[name="stay_budget"])
.ff-el-form-check {
  margin: 0;
}


.fluentform
.ff-el-input--content:has(input[name="stay_budget"])
.ff-el-form-check-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 10px;
  border: 1px solid #dedede;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
}


.fluentform
.ff-el-input--content:has(input[name="stay_budget"])
input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}


.fluentform
.ff-el-input--content:has(input[name="stay_budget"])
.ff-el-form-check-label:hover {
  border-color: #66D3AF;
}

.fluentform
.ff-el-input--content:has(input[name="stay_budget"])
.ff-el-form-check-label:has(input:checked) {
  border-color: #66D3AF;
  background: #F4FCF9;
  color: #3D9F7F;
  font-weight: 600;
}
/* -----------------------------------------
   11. 旅行總預算
----------------------------------------- */

.fluentform
.ff-el-input--content:has(input[name="trip_budget"]) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}


.fluentform
.ff-el-input--content:has(input[name="trip_budget"])
.ff-el-form-check {
  margin: 0;
}


.fluentform
.ff-el-input--content:has(input[name="trip_budget"])
.ff-el-form-check-label {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 55px;
  padding: 10px 12px;
  border: 1px solid #dedede;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
}


.fluentform
.ff-el-input--content:has(input[name="trip_budget"])
input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}


.fluentform
.ff-el-input--content:has(input[name="trip_budget"])
.ff-el-form-check-label:hover {
  border-color: #66D3AF;
}


.fluentform
.ff-el-input--content:has(input[name="trip_budget"])
.ff-el-form-check-label:has(input:checked) {
  border-color: #66D3AF;
  background: #F4FCF9;
  color: #3D9F7F;
  font-weight: 600;
}


/* 尚未決定 */
.fluentform
.ff-el-input--content:has(input[name="trip_budget"])
.ff-el-form-check:last-child {
  grid-column: 1 / -1;
}

/* =========================================
   CONTACT METHOD
========================================= */

.fluentform
.ff-el-input--content:has(input[name^="contact_method"]) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}


.fluentform
.ff-el-input--content:has(input[name^="contact_method"])
.ff-el-form-check {
  margin: 0;
}


.fluentform
.ff-el-input--content:has(input[name^="contact_method"])
.ff-el-form-check-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #dedede;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
}


.fluentform
.ff-el-input--content:has(input[name^="contact_method"])
input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}


.fluentform
.ff-el-input--content:has(input[name^="contact_method"])
.ff-el-form-check-label:hover {
  border-color: #66D3AF;
}


.fluentform
.ff-el-input--content:has(input[name^="contact_method"])
.ff-el-form-check-label:has(input:checked) {
  border-color: #66D3AF;
  background: #F4FCF9;
  color: #3D9F7F;
  font-weight: 600;
}


@media (max-width: 600px) {

  .fluentform
  .ff-el-input--content:has(input[name^="contact_method"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


/* =========================================
   SUBMIT BUTTON
========================================= */

.fluentform .ff_submit_btn_wrapper {
  margin-top: 45px;
}


.fluentform button[type="submit"],
.fluentform .ff-btn-submit {
  min-width: 280px;
  min-height: 56px;
  padding: 15px 32px !important;
  background: #66D3AF !important;
  border: 1px solid #66D3AF !important;
  border-radius: 0 !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: all .25s ease;
}


.fluentform button[type="submit"]:hover,
.fluentform .ff-btn-submit:hover {
  background: #fff !important;
  color: #66D3AF !important;
}


@media (max-width: 600px) {

  .fluentform .ff_submit_btn_wrapper {
    margin-top: 35px;
  }

  .fluentform button[type="submit"],
  .fluentform .ff-btn-submit {
    width: 100%;
    min-width: 0;
  }

}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .fluentform
  .ff-el-input--content:has(input[name="origin_region"]),

  .fluentform
  .ff-el-input--content:has(input[name="main_region"]),

  .fluentform
  .ff-el-input--content:has(input[name="stay_budget"]),

  .fluentform
  .ff-el-input--content:has(input[name="trip_budget"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  .fluentform
  .ff-el-input--content:has(input[name^="travel_themes"]),

  .fluentform
  .ff-el-input--content:has(input[name^="stay_type"]),

  .fluentform
  .ff-el-input--content:has(input[name^="room_type"]),

  .fluentform
  .ff-el-input--content:has(input[name^="dining_type"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .fluentform .ff-el-group {
    margin-bottom: 25px;
  }


  .fluentform .ff-el-section-break {
    margin-top: 58px;
    margin-bottom: 28px;
    padding-top: 16px;
    padding-bottom: 14px;
  }


  .fluentform .ff-el-section-break .ff-el-section-title {
    font-size: 20px;
    line-height: 1.45;
  }


  /* 國家 */
  .fluentform
  .ff-el-input--content:has(input[name="origin_region"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  /* 地區 */
  .fluentform
  .ff-el-input--content:has(input[name="main_region"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  .fluentform
  .ff-el-input--content:has(input[name="main_region"])
  .ff-el-form-check:last-child {
    grid-column: 1 / -1;
  }


  /* 旅行主題 */
  .fluentform
  .ff-el-input--content:has(input[name^="travel_themes"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  /* 方案 */
  .fluentform
  .ff-el-input--content:has(input[name="travel_plan"]) {
    grid-template-columns: 1fr;
    gap: 14px;
  }


  .fluentform
  .ff-el-input--content:has(input[name="travel_plan"])
  .ff-el-form-check:nth-child(3) {
    grid-column: auto;
  }


  .fluentform
  .ff-el-input--content:has(input[name="travel_plan"])
  .ff-el-form-check-label {
    min-height: 150px;
    padding: 30px 22px 22px;
  }


  .fluentform
  .ff-el-input--content:has(input[name="travel_plan"])
  .ff-el-form-check:first-child
  .ff-el-form-check-label {
    padding-top: 52px;
  }


  /* 住宿 / 房型 / 餐飲 */
  .fluentform
  .ff-el-input--content:has(input[name^="stay_type"]),

  .fluentform
  .ff-el-input--content:has(input[name^="room_type"]),

  .fluentform
  .ff-el-input--content:has(input[name^="dining_type"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  /* 住宿預算 */
  .fluentform
  .ff-el-input--content:has(input[name="stay_budget"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  /* 旅行總預算 */
  .fluentform
  .ff-el-input--content:has(input[name="trip_budget"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  .fluentform
  .ff-el-input--content:has(input[name="trip_budget"])
  .ff-el-form-check:last-child {
    grid-column: 1 / -1;
  }


  /* Submit */
  .fluentform button[type="submit"],
  .fluentform .ff-btn-submit {
    width: 100%;
  }

}

/* =========================================================
   YOURJAPAN
   Fluent Forms - Draft Restore Notice
   ========================================================= */

.yj-form-restore-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 35px;
  padding: 14px 18px;

  border-left: 3px solid #66D3AF;
  background: #F4FCF9;

  font-size: 13px;
  line-height: 1.7;
  color: #555;
}

.yj-form-restore-text {
  display: flex;
  align-items: center;
  gap: 9px;
}

.yj-form-restore-check {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;

  flex-shrink: 0;

  border-radius: 50%;
  background: #66D3AF;

  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.yj-form-clear-draft {
  padding: 0 !important;

  border: none !important;
  background: transparent !important;

  color: #777 !important;

  font-size: 12px !important;
  line-height: 1.5;

  text-decoration: underline;

  cursor: pointer;
}

.yj-form-clear-draft:hover {
  color: #3D9F7F !important;
}


/* Mobile */
@media (max-width: 600px) {

  .yj-form-restore-notice {
    align-items: flex-start;
    gap: 12px;

    margin-bottom: 28px;
    padding: 13px 15px;
  }

  .yj-form-clear-draft {
    white-space: nowrap;
  }

}