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

#app {
  display: contents;
  /* --- 航線 Radio 樣式修正 (白色圓圈內打勾) --- */
  /* 航線按鈕基礎樣式 */
  /* 前方白色圓圈 (18px * 18px 確保勾號空間充足) */
  /* 選中狀態按鈕背景切換 */
  /* 繪製白圈內部的藍色勾號 (✓) */
  /* 選中時在白圈內顯示勾號 */
  /* 驗證碼區塊 */
  /* Honeypot 蜜罐隱藏樣式 */
}
#app * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
#app .btn-open {
  padding: 14px 36px;
  background-color: #e53e65;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(229, 62, 101, 0.35);
  transition: all 0.2s ease;
}
#app .btn-open:hover {
  background-color: #c53051;
  transform: translateY(-2px);
}
#app .modal-overlay,
#rulesModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 60px 20px 40px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#app .modal-overlay.active,
#rulesModal.active {
  opacity: 1;
  visibility: visible;
}
#app .modal-container,
#rulesModal .modal-container {
  position: relative;
  background-color: #ffffff;
  width: 100%;
  max-width: 680px;
  border-radius: 20px;
  padding: 40px 35px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  margin: auto 0;
}
#app .modal-overlay.active .modal-container,
#rulesModal.active .modal-container {
  transform: translateY(0);
}
#app .rules-modal-container,
#rulesModal .rules-modal-container {
  overflow: visible;
}
#app .rules-modal-container .title,
#rulesModal .rules-modal-container .title {
  text-align: left;
}
#app #rules-modal-content,
#rulesModal #rules-modal-content {
  display: block;
  height: auto;
  overflow: visible;
  color: #294b73;
}
#app #rules-modal-content .rules-content,
#rulesModal #rules-modal-content .rules-content {
  display: block;
  position: relative;
  visibility: visible;
  opacity: 1;
  color: #294b73;
}
#app .rules-modal-container .rules-content,
#rulesModal .rules-modal-container .rules-content {
  color: #294b73;
  line-height: 1.9;
}
#app .rules-modal-container .rules-content h3,
#rulesModal .rules-modal-container .rules-content h3 {
  margin: 22px 0 4px;
  font-size: 18px;
}
#app .rules-modal-container .rules-content ol,
#rulesModal .rules-modal-container .rules-content ol {
  margin: 0;
  padding-left: 1.7em;
}
#app .rules-modal-container .rules-content li + li,
#rulesModal .rules-modal-container .rules-content li + li {
  margin-top: 7px;
}
#app .rules-modal-container .rules-content p,
#rulesModal .rules-modal-container .rules-content p {
  margin: 0;
  text-align: justify;
}
#app .rules-modal-container .rules-content p:first-child,
#rulesModal .rules-modal-container .rules-content p:first-child {
  text-align: center;
  color: #3b5998;
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 8px;
}
#app .btn-close,
#rulesModal .btn-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  font-size: 36px;
  color: #ffffff;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
}
#app .btn-close:hover,
#rulesModal .btn-close:hover {
  color: #e53e65;
  transform: scale(1.15);
}
#app .title {
  text-align: center;
  color: #3b5998;
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 8px;
}
#app .subtitle {
  text-align: center;
  color: #666666;
  font-size: 15px;
  margin-bottom: 25px;
}
#app .form-group {
  margin-bottom: 20px;
}
#app .form-label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #3182ce;
  margin-bottom: 10px;
}
#app .required-star {
  color: #e53e3e;
  margin-left: 3px;
}
#app .route-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 576px) {
  #app .route-options {
    grid-template-columns: repeat(2, 1fr);
  }
  #app .btn-close {
    top: -40px;
    right: 5px;
  }
  #app .modal-container {
    padding: 30px 20px;
  }
}
#app .route-item {
  position: relative;
}
#app .route-item input[type=radio] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
#app .route-item label {
  display: flex;
  align-items: center;
  /* justify-content: center; */
  justify-content: start;
  background-color: #5a8cb6;
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 20px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
#app .route-item label span {
  flex: 1 1 auto !important;
  text-align: center;
}
#app .route-item label::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
  box-sizing: border-box;
  position: relative; /* 作為勾號定位參考基準 */
}
#app .route-item input[type=radio]:checked + label {
  background-color: #2b5082;
  box-shadow: 0 0 0 2px #2b5082;
}
#app .route-item label::after {
  content: "";
  position: absolute;
  /* 經由計算精確鎖定在白色圓圈正中央 */
  left: 19px;
  top: 50%;
  width: 4px;
  height: 8px;
  /* border: solid #2b5082; */
  border: solid #e53e65;
  border-width: 0 2px 2px 0;
  transform: translateY(-60%) rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s ease;
}
@media (max-width: 576px) {
  #app .route-item label::after {
    left: 17px;
  }
}
#app .route-item input[type=radio]:checked + label::after {
  opacity: 1;
}
#app .form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid #cbd5e0;
  border-radius: 8px;
  font-size: 15px;
  color: #2d3748;
  outline: none;
  transition: border-color 0.2s ease;
}
#app .form-control:focus {
  border-color: #3182ce;
}
#app .captcha-container {
  display: flex;
  align-items: center;
  gap: 10px;
}
#app .captcha-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f7fafc;
  border: 1.5px solid #cbd5e0;
  border-radius: 8px;
  padding: 3px 8px;
}
#app #captchaCanvas {
  cursor: pointer;
  border-radius: 4px;
}
#app .btn-refresh-captcha {
  background: none;
  border: none;
  color: #3182ce;
  font-size: 20px;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
  transition: all 0.3s ease;
}
#app .btn-refresh-captcha:hover {
  color: #2b6cb0;
  transform: rotate(180deg);
}
#app .hp-field {
  display: none !important;
  position: absolute !important;
  left: -9999px !important;
}
#app .error-message {
  color: #e53e3e;
  font-size: 13px;
  margin-top: 5px;
  display: none;
}
#app .notice-section {
  margin: 25px 0;
  color: #718096;
  font-size: 13px;
  line-height: 1.6;
}
#app .notice-title {
  font-weight: bold;
  margin-bottom: 5px;
  color: #4a5568;
}
#app .notice-section ol {
  padding-left: 18px;
}
#app .btn-submit {
  display: block;
  width: 180px;
  margin: 0 auto;
  padding: 12px 0;
  background-color: #e53e65;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
#app .btn-submit:hover {
  background-color: #c53051;
}
#app .btn-submit:disabled {
  background-color: #cbd5e0;
  cursor: not-allowed;
}
