/* document page specific styles - PDF style popup & status page */

/* 尚未上載所有文件 彈窗 (PDF 樣式) */
/* 外層為 Magnific 掛載 .mfp-close 的節點；須與內容同寬，否則 close 會對齊整段 mfp-content（全屏寬） */
div.magnific-popup {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
}
.doc-incomplete-popup {
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  max-width: 360px;
  margin: 0 auto;
}
.doc-incomplete-title {
  color: #00a0e8;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
}
.doc-incomplete-list {
  color: #c42222;
  font-size: 14px;
  margin: 0 0 16px;
  padding-left: 20px;
}
.doc-incomplete-list li {
  margin-bottom: 4px;
}
.doc-incomplete-question {
  color: #333;
  font-size: 14px;
  margin: 0 0 20px;
}
.doc-incomplete-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.doc-incomplete-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
}
.doc-incomplete-btn-return {
  background: linear-gradient(180deg, #6fc9f5 0%, #00a0e8 100%);
  color: #fff;
}
.doc-incomplete-btn-confirm {
  background: #fff;
  color: #00a0e8;
  border: 1px solid #00a0e8;
}

/* doc-section：無邊框，縮小縱向間距 */
.upload-container .doc-section {
  border: none !important;
  padding: 25px;
  margin-bottom: 16px;
}

/* 文件區塊標題：藍色底線，無圖標 */
.upload-container .doc-title {
  font-size: 16px;
  font-weight: 600;
  color: #006cb8;
  margin: 0 0 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid #00a0e8;
  display: inline-block;
}

/* 上傳區域：全寬，按鈕內容置中、無背景、淺灰虛線邊框 */
.upload-container .upload-area {
  display: block;
  width: 100%;
  margin-top: 8px;
  margin-bottom: 0;
}
.upload-container .upload-status {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #6c757d;
  min-height: 1.4em; /* avoid layout jump */
}
.upload-container .upload-status.is-uploading {
  color: #006cb8;
}
.upload-container .upload-status.is-success {
  color: #1b7f2a;
}
.upload-container .upload-status.is-error {
  color: #c42222;
}
.upload-container .upload-status.is-warning {
  color: #b26a00;
}
.upload-container .upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  border: 2px dashed #ccc;
  border-radius: 8px;
  color: #00a0e8;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.upload-container .upload-btn:hover {
  border-color: #00a0e8;
}
.upload-container .upload-btn img {
  width: 20px;
  height: auto;
}

/* 已上傳文件列表：圖標在左側，縮小間距 */
.upload-container .file-list {
  margin-bottom: 8px;
}
.upload-container .file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  margin-bottom: 6px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}
.upload-container .file-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.upload-container .file-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-container .file-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.upload-container .file-info {
  flex: 1;
  min-width: 0;
}
.upload-container .file-name {
  font-size: 14px;
  color: #273a42;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-container .file-size {
  font-size: 12px;
  color: #979797;
  margin-top: 2px;
}
.upload-container .file-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.upload-container .file-progress {
  flex: 1;
  height: 6px;
  background: #e9eef3;
  border-radius: 999px;
  overflow: hidden;
}
.upload-container .file-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6fc9f5 0%, #00a0e8 100%);
  border-radius: 999px;
  transition: width 120ms linear;
}
.upload-container .file-progress-percent {
  flex-shrink: 0;
  width: 42px;
  text-align: right;
  font-size: 12px;
  color: #006cb8;
  font-variant-numeric: tabular-nums;
}
.upload-container .file-item.is-complete .file-progress-row {
  display: none;
}
.upload-container .file-remove-btn {
  flex-shrink: 0;
  padding: 4px;
  cursor: pointer;
}
.upload-container .file-remove-btn .file-remove-icon {
  width: 18px;
  height: 18px;
  color: #979797;
}
.upload-container .file-remove-btn:hover .file-remove-icon {
  color: #cb0101;
}

/* 文件規格與注意事項 - 縮小間距 */
.doc-spec-box {
  margin-bottom: 16px;
  padding: 12px 14px;
  /* background: #f8f9fa; */
  border-radius: 8px;
}
.doc-spec-box h6 {
  font-size: 14px;
  font-weight: 600;
  color: #273a42;
  margin: 0 0 6px;
}
.doc-spec-intro {
  font-size: 13px;
  color: #555;
  margin: 0 0 6px;
}
.doc-spec-list {
  margin: 0;
  padding-left: 20px;
  font-size: 12px;
  color: #555;
  line-height: 1.6;
}
.doc-spec-list li {
  margin-bottom: 2px;
}

/* 提交 / 稍後處理 按鈕 */
.document .step-1 .section.btn-box {
  flex-wrap: wrap;
  gap: 12px;
}
.document .step-1 .submit-doc-btn,
.document .step-1 .later-btn {
  min-width: 120px;
}
.document .step-1 .later-btn.btn-style-outline {
  background: transparent;
  border: 1px solid #00a0e8;
}
.document .step-1 .later-btn.btn-style-outline span {
  color: #00a0e8;
}

.upload-top-tips {
  padding: 8px;
  border-radius: 12px;
  background: #bfa;
  background: rgba(204, 255, 194, 0.33);
  display: flex;
}
.upload-top-tips .upload-top-tips-title {
  font-weight: 700;
  font-size: 14px;
  color: #28A78A;
  line-height: 1;
}
.upload-top-tips .upload-top-tips-text {
  font-size: 12px;
  color: #4D5054;
  margin-top: 4px;
}

/* 貸款申請狀態頁 */
.loan-status-page {
  padding: 24px 20px 40px;
  max-width: 640px;
  margin: 0 auto;
}
.loan-status-greeting {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin: 0 0 20px;
}
.loan-status-tab {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #00a0e8;
  display: inline-block;
}
@media (max-width: 767px) {
  .loan-status-greeting {
    padding: 0 16px;
  }
  .loan-status-tab {
    margin: 0 0 12px 16px;
  }
}

.loan-status-card {
  border-radius: 12px;
  /* padding: 20px 24px; */
  margin-bottom: 20px;
}
.loan-status-type {
  color: #fff;
  background: linear-gradient(270deg, #98d6f4 11%, #00a0e8 60%);
  font-size: 25px;
  /* font-weight: 600; */
  height: 45px;
  border-radius: 10px;
  padding: 10px;
}
.loan-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 10px;
}
.loan-status-item {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.loan-status-label {
  font-size: 12px;
}
.loan-status-value {
  font-size: 16px;
  font-weight: 600;
}
.loan-status-state {
  color: #0a0ef3;
}
.loan-status-state-pending {
  color: #e67e22;
  font-weight: 600;
}
.loan-status-state-wait-audit {
  color: #0a0ef3;
  font-weight: 600;
}
.loan-status-state-success {
  color: #15ba5f;
  font-weight: 600;
}
.loan-status-upload-wrap {
  text-align: center;
  padding-top: 20px;
}
.loan-status-upload-btn.btn-style {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(180deg, #6fc9f5 0%, #0077b3 100%);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.loan-status-upload-btn.btn-style:hover {
  opacity: 0.95;
  color: #fff;
}
.loan-status-info {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #ecf8fe;
  border-radius: 8px;
}
.loan-status-info-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: #00a0e8;
  /* color: #fff; */
  border-radius: 50%;
  border-color: #00a0e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}
.loan-status-info-main {
  color: #00a0e8;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 4px;
}
.loan-status-info-sub {
  font-size: 13px;
  color: #555;
  margin: 0;
}

/* WhatsApp 查詢區塊（slogan 上方） */
.whatsapp-inquiry-section {
  background: #f5f8fa;
  border-radius: 12px;
  padding: 24px 20px 28px;
  margin-bottom: 20px;
  text-align: center;
}
.whatsapp-inquiry-title {
  font-size: 17px;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px;
}
.whatsapp-inquiry-desc {
  font-size: 14px;
  color: #333;
  margin: 0 0 6px;
  line-height: 1.5;
}
.whatsapp-inquiry-desc:last-of-type {
  margin-bottom: 20px;
}
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  background: #4CAF50;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.2s ease;
}
.whatsapp-btn:hover {
  background: #43a047;
  color: #fff;
}
.whatsapp-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* 貸款狀態頁 (step-7) */
.step-loan-details {
  position: relative;
  z-index: 1;
}
.step-loan-details .loan-status-page {
  background: transparent;
  padding: 20px 0 40px;
}

@media (max-width: 767px) {
  .doc-incomplete-popup {
    padding: 20px 20px;
  }
  .loan-status-greeting {
    font-size: 20px;
  }
  .loan-status-card {
    padding: 16px;
  }
  .loan-status-row {
    flex-direction: column;
  }
  .loan-status-item {
    min-width: 100%;
  }

  .form-container {
    /* background: #ECF8FE; */
    border-radius: 33px;
    padding:0 0 60px;
    margin-bottom:80px;
    @media (max-width:768px-1px) {
      border-radius: 8px;
      padding:0 0 30px;
      margin-bottom:50px;
    }
  }

}
