@charset "UTF-8";
body {
  margin: 0;
  padding: 0;
}

#app {
  background-color: #eef2f5;
  display: flex;
  justify-content: center;
  align-items: center;
}
#app * {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Microsoft JhengHei", "Segoe UI", Roboto, sans-serif;
}
#app .btn-trigger {
  padding: 15px 35px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #e64d72, #d82b57);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}
#app .btn-trigger:hover {
  transform: translateY(-2px);
}
#app {
  /* 確保 Overlay 捲動時內容上下有足夠的空間（padding） */
}
#app .modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  overflow-y: auto; /* 允許整頁捲動 */
  padding: 40px 20px; /* 上下保留空間，避免視窗太小黏住邊緣 */
  align-items: flex-start; /* 內容多時從頭開始排，配合 overflow 才能完整滾動頂部 */
  justify-content: center;
}
#app {
  /* 當 modal 開啟時加上這個 class 讓 display 變 flex */
}
#app .modal-overlay.active {
  display: flex;
}
#app .modal-box {
  background: rgba(10, 26, 68, 0.92);
  backdrop-filter: blur(5px);
  width: 100%;
  max-width: 680px;
  padding: 38px 32px 32px 32px;
  border-radius: 15px;
  position: relative;
  color: #fff;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: auto; /* 配合 flex-start 讓短內容置中、長內容可正常滾動 */
}
#app .btn-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 45px;
  height: 45px;
  background: #e64d72;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  z-index: 10;
}
#app {
  /* 活動辦法專用：內部捲動小框（方案 B 範例） */
}
#app .terms-box {
  max-height: 150px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px 15px;
  border-radius: 5px;
  font-size: 14px;
  color: #dcdcdc;
  margin: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
#app .terms-box::-webkit-scrollbar {
  width: 6px;
}
#app .terms-box::-webkit-scrollbar-thumb {
  background: rgba(230, 77, 114, 0.6);
  border-radius: 3px;
}
#app .modal-box h1 {
  font-size: 30px;
  color: #ffffff;
  text-align: center;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 5px;
}
#app .modal-box h2 {
  font-size: 35px;
  color: #ffffff;
  text-align: center;
  font-weight: 800;
  letter-spacing: 2.5px;
  margin-bottom: 25px;
}
#app .form-row {
  display: flex;
  margin-bottom: 12px;
  min-height: 50px;
}
#app .form-label {
  width: 175px;
  background-color: #e64d72;
  color: #ffffff;
  font-size: 19px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
  flex-shrink: 0;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}
#app .form-input-wrap {
  flex: 1;
  position: relative;
}
#app .form-input-wrap input[type=text],
#app .form-input-wrap input[type=email],
#app .form-input-wrap input[type=tel],
#app .form-input-wrap input[type=date] {
  width: 100%;
  height: 100%;
  background-color: #dce4ed;
  border: 2px solid transparent;
  padding: 0 15px;
  font-size: 19px;
  color: #111;
  outline: none;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  transition: border-color 0.2s;
}
#app .form-input-wrap input.invalid {
  border-color: #ff4d4d;
  background-color: #ffe6e6;
}
#app .error-msg {
  color: #ff6b6b;
  font-size: 14px;
  margin-top: -6px;
  margin-bottom: 10px;
  padding-left: 175px;
  display: none;
}
#app .radio-grid {
  width: 100%;
  height: 100%;
  min-height: 100px;
  background-color: #dce4ed;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 10px 15px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  gap: 10px;
}
#app .radio-grid label {
  color: #222;
  font-size: 17.5px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
#app .radio-grid input[type=radio] {
  transform: scale(1.25);
}
#app .captcha-wrap {
  display: flex;
  width: 100%;
  height: 100%;
  background-color: #dce4ed;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  overflow: hidden;
}
#app .captcha-wrap input {
  flex: 1;
  background: transparent !important;
  font-size: 22px;
}
#app .captcha-img-box {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 0 10px;
  gap: 8px;
}
#app .captcha-img-box img {
  height: 50px;
  width: 160px;
  cursor: pointer;
  -o-object-fit: contain;
     object-fit: contain;
}
#app .btn-refresh {
  background: none;
  border: none;
  color: #222;
  font-size: 26px;
  cursor: pointer;
}
#app .sub-note {
  text-align: center;
  font-size: 16px;
  color: #dcdcdc;
  margin: 8px 0 15px 0;
  letter-spacing: 0.5px;
}
#app .agree-row {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 17.5px;
  margin: 18px 0;
  color: #ffffff;
  gap: 8px;
}
#app .agree-row input[type=checkbox] {
  transform: scale(1.25);
}
#app .agree-row a {
  color: #ffffff;
  text-decoration: underline;
  cursor: pointer;
}
#app .btn-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}
#app .btn-pill {
  flex: 1;
  max-width: 250px;
  height: 52px;
  background-color: #e64d72;
  color: #ffffff;
  border: none;
  border-radius: 26px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: background-color 0.2s;
}
#app .btn-pill:hover {
  background-color: #d82b57;
}
@media (max-width: 520px) {
  #app .form-label {
    width: 130px;
    font-size: 15px;
  }
  #app .error-msg {
    padding-left: 130px;
  }
  #app .modal-box h2 {
    font-size: 26px;
  }
  #app .btn-group {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  #app .btn-pill {
    width: 100%;
    max-width: 100%;
  }
  #app .radio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  /* ==========================================
     1. 檔案上傳：拆成 2 行（標籤 1 行、上傳框 1 行）
     ================================---------- */
  .form-row:has(#f2_image) {
    flex-direction: column;
    min-height: auto;
    margin-bottom: 20px;
  }
  .form-row:has(#f2_image) .form-label {
    width: 100%;
    height: 40px;
    border-radius: 5px 5px 0 0;
    font-size: 16px;
  }
  .form-row:has(#f2_image) .form-input-wrap {
    width: 100%;
    height: 50px;
    border-radius: 0 0 5px 5px !important;
    box-sizing: border-box;
  }
  .form-row:has(#f2_image) input[type=file] {
    width: 100%;
    font-size: 14px;
  }
  /* ==========================================
     2. 驗證碼 (表單一與表單二)：拆成 3 行
     ================================---------- */
  .form-row:has(#f1_captcha),
  .form-row:has(#f2_captcha) {
    flex-direction: column;
    min-height: auto;
    margin-bottom: 20px;
  }
  /* 第一行：標籤 */
  .form-row:has(#f1_captcha) .form-label,
  .form-row:has(#f1_captcha) .form-label,
  .form-row:has(#f2_captcha) .form-label {
    width: 100%;
    height: 40px;
    border-radius: 5px 5px 0 0;
    font-size: 16px;
  }
  /* 輸入外框改為垂直堆疊解除預設樣式 */
  .form-row:has(#f1_captcha) .captcha-wrap,
  .form-row:has(#f2_captcha) .captcha-wrap {
    flex-direction: column;
    height: auto;
    background-color: transparent;
    border-radius: 0 0 5px 5px;
    overflow: visible;
    gap: 8px; /* 各行之間的間距 */
  }
  /* 第二行：文字輸入框 */
  .form-row:has(#f1_captcha) .captcha-wrap input,
  .form-row:has(#f2_captcha) .captcha-wrap input {
    width: 100%;
    height: 46px;
    background-color: #dce4ed !important;
    border-radius: 5px;
    border: 2px solid transparent;
    padding: 0 12px;
  }
  /* 第三行：圖片與按鈕的包裝盒 */
  .form-row:has(#f1_captcha) .captcha-img-box,
  .form-row:has(#f2_captcha) .captcha-img-box {
    width: 100%;
    height: 46px;
    background-color: #dce4ed;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
  }
  /* 調整圖片與重新整理按鈕大小 */
  .form-row:has(#f1_captcha) .captcha-img-box img,
  .form-row:has(#f2_captcha) .captcha-img-box img {
    height: 38px;
    width: auto;
    max-width: 70%;
  }
  .form-row:has(#f1_captcha) .btn-refresh,
  .form-row:has(#f2_captcha) .btn-refresh {
    font-size: 24px;
    padding: 4px 8px;
  }
}/*# sourceMappingURL=app.css.map */