/* ===== 自訂樣式表（Custom Stylesheet） ===== */
/* 本檔案包含 main.css 中不存在的自訂樣式，適用於所有頁面 */
/* 包括：借款頁面、服務頁面等需要額外樣式的頁面 */

/* ===== Utility Classes ===== */
.mb-16 {
  margin-bottom: 16px !important;
}

.mt-16 {
  margin-top: 16px !important;
}

.section-divider {
  border-top: 1px solid #eee;
  margin: 40px 0;
}

/* ===== 全域可讀性修正 - 統一行距 1.65 ===== */
/* 段落行距與間距 */
.vl-event-content p,
.event-content-area p,
.vl-sidebar-area p {
  line-height: 1.65 !important;
  margin-bottom: 1rem;
}

/* 標題行距與間距 - 增強視覺層級 */
.event-content-area h2.title,
.vl-event-content h1.title {
  line-height: 1.35;
  margin-bottom: 1.5rem;
}

/* h2 添加底部裝飾線，增強區塊區分 */
.event-content-area h2.title {
  padding-bottom: 12px;
  border-bottom: 3px solid #01715d;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

/* h3 使用主題色強調，增加辨識度 */
.event-content-area h3.title {
  line-height: 1.35;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #01715d;
  font-weight: 700;
}

/* h4 增加上方間距，避免與段落過於接近 */
.event-content-area h4 {
  line-height: 1.4;
  margin-top: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* 列表項目間距 - 統一行距 */
.event-content-area ul li,
.factor-box ul li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

/* 提升卡片內間距 */
.icon-list-box.box-card {
  padding: 24px !important;
}

.factor-box {
  padding: 24px !important;
}

/* FAQ 摺疊按鈕 - WCAG AA 對比度修正 + 增加間距 */
.vl-faq-inner .vl-faq-accordion .accordion .vl-accordion-item {
  margin-bottom: 12px;
}

.vl-faq-inner .vl-faq-accordion .accordion .vl-accordion-item:last-child {
  margin-bottom: 0;
}

.vl-faq-inner .vl-faq-accordion .accordion .vl-accordion-item .accordion-button {
  line-height: 1.5 !important;
  padding: 1.25rem 1.5rem !important;
  background: #fff !important;
  color: #181713 !important;
  font-weight: 600;
  border: 1px solid #e5e5e5 !important;
  border-radius: 8px !important;
}

.vl-faq-inner .vl-faq-accordion .accordion .vl-accordion-item .accordion-button:not(.collapsed) {
  background: #01715d !important;
  color: #fff !important;
  border-color: #01715d !important;
}

.vl-faq-inner .vl-faq-accordion .accordion .vl-accordion-item .accordion-button::after {
  filter: none !important;
}

.vl-faq-inner .vl-faq-accordion .accordion .vl-accordion-item .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1) !important;
}

.vl-faq-inner .vl-faq-accordion .accordion .vl-accordion-item .accordion-collapse .accordion-body {
  line-height: 1.65;
  padding: 1.25rem 1.5rem;
  background: #fff !important;
}

.vl-faq-inner .vl-faq-accordion .accordion .vl-accordion-item .accordion-collapse .accordion-body p {
  line-height: 1.65;
}

/* FAQ 內容區域樣式 */
.vl-faq-inner .accordion-body ul {
  margin: 12px 0;
  padding-left: 20px;
}

.vl-faq-inner .accordion-body ul li {
  line-height: 1.65;
  margin-bottom: 8px;
}

/* ===== 表格樣式（main.css 無對應） ===== */
.service-table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
}

.service-table th,
.service-table td {
  padding: 14px 18px;
  border: 1px solid #ddd;
  text-align: left;
  line-height: 1.65;
}

.service-table th {
  background: #e5e5e5;
  font-weight: 700;
  color: var(--ztc-text-text-3, #181713);
}

/* 數字欄位右對齊 */
.service-table td:nth-child(3),
.service-table th:nth-child(3) {
  text-align: right;
}

.service-table tr:nth-child(even) {
  background: #fafafa;
}

.compare-table th:first-child {
  width: 25%;
}

.compare-table .legal {
  color: #2E7D32;
  font-weight: 600;
}

.compare-table .illegal {
  color: #00695c;
  font-weight: 600;
}

/* ===== icon-list-box 卡片樣式（main.css 僅有列表樣式，無卡片背景） ===== */
.icon-list-box.box-card {
  background: var(--ztc-bg-bg-4, #f8f9fa);
  padding: 24px;
  border-radius: 8px;
  height: 100%;
}

.icon-list-box.box-card h4 {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--ztc-family-font2, 'Quicksand', sans-serif);
}

/* icon-list-box 列表樣式 - 統一行距與間距 */
.icon-list-box {
  margin-bottom: 1rem;
}

.icon-list-box ul li {
  color: var(--ztc-text-text-3, #181713);
  font-size: var(--ztc-font-size-font-s18, 18px);
  line-height: 1.65;
  font-family: var(--ztc-family-font2, 'Quicksand', sans-serif);
  font-weight: 700;
  display: block;
  padding-bottom: 0.75rem;
}

.icon-list-box ul li:last-child {
  padding-bottom: 0;
}

.icon-list-box ul li span {
  background: #01715d;
  height: 22px;
  width: 22px;
  display: inline-block;
  line-height: 22px;
  text-align: center;
  border-radius: 50px;
  font-size: 12px;
  margin-right: 8px;
  color: #fff;
}

/* ===== 流程區塊背景（main.css 的 .vl-work5 是深色背景，不適用） ===== */
.process-section {
  background: var(--ztc-bg-bg-4, #f8f9fa);
  padding: 60px 0;
  margin: 40px 0;
}

/* 步驟卡片樣式 - 統一行距 + 深綠色編號（WCAG AA 合格） */
.process-section .vl-single-work-box {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
}

.process-section .vl-single-work-box:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.process-section .vl-single-work-box .num span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #01715d;
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--ztc-family-font2, 'Quicksand', sans-serif);
}

.process-section .vl-single-work-box .content {
  margin-left: 16px;
  flex: 1;
}

.process-section .vl-single-work-box .content .title {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ztc-text-text-3, #181713);
}

.process-section .vl-single-work-box .content .para {
  color: var(--ztc-text-text-2, #514F4C);
  font-size: 16px;
  line-height: 1.65;
}

.process-section .work-box-flx {
  display: flex;
  align-items: flex-start;
}

@media (max-width: 767px) {
  .process-section .work-box-flx {
    display: block;
  }

  .process-section .vl-single-work-box .content {
    margin-left: 0;
    margin-top: 16px;
  }
}

/* ===== 因素卡片樣式（main.css 無對應） ===== */
.factor-box {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 24px;
  height: 100%;
  transition: 0.3s;
}

.factor-box:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.factor-box .icon {
  width: 56px;
  height: 56px;
  background: #00a896;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.factor-box .icon i {
  font-size: 24px;
  color: #fff;
}

.factor-box h4 {
  font-size: 18px;
  margin-bottom: 16px;
  font-weight: 700;
}

.factor-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.factor-box ul li {
  padding: 8px 0;
  border-bottom: 1px dashed #e5e5e5;
  font-size: 15px;
  color: var(--ztc-text-text-2, #514F4C);
}

.factor-box ul li:last-child {
  border-bottom: none;
}

/* 提示框樣式（main.css 無對應） - 深綠色系警告框 */
.warning-box {
  background: #e8f5f0;
  border-left: 4px solid #00695c;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.warning-box p {
  margin: 0;
  color: #004d40;
  line-height: 1.65;
  font-weight: 600;
}

.legal-note {
  background: #f1f8f6;
  border-left: 4px solid #01715d;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.legal-note p {
  margin: 0;
  color: #004d40;
  font-weight: 600;
  line-height: 1.65;
}

.legal-disclaimer {
  font-size: 13px;
  color: #666;
  text-align: center;
  padding: 16px 0;
  border-top: 1px solid #e5e5e5;
  margin-top: 0;
}

/* ===== 額外修正 ===== */
/* 調整主內容區上方間距 */
.vl-sidebar-area.sp2 {
  padding-top: 60px;
}

/* 調整流程區塊 margin，避免與上方區塊間距過大 */
.process-section {
  margin-top: 0;
}

/* icon-list-box 勾選圖示放大 */
.icon-list-box ul li span {
  height: 24px;
  width: 24px;
  line-height: 24px;
  font-size: 13px;
}

/* 流程區塊行距統一 */
.process-section p,
.process-section .vl-single-work-box .content .para {
  line-height: 1.65 !important;
}

/* vl-cta-content 段落行距統一 */
.vl-cta-content p {
  line-height: 1.65 !important;
}

/* iconbox 段落行距統一 */
.iconbox p,
.iconbox .contact-number a {
  line-height: 1.65;
}

/* 調整服務據點區塊 iconbox 內文字級 - 放大聯絡資訊 */
.vl-icon-box-inner .iconbox .contact-number .para {
  font-size: 20px;
  font-weight: 700;
  color: #181713;
}

.vl-icon-box-inner .iconbox .contact-number .para:hover {
  color: var(--ztc-text-text-6); /* --ztc-bg-bg-4 */
}

/* 服務據點預設為黑色，hover 改為紅色X */
.vl-icon-box-inner .iconbox .icon-box-flex .icon span {
  background: #181713 !important;
  transition: 0.3s;
}

.vl-icon-box-inner .iconbox .icon-box-flex .icon span img {
  filter: brightness(0) invert(1);
  transition: 0.3s;
}

.vl-icon-box-inner .iconbox .contact-number:after {
  background: #181713 !important;
  transition: 0.3s;
}

/* 移除 active 狀態的綠色，保持黑色 */
.vl-icon-box-inner .iconbox.active .icon-box-flex .icon span {
  background: #181713 !important;
  transition: 0.3s;
}

.vl-icon-box-inner .iconbox.active .icon-box-flex .icon span img {
  filter: brightness(0) invert(1);
  transition: 0.3s;
}

/* hover 時改為紅色 */
.vl-icon-box-inner .iconbox:hover .icon-box-flex .icon span {
  background: var(--ztc-bg-bg-3) !important; /* #C8102E */
  transition: 0.3s;
}

.vl-icon-box-inner .iconbox:hover .icon-box-flex .icon span img {
  filter: brightness(0) invert(1);
  transition: 0.3s;
}

.vl-icon-box-inner .iconbox:hover .contact-number:after {
  background: var(--ztc-bg-bg-3) !important; /* #C8102E */
  transition: 0.3s;
}

/* ===== 新增外部樣式類別，取代內聯樣式 ===== */
/* Breadcrumb 汽車背景圖片 */
.breadcrumb-service {
  background-image: url(../img/tl-car.webp);
}
/* 摩托車背景抬頭圖片 */
.tl-moto {
  background-image: url(../img/tl-moto.webp);
}
/* 手機背景圖片 */
.tl-phone {
  background-image: url(../img/tl-phone.webp);
}
/* 其他背景圖片 */
.tl-other {
  background-image: url(../img/tl-other.webp);
}

/* Hero Banner 圖片樣式 */
.hero-banner-img {
  border-radius: 8px;
  max-height: 450px;
  object-fit: cover;
}

/* CTA 預設背景 */
.cta-default-bg {
  background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(../img/img-home09.webp);
  /*background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(../img/redesign/car-loan_cta-cash.webp);*/
  background-size: cover;
  background-position: center;
}

/* ===== CTA 按鈕美化 ===== */
.vl-cta-content .cta-btn-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.vl-cta-content .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.vl-cta-content .cta-btn i {
  font-size: 20px;
}

.vl-cta-content .cta-btn-line {
  background: #008A00;
  color: #fff;
}

.vl-cta-content .cta-btn-line:hover {
  background: #006D00;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 138, 0, 0.4);
}

.vl-cta-content .cta-btn-phone {
  background: #fff;
  color: #01715D;
  border: 2px solid #fff;
}

.vl-cta-content .cta-btn-phone:hover {
  background: #f0f0f0;
  color: #01715D;
  border-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* ===== 圖片區塊預留位置 ===== */
.img-placeholder {
  background: #f0f0ef;
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

/* 當圖片區塊在內容開頭時，減少上方間距 */
.img-placeholder:first-child {
  margin-top: 20px;
}

/* 當圖片區塊是父容器的最後一個元素時，移除底部間距，由父容器控制區塊間隔 */
.img-placeholder:last-child {
  margin-bottom: 0;
}

.img-placeholder p {
  color: #666;
  margin: 0;
  font-size: 14px;
}

/* Service Box Hover Effect for other-services.php */
.vl-single-service-box:hover .title {
  color: #01715d !important; /* #f0b90b */
}

.vl-single-service-box {
  transition: all 0.3s ease;
}

.vl-single-service-box .title {
  transition: color 0.3s ease;
}

/* Large Thumb Image Spacing */
.vl-large-thumb {
  margin-top: 40px;
  margin-bottom: 40px;
  border-radius: 20px;
  overflow: hidden;
}

.vl-large-thumb img {
  filter: brightness(0.92) saturate(0.75) contrast(1.08) sepia(0.10) hue-rotate(-6deg);
}

/* Image Crop - Vertical Half (垂直裁切顯示中央 1/3) */
.vl-thumb-crop-half {
  position: relative;
  width: 100%;
  aspect-ratio: 3.6 / 1;
}

.vl-thumb-crop-half img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ===== 新增：數字與金額強調樣式 ===== */
.highlight-number {
  font-weight: 700;
  color: #00695c;
  font-size: 1.1em;
}

.highlight-amount {
  font-weight: 700;
  color: #01715d;
  font-size: 1.05em;
}

/* 表格內自動強調數字 */
.service-table td strong,
.service-table th strong {
  color: #01715d;
  font-weight: 700;
}

/* ===== 段落間距統一化 ===== */
.vl-event-content .para,
.event-content-area .para {
  margin-bottom: 1rem;
  line-height: 1.65 !important;
}

/* 連續段落第二段起縮小上方間距 */
.para+.para {
  margin-top: -0.25rem;
}

/* pb-16 與 pb-24 統一化 */
.pb-16 {
  padding-bottom: 1rem !important;
}

.pb-24 {
  padding-bottom: 1.5rem !important;
}

.pb-32 {
  padding-bottom: 2rem !important;
}

.pt-16 {
  padding-top: 1rem !important;
}

/* ===== 列表項目重點文字強調 ===== */
.icon-list-box ul li strong {
  color: #01715d;
  font-weight: 700;
}

/* ===== 資訊框圖示支援 - 淺綠色系 ===== */
.info-box {
  background: #e0f2f1;
  border-left: 4px solid #00a896;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.info-box p {
  margin: 0;
  color: #00695c;
  line-height: 1.65;
  font-weight: 600;
}

.info-box i,
.warning-box i,
.legal-note i {
  margin-right: 8px;
  font-size: 1.1em;
}