.form-control {
    line-height: 24px;
}

.B2E_AREA .banner {
  width: 100%;
  min-height: 500px;
  margin-top: 130px;
  background: url(/eweb_go100tour/b2e/images/b2e_banner.jpg);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.B2E_AREA .banner h1 {
  font-size: 4rem;
  letter-spacing: 5px;
  color: #FFF;
  margin: 0 auto;
  font-weight: bold;
  text-shadow: 1px 2px 5px #333;
}
.B2E_AREA .breadcrumb {
  margin: 10px 0;
}
.B2E_AREA .company_list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 50px 0 80px;
}
.B2E_AREA .company_list .company_item {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 10px;
}
.B2E_AREA .company_list .company_item a {
  display: block;
  background: #FFF;
}
.B2E_AREA .company_list .company_item img {
  width: 100%;
}
.B2E_AREA .company_list .company_item a h1 {
  font-size: 20px;
  color: #333;
  text-align: center;
  margin: 0;
  padding: 15px 0;
  border-top: 1px solid #e1e1e1;
  transition: 1.5s;
  background-image: -webkit-linear-gradient(left, #FFF, #FFF 25%, #FFF 50%, #FFF 75%, #FFF);
}

.B2E_AREA .company_list .company_item a:hover h1 {
  background-image: -webkit-linear-gradient(left, #147B96, #E6D205 25%, #147B96 50%, #E6D205 75%, #147B96);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  -webkit-background-size: 200% 100%;
  -webkit-animation: maskedAnimation 2s infinite linear;
  transition: 1.5s;
}
@keyframes maskedAnimation {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -100% 0;
  }
}
@media (max-width: 767px) {
  article.container.B2E_AREA {
    top: 0;
    padding-bottom: 0;
  }
  .B2E_AREA .banner {
    margin-top: 55px;
    background-attachment: initial;
  }
  .B2E_AREA .banner h1 {
    font-size: 3rem;
  }
  .B2E_AREA .company_list {
    margin: 0 0 50px;
  }
  .B2E_AREA .company_list .company_item {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .B2E_AREA .company_list .company_item a h1 {
    font-size: 16px;
  }
}

.B2E_LOGIN_BG {
  width: 100%;
  height: 100%;
  background: url(/eweb_go100tour/b2e/images/b2e_login_bg.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.B2E_LOGIN_BG footer {
  position: sticky;
  top: 100vh;
}

.B2E_LOGIN {
  padding-top: 130px;
}
.B2E_LOGIN form {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 150px;
  justify-items: center;
  align-items: center;
}
.B2E_LOGIN .B2E_LOGIN_ITEMS {
  grid-column-start: 3;
  grid-row-start: 1;
  grid-row-end: 5;
  background: #FFF;
  padding: 20px 15px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.B2E_LOGIN .B2E_LOGIN_ITEMS img {
  width: 80%;
}
.B2E_LOGIN .B2E_LOGIN_ITEMS h1 {
  font-weight: bold;
  margin: 10px 0 30px;
}

@media (max-width: 767px) {
  .B2E_LOGIN {
    padding-top: 55px;
  }
  .B2E_LOGIN form {
    grid-template-columns: auto;
  }
  .B2E_LOGIN .B2E_LOGIN_ITEMS {
    grid-column-start: 1;
    grid-row-start: 2;
    grid-row-end: 3;
  }
  .B2E_LOGIN .B2E_LOGIN_ITEMS h1 {
    margin: 10px 0 25px;
  }
  .B2E_LOGIN_BG {
    background-position: left;
  }
  .B2E_LOGIN_BG footer {
    padding-bottom: 0;
  }
}
@media (max-width: 767px) {
  footer .html5-css3-rwd p {
    text-align: center;
  }
  footer .html5-css3-rwd p img {
    width: 70%;
  }
  footer .block {
    padding: 0 1.25em 1.5em;
  }
}
.B2E_EXCLUSIVE .B2E_Announcement .bs-callout-warning {
  background-color: #faf8f0;
  border-color: #faebcc;
}
.B2E_EXCLUSIVE .B2E_Announcement .bs-callout h4 {
  margin-top: 0;
  margin-bottom: 5px;
  font-weight: bold;
}
.B2E_EXCLUSIVE .B2E_Announcement .bs-callout p {
  font-size: 16px;
}
.B2E_EXCLUSIVE .B2E_Announcement .bs-callout-warning h4 {
  color: #8a6d3b;
}
.B2E_Journey table th,
.B2E_Journey table td {
  text-align: center;
  padding: 15px 8px !important;
}
.B2E_Journey table td:nth-child(3) {
  text-align: left;
}
.B2E_Billboard > .panel > .panel-heading h3 {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}
.B2E_Billboard > .panel > .panel-heading h3 a {
  float: right;
}
.B2E_Billboard .panel .panel-group {
  padding: 0px;
  margin-bottom: 0;
}
.B2E_Billboard .panel .panel-group .billboard_title {
  display: flex;
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
}
.B2E_Billboard .panel .panel-group .billboard_title h4 {
  width: 10%;
  text-align: center;
  font-size: 16px;
  color: #333;
}
.B2E_Billboard .panel .panel-group .billboard_title h4:first-child {
  width: 80%;
  text-align: left;
}
.B2E_Billboard .panel .panel-group .panel {
  border-radius: 0;
  border: none;
  box-shadow: none;
}
.B2E_Billboard .panel .panel-group .panel-heading {
  padding: 0;
  border-radius: 0;
  border-bottom: 1px solid #ddd;
}
.B2E_Billboard .panel .panel-group .panel-heading a {
  padding: 20px 15px;
  color: #333;
  display: flex;
}
.B2E_Billboard .panel .panel-group .panel-heading a h4 {
  width: 10%;
  text-align: center;
}
.B2E_Billboard .panel .panel-group .panel-heading a h4:first-child {
  width: 80%;
  text-align: left;
}
.B2E_Billboard .panel .panel-group .panel + .panel {
  margin-top: 0px;
}
.B2E_Billboard .panel .panel-group .panel-collapse .panel-body {
  border: none;
  border-bottom: 1px solid #ddd;
}
.B2E_Billboard .panel .panel-group .panel:last-child .panel-collapse .panel-body {
  border: none;
}
.B2E_Billboard .panel .panel-group .panel-collapse .panel-body .btn-group {
  float: right;
}
.B2E_Billboard .panel .panel-group .panel-collapse .panel-body .btn-group .btn-warning {
  margin-right: 1px;
}
@media (max-width: 767px) {
  .B2E_EXCLUSIVE {
    top: 0 !important;
  }
  .B2E_EXCLUSIVE .B2E_Announcement {
    padding: 0 15px;
  }
  .B2E_EXCLUSIVE .B2E_Journey {
    padding: 0 15px;
  }
  .B2E_EXCLUSIVE .B2E_Billboard {
    padding: 0 15px;
  }
  .B2E_EXCLUSIVE .B2E_Billboard .panel .panel-group .billboard_title {
    display: none;
  }
  .B2E_EXCLUSIVE .B2E_Billboard .panel .panel-group .panel-heading a {
    flex-direction: column;
  }
  .B2E_EXCLUSIVE .B2E_Billboard .panel .panel-group .panel-heading a h4 {
    margin: 5px 0;
    width: 100%;
    text-align: justify;
    padding-left: 80px;
    position: relative;
  }
  .B2E_EXCLUSIVE .B2E_Billboard .panel .panel-group .panel-heading a h4:nth-child(1):before {
    content: '公告事項：';
    font-size: 16px;
    color: #333;
    position: absolute;
    left: 0;
  }
  .B2E_EXCLUSIVE .B2E_Billboard .panel .panel-group .panel-heading a h4:nth-child(2):before {
    content: '公告日期：';
    font-size: 16px;
    color: #333;
    position: absolute;
    left: 0;
  }
  .B2E_EXCLUSIVE .B2E_Billboard .panel .panel-group .panel-heading a h4:nth-child(3):before {
    content: '公告人員：';
    font-size: 16px;
    color: #333;
    position: absolute;
    left: 0;
  }
}
.B2E_Send_Out {width: 100%; margin: 20px auto 50px; text-align: center;}

/* 分頁區域樣式 */
.B2E_PAGINATION {
  padding: 20px 0 40px;
}
.B2E_PAGINATION nav {
  display: flex;
  justify-content: center;
}
.B2E_PAGINATION .pagination {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.B2E_PAGINATION .pagination li {
  margin: 2px;
}
.B2E_PAGINATION .pagination li a {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #337ab7;
  background: #fff;
  transition: all 0.3s ease;
}
.B2E_PAGINATION .pagination li a:hover {
  background: #f5f5f5;
  border-color: #337ab7;
  text-decoration: none;
}
.B2E_PAGINATION .pagination li.active a {
  background: #337ab7;
  color: #fff;
  border-color: #337ab7;
}
.B2E_PAGINATION .pagination li.active a:hover {
  background: #286090;
  border-color: #286090;
}

/* RWD 平板尺寸 */
@media (max-width: 991px) {
  .B2E_PAGINATION {
    padding: 15px 0 30px;
  }
  .B2E_PAGINATION .pagination li a {
    padding: 6px 10px;
    font-size: 14px;
  }
}

/* RWD 手機尺寸 */
@media (max-width: 767px) {
  .B2E_PAGINATION {
    padding: 10px 15px 20px;
  }
  .B2E_PAGINATION .pagination {
    flex-wrap: wrap;
  }
  .B2E_PAGINATION .pagination li {
    margin: 3px 2px;
  }
  .B2E_PAGINATION .pagination li a {
    padding: 5px 8px;
    font-size: 13px;
  }
  .B2E_PAGINATION .pagination li a i {
    font-size: 12px;
  }
}

/* RWD 小手機尺寸 */
@media (max-width: 480px) {
  .B2E_PAGINATION .pagination li a {
    padding: 4px 6px;
    font-size: 12px;
  }
  .B2E_PAGINATION .pagination li a i {
    font-size: 11px;
  }
}

/* 搜尋引擎區塊美化 */
.wrapper.idx {
  width: 100%;
  margin: 0;
}

.search_content {
  width: 100%;
  padding: 0;
  margin:10px 0 10px 0;
}

.merge_search {
  /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
  padding: 40px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  background: rgb(0 0 0 / 22%);
}

.merge_search::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.3;
}

.search-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  z-index: 1;
}

.search-form {
  background: #ffffff;
  border-radius: 15px;
  padding: 35px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.search-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  align-items: end;
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  border-radius: 15px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-overlay p {
  margin-top: 15px;
  color: #667eea;
  font-weight: 600;
  font-size: 16px;
}

/* Form Group */
.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.form-label i {
  color: #667eea;
  font-size: 16px;
}

.label-text {
  color: #444;
}

.required {
  color: #e74c3c;
  font-weight: bold;
  margin-left: 3px;
}

/* Select Wrapper */
.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  padding: 1px 1px 11px 1px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
}

.select-wrapper select:hover {
  border-color: #667eea;
}

.select-wrapper select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.select-wrapper select:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
  color: #999;
}

.select-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #667eea;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.select-wrapper:hover .select-icon {
  transform: translateY(-50%) rotate(180deg);
}

/* Date Range */
.form-group-date {
  grid-column: span 2;
}

.date-range-wrapper {
  display: flex;
  gap: 15px;
  align-items: center;
}

.date-input-wrapper {
  flex: 1;
  position: relative;
}

.date-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  transition: all 0.3s ease;
}

.date-input:hover {
  border-color: #667eea;
}

.date-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.date-separator {
  color: #667eea;
  font-size: 18px;
  flex-shrink: 0;
}

/* Submit Buttons */
.form-group-submit {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-search,
.btn-reset {
  flex: 1;
  padding: 4px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width:50%;
}

.btn-search {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-search:active {
  transform: translateY(0);
}

.btn-search:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-reset {
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-reset:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.btn-reset:active {
  transform: translateY(0);
}

/* RWD - 平板 */
@media (max-width: 991px) {
  .merge_search {
    padding: 30px 0;
	background: rgb(0 0 0 / 22%);
  }

  .search-form {
    padding: 25px;
  }

  .search-box {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
  }

  .form-group-date {
    grid-column: span 1;
  }
}

/* RWD - 手機 */
@media (max-width: 767px) {
  .merge_search {
    padding: 20px 0;
	background: rgb(0 0 0 / 22%);
  }

  .search-form {
    padding: 20px 15px;
    border-radius: 10px;
  }

  .search-box {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form-group-date {
    grid-column: span 1;
  }

  .date-range-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .date-separator {
    transform: rotate(90deg);
  }

  .form-group-submit {
    flex-direction: column;
  }

  .btn-search,
  .btn-reset {
    width: 50%;
    padding: 4px;
  }

  .form-label {
    font-size: 13px;
  }

  .select-wrapper select,
  .date-input {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* RWD - 小手機 */
@media (max-width: 480px) {
  .search-form {
    padding: 15px 10px;
  }

  .form-label {
    font-size: 12px;
  }

  .form-label i {
    font-size: 14px;
  }

  .select-wrapper select,
  .date-input {
    padding: 9px 10px;
    font-size: 12px;
  }

  .btn-search,
  .btn-reset {
    padding: 4px;
    font-size: 14px;
  }
}

/* ========================================
   RWD 行程列表樣式
   ======================================== */
.rwd-table-container {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* 桌面版標題列 */
.rwd-table-header {
  display: grid;
  grid-template-columns: 140px 60px 1fr 100px 80px 60px 80px 80px 120px;
  gap: 10px;
  background: #f5f5f5;
  border-bottom: 2px solid #ddd;
  padding: 15px 10px;
  font-weight: bold;
  color: #333;
}

.rwd-table-header .rwd-cell {
  text-align: center;
  font-size: 14px;
}

.rwd-table-header .cell-name {
  text-align: left;
}

/* 資料列 */
.rwd-table-row {
  display: grid;
  grid-template-columns: 140px 60px 1fr 100px 80px 60px 80px 80px 120px;
  gap: 10px;
  padding: 15px 10px;
  border-bottom: 1px solid #eee;
  align-items: center;
  transition: background-color 0.2s ease;
}

.rwd-table-row:hover {
  background-color: #f9f9f9;
}

.rwd-table-row:nth-child(even) {
  background-color: #fafafa;
}

.rwd-table-row:nth-child(even):hover {
  background-color: #f5f5f5;
}

/* 單元格樣式 */
.rwd-table-row .rwd-cell {
  text-align: center;
  font-size: 14px;
  color: #333;
}

.rwd-table-row .cell-name {
  text-align: left;
}

.rwd-table-row .cell-name a {
  color: #337ab7;
  text-decoration: none;
}

.rwd-table-row .cell-name a:hover {
  color: #23527c;
  text-decoration: underline;
}

.rwd-table-row .cell-apply .btn {
  white-space: nowrap;
}

.rwd-table-row .cell-date {
  font-weight: 600;
  color: #555;
}

.rwd-table-row .cell-price {
  font-weight: 600;
  color: #d9534f;
}

/* ========================================
   RWD 平板尺寸 (992px 以下)
   ======================================== */
@media (max-width: 991px) {
  .rwd-table-header {
    grid-template-columns: 120px 50px 1fr 90px 70px 50px 70px 70px 100px;
    gap: 8px;
    padding: 12px 8px;
  }

  .rwd-table-header .rwd-cell {
    font-size: 13px;
  }

  .rwd-table-row {
    grid-template-columns: 120px 50px 1fr 90px 70px 50px 70px 70px 100px;
    gap: 8px;
    padding: 12px 8px;
  }

  .rwd-table-row .rwd-cell {
    font-size: 13px;
  }
}

/* ========================================
   RWD 手機尺寸 (768px 以下) - 卡片式排版
   ======================================== */
@media (max-width: 767px) {
  /* 隱藏桌面版標題列 */
  .rwd-table-header {
    display: none;
  }

  /* 卡片式排版 */
  .rwd-table-row {
    display: block;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    background: #fff;
  }

  .rwd-table-row:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  }

  .rwd-table-row .rwd-cell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    text-align: right;
  }

  .rwd-table-row .rwd-cell:last-child {
    border-bottom: none;
  }

  /* 顯示 data-label 作為欄位名稱 */
  .rwd-table-row .rwd-cell::before {
    content: attr(data-label);
    font-weight: 600;
    color: #666;
    text-align: left;
    flex-shrink: 0;
    margin-right: 10px;
  }

  /* 行程名稱特殊處理 */
  .rwd-table-row .cell-name {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .rwd-table-row .cell-name::before {
    margin-bottom: 5px;
  }

  .rwd-table-row .cell-name a {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
  }

  /* 報名按鈕 */
  .rwd-table-row .cell-apply {
    justify-content: flex-end;
    padding-top: 12px;
    border-bottom: none;
  }

  .rwd-table-row .cell-apply::before {
    display: none;
  }

  .rwd-table-row .cell-apply .btn {
    width: 100%;
    padding: 10px 20px;
    font-size: 15px;
  }

  /* 日期樣式加強 */
  .rwd-table-row .cell-date {
    background: #f0f7ff;
    margin: -15px -15px 10px -15px;
    padding: 12px 15px;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
  }

  .rwd-table-row .cell-date::before {
    color: #337ab7;
  }
}

/* ========================================
   RWD 小手機尺寸 (480px 以下)
   ======================================== */
@media (max-width: 480px) {
  .rwd-table-row {
    padding: 12px;
    margin-bottom: 12px;
  }

  .rwd-table-row .rwd-cell {
    padding: 6px 0;
    font-size: 13px;
  }

  .rwd-table-row .rwd-cell::before {
    font-size: 12px;
  }

  .rwd-table-row .cell-name a {
    font-size: 14px;
  }

  .rwd-table-row .cell-date {
    margin: -12px -12px 8px -12px;
    padding: 10px 12px;
  }

  .rwd-table-row .cell-apply .btn {
    padding: 8px 15px;
    font-size: 14px;
  }
}
