
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0;
  font-family: 'Noto Sans TC', sans-serif; 
}

:root {
  --navy: #1a3464;
  --teal: #2d8c8c;
  --teal-light: #e8f4f4;
  --orange: #c84b1e;
  --orange-light: #fce8e0;
  --purple: #5b4b8a;
  --purple-light: #ede8f5;
  --bg: #faf8f5;
  --card-bg: #ffffff;
  --border: #e5e0d8;
  --text: #343435;
  --text-muted: #666;
  --table-header: #FFEFDD;
  --footer-bg: #FFECD8;
  --radius: 12px;
  --max-w: 1100px;
}

body {
  font-family: 'Noto Sans TC', sans-serif;
  color: var(--text);
}

a {
  text-decoration: none;
}
a:hover {
  text-decoration: none !important;
}
/* HEADER */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 5px 48px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 100;
  justify-content: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    width: 37%;
}

.logo-img {
    width: 100%;
    /* height: 64px; */
    object-fit: contain;
}

.header-divider {
    width: 1px;
    height: 50px;
    background-color: #9C9C9C;
    flex-shrink: 0;
    margin: 0 4px;
}

.site-title { 

}

.mtitleall {
    display: flex;
    width: 56%;
    align-items: center;
    gap: 15px;
}

/* GRADIENT WRAPPER - nav + hero 共享漸層 */
.gradient-section {
  background: linear-gradient(135deg, #fde8d8 0%, #fdf3e8 35%, #faf8f0 65%, #f0f4fa 100%);
  position: relative;
  overflow: hidden;
  background-image: url(../images/mainbg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  min-height: 80vh;
}


/* NAV */
.nav-wrapper {
    /* padding: 20px 0 0 0; */
    position: relative;
    z-index: 10;
    width: 90%;
    margin: 20px auto 0 auto;
    border: 1px solid #E09E74;
    border-radius: 50px;
}

.main-nav { 
  padding: 0; 
}

.nav-inner {
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    padding: 0 8px;
    border-radius: 50px;
    align-items: center;
}

nav.main-nav ul li {
    list-style-type: none;
}

li.lisitem {
    margin: 0 15px;
}

.nav-inner .lisitem a {
  text-decoration: none;
  color: #2c2c2c;
  font-size: 1.3rem;
  font-weight: 500;
  padding: 15px 0 15px 0;
  position: relative;
  transition: color 0.2s, background 0.2s;
  border-radius: 50px;
  display: inline-block;
}

.nav-inner a::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0px; 
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%; 
  height: 3px;
  background-color: #EB853C;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
}

.nav-inner a:hover { 
  background: rgba(255,255,255,0.7); 
}

.nav-inner a:hover::after { 
  transform: translateX(-50%) scaleX(1); 
  opacity: 1; 
}

.nav-inner a.active { 
  
}

.nav-inner a.active::after { 
  transform: translateX(-50%) scaleX(1); 
  opacity: 1; 
}

.nav-separator { 
  color: var(--border); 
  display: flex; 
  align-items: center; 
  user-select: none; 
}

/* 漢堡按鈕 (桌機隱藏) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  border-radius: 6px;
  transition: background 0.2s;
}
.hamburger:hover { 
  background: rgba(0,0,0,0.06); 
}

.hamburger span {
  display: block;
  width: 26px; 
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* HERO */
.hero { 
  padding: 52px 48px 72px; 
  position: relative; z-index: 1; 
}

.hero-inner { 
  /* max-width: var(--max-w); */
  margin: 0 auto;
  width: 80%; 
}

@media (max-width: 1500px) {
.hero-inner { 
max-width: var(--max-w);
width: 100%; 
}

}

.hero-label { 
  font-size: 2rem; 
  font-weight: 500; 
  color: #156197; 
}

.hero-title { 
  font-size: 2.7rem; 
  font-weight: 700; 
  color: #156197; 
  line-height: 170%; 
  margin-bottom: 10px; 
  letter-spacing: 0.03em; 
}

.hero-subtitle { 
  font-size: 1.4rem; 
  color: #2c2c2c;
  margin-bottom: 48px; 
}

/* CARDS (居中) */
.cards { 
  display: flex; 
  gap: 80px; 
  justify-content: center; 
  flex-wrap: wrap; 
  position: relative; 
  z-index: 1; 
  width: 90%; 
  margin: 0 auto;
}

@media (max-width: 1500px) {

.cards { 
  width: 100%; 
}

}

.card {
  background: var(--card-bg);
  border: 3px solid;
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  width: 25%;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 10px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  color: inherit;
}

.card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.1); 
  transform: translateY(-3px); 
}

.border-teal{
  border-color: #A4D6DB;
}

.border-orange{
  border-color: #F5B9AB;
}

.border-purple{
  border-color: #C3BCE2;
}

.card-icon { 
  width: 80%;
  aspect-ratio: 1 / 1;
  border-radius: 50%; 
  display: grid; 
  place-items: center;
}

.card-icon img,.card-icon svg { 
  width: 65%; 
  object-fit: contain; 
}

.card-icon.teal   { background: var(--teal-light); }
.card-icon.orange { background: var(--orange-light); }
.card-icon.purple { background: var(--purple-light); }

.card-title { 
  font-size: 1.6rem; 
  font-weight: 500;
  letter-spacing: 1px; 
}

.card-title.teal   { 
  color: #086E66; 
}

.card-title.orange { 
  color: #E84A21; 
}

.card-title.purple { 
  color: #533E9C; 
}

.card-desc { 
  font-size: 1rem; 
  color: var(--text-muted); 
}

.card-btn { 
  width: 36px; 
  height: 36px; 
  border-radius: 50%; 
  border: none; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  cursor: pointer; 
  margin-top: 4px; 
  font-size: 18px; 
  font-weight: 700; 
  color: #fff; 
  transition: opacity 0.2s; 
  text-decoration: none;
}

.card-btn:hover { opacity: 0.85; }
.card-btn.teal   { background: var(--teal); }
.card-btn.orange { background: var(--orange); }
.card-btn.purple { background: var(--purple); }

.card-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.card-disabled:hover {
  box-shadow: none;
  transform: none;
}

/* TABLE SECTION */
.table-section { 
  padding: 75px 48px 85px; 
}

.table-inner { 
  /* max-width: var(--max-w); */
  margin: 0 auto; 
  display: flex; 
  flex-direction: column; 
  width: 80%; 
}


@media (max-width: 1500px) {

.table-inner { 
  max-width: var(--max-w);
  width: 100%; 
}

}

.section-heading {
  display: flex; 
  align-items: center;
  gap: 10px; 
  font-size: 1.6rem; 
  font-weight: 500; 
  color: #156197; 
  margin-bottom: 45px; 
  width: 100%; 
}

@media (max-width: 900px) {

.section-heading {
  font-size: 1.3rem; 
}

}

.section-heading .icon-box { 
  width: 40px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}

.section-heading .icon-box img{
  width: 100%;
}

.apply-list {
    width: 86%;
    border: 6px solid #EBC69E;
    border-radius: var(--radius);
    background: var(--card-bg);
    color: #325F80;
    margin: 0 auto;
}

@media (max-width: 1500px) {

.apply-list {
    width: 100%;
}

}

@media (max-width: 900px) {

.apply-list {
    width: 90%;
}

}

.apply-row {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 18px;
  align-items: start;
}

.apply-con{
 border-bottom: 2px solid #EBC69E;
}

.apply-row:last-child {
  border-bottom: none;
}

.apply-header {
    background: var(--table-header);
    font-weight: 500;
    font-size: 1.45rem;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    text-align: center;
}

.apply-cell {
  font-size: 1.25rem;
  line-height: 160%;
}

.apply-cell-title {
padding: 25px 25px;
}

.apply-cell-desc {
  padding: 25px 25px;
  border-left: 2px solid #EBC69E;
}

@media (max-width: 640px) {
.apply-row,
.apply-header {
  grid-template-columns: 1fr;
}

.apply-row {
  padding: 16px 18px;
}

.apply-header {
  display: none;
}

.apply-cell {
  width: 100%;
  font-size: 1.1rem;
}

.apply-cell-title {
  padding: 25px 25px;
  background: var(--table-header);
}

.apply-cell-desc {
    border-left: none;
}
}

/* FOOTER */
.site-footer {
  background: var(--footer-bg);
  border-top: 2px solid #fff;
  padding: 15px 0;  
}

.footer_con{
width: 80%;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
flex-wrap: wrap;
}

.footer-left { 
  display: flex; 
  align-items: center; 
  gap: 20px; 
}

@media (max-width: 900px) {

.footer-left {
    gap: 5px;
    flex-wrap: wrap;
}

}

.footer-info {
    font-size: 1rem;
    color: #343435;
    line-height: 1.9;
}

.footer-info a { 
  color: #09877C; 
  text-decoration: none; 
}

.footer-info a:hover { 
  text-decoration: underline; 
}

.footer-right { 
  font-size: 1rem; 
  color: var(--text-muted); 
  text-align: right; 
}

/* LOGO PLACEHOLDER */

.logo-placeholder {
    width: 18%;
    /* height: 64px; */
    border-radius: 50%;
    /* background: linear-gradient(135deg, #c84b1e, #e8883c); */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    flex-shrink: 0;
}

img.fotlogo {
    width: 100%;
}

/* RWD TABLET (≤900px) */
@media (max-width: 900px) {

.site-header {
   padding: 14px 24px; 
}

.mtitleall {
    width: 80%;
    gap: 2px;
}

.nav-wrapper {
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.3s ease;
  position: absolute;
  border-radius: 0px;
  border: none;
  width: 100%;
}

  .nav-inner a { 
    padding: 12px 20px; 
    font-size: 1rem; 
  }

  .hero { padding: 40px 32px 56px; }
  .hero-title { font-size: 26px; }
  .table-section { padding: 40px 32px 52px; }
  .site-footer { padding: 28px 32px; }
}

/* RWD MOBILE (≤640px) */
@media (max-width: 640px) {

.site-header { 
  padding: 12px 16px; 
  flex-wrap: wrap; 
  gap: 10px; 
}

.logo-text .org-name { font-size: 13px; }
.logo-text .org-name-en { display: none; }
.site-title { font-size: 15px; letter-spacing: 0.02em; }
.header-divider { height: 40px; }

/* 漢堡按鈕出現 */
.hamburger { display: flex; }

/* Nav 抽屜 */
.nav-wrapper { 
  padding: 0; 
  overflow: hidden; 
  max-height: 0; 
  transition: max-height 0.35s ease, padding 0.3s ease; 
}

.nav-wrapper.open {
    max-height: 100vh;
    /* padding: 8px 0 12px; */
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.5);
    margin: 0px 0 0 0;
    position: absolute;
    height: 100vh;
}

.nav-inner { 
  flex-direction: column; 
  border-radius: 0; 
  border-left: none; 
  border-right: none; 
  border-top: none; 
  padding: 4px 16px; 
  background: rgba(255,255,255,0); 
  max-width: 100%; 
}

.nav-inner a { 
  padding: 13px 16px;
  border-radius: 8px; 
  font-size: 1rem; 
}

.nav-inner a::after { 
  bottom: 0px; 
}

li.lisitem {
    margin: 0 0px;
    /* padding: 10px 0 10px 0; */
    border-bottom: 1px solid #c1c1c1;
    width: 100%;
    text-align: center;
}

.nav-inner .lisitem a {
    padding: 15px 0 15px 0;
}

.nav-separator { 
  display: none; 
}

  /* Hero */
  .hero { padding: 32px 16px 48px; }
  .hero-label { font-size: 1.15rem; }
  .hero-title { font-size: 1.4rem; }
  .hero-subtitle { font-size: 1rem; }

  /* Cards */
  .cards { gap: 16px; }

  .card { 
    width: 100%; 
    max-width: 320px; 
  }

  /* Table */
  .table-section { padding: 32px 16px 48px; }
  .apply-table thead { display: none; }
  .apply-table tr { display: block; border-bottom: 1.5px solid #ddd3c2; padding: 12px 0; }
  .apply-table tr:last-child { border-bottom: none; }
  .apply-table td { display: block; width: 100% !important; border: none; padding: 4px 14px; }
  .apply-table td:first-child { font-weight: 700 }
  .apply-table td:last-child { color: var(--text-muted); line-height: 1.8; }

  /* Footer */
  .site-footer { flex-direction: column; align-items: flex-start; padding: 24px 16px; gap: 16px; }
  .footer-right { text-align: left; }
}


/* ── MAIN ── */

.page-main {
    /* max-width: 900px; */
    margin: 0 auto;
    padding: 24px 48px 64px;
    width: 80%;
}

/* 麵包屑 */
nav.breadcrumb {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
  display: block;
}
nav.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

nav.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
nav.breadcrumb a:hover { color: var(--teal) }
nav.breadcrumb [aria-current="page"] { color: var(--text); }

/* 頁面大標 */
.page-title {
  font-size: 2rem;
  font-weight: 500;
  color: #156197;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
  line-height: 100%;
}

/* ── 驗證卡片 ── */
.verify-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 48px 36px;
  position: relative;
}
.veryall {
  margin: 0 auto;
}

.verify-desc {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 36px;
}

/* ── 表單 ── */
.verify-form { 
display: flex; 
flex-direction: column; 
gap: 0;
width: 60%;
margin: 0 auto; 
}

.form-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  width: 140px;
  flex-shrink: 0;
  cursor: pointer;
}
.label-icon {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.form-input {
  flex: 1;
  height: 55px;
  border: none;
  border-radius: 8px;
  background: #eeeeee;
  padding: 0 16px;
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}
.form-input::placeholder { 
  color: #b0a99e; 
}

.form-input:focus {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45,140,140,0.15);
}
.form-input:invalid:not(:placeholder-shown) {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(200,75,30,0.12);
}

/* 送出按鈕列 */
.form-submit-row {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  margin-top: 30px;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-verify {
  background: #2F5C8E;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 1rem;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-verify:hover {
  background: #233f7a;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 16px rgba(26,52,100,0.25);
  transform: translateY(-1px);
}

.btn-verify:active { transform: translateY(0); }
.btn-verify:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* ── 分隔線 ── */
.verify-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0 24px;
}

/* ── 注意事項 ── */
.notice-block {

}

.notice-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
}

.notice-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notice-list li {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  counter-increment: notice-counter;
}

.notice-list {
  counter-reset: notice-counter;
}

.notice-list li::before {
  content: counter(notice-counter) ".";
  margin-right: 6px;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 1600px) {

.page-main { 
    padding: 20px 32px 52px; 
    width: 90%;
  }

}

/* ════════════════════════════
   RWD TABLET (≤900px)
════════════════════════════ */
@media (max-width: 900px) {

  .page-main { 
    padding: 20px 32px 52px; 
    width: 90%;
  }

  .verify-card { 
    padding: 32px 32px 28px;
   }

.verify-form {
width: 95%;
}

}

/* ════════════════════════════
   RWD MOBILE (≤640px)
════════════════════════════ */
@media (max-width: 640px) {
  .page-main { 
    padding: 16px 16px 48px; 
  }

  .page-title {
    font-size: 1.4rem;
}

  .verify-card {
    padding: 24px 16px 20px; 
  }

  .verify-desc { font-size: 1rem; 
    margin-bottom: 24px; 
  }

  /* 表單欄位改垂直排列 */
  .form-row { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 8px; 
    margin-bottom: 25px; 
  }

  .form-label { 
    width: auto; 
    font-size: 1.1rem;
  }

  .form-input {
        width: 100%;
        padding: 12px 16px;
    }

  .btn-verify { 
    width: 100%; 
    padding: 14px; 
  }

}


/* ════════════════════════════
   OTP 驗證頁面專用樣式
════════════════════════════ */

/* 已發送手機號碼提示 */
.otp-sent-notice {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 45px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.otp-phone {
  color: var(--orange);
  font-weight: 500;
  font-size: 1.9rem;
  letter-spacing: 0.05em;
}

/* 副說明文字 */
.otp-sub-desc {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 28px;
}

/* OTP 輸入列（input + 重新發送按鈕並排） */
.otp-input-row {
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.otp-code-input {
  max-width: 320px;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
  font-weight: 400;
}

/* 重新發送按鈕 */
.btn-resend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 15px;
  height: 48px;
  background: #6b7280;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, opacity 0.2s;
  flex-shrink: 0;
}

.btn-resend:hover:not(.disabled) {
  background: #4b5563;
}

.btn-resend.disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-resend:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.resend-icon {
  display: flex;
  align-items: center;
}

/* 返回按鈕 */
.btn-back {
  display: inline-flex;
  align-items: center;
  padding: 14px 20px;
  border: none;
  background-color: #277E5B;
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s, color 0.2s, transform 0.15s;
  letter-spacing: 0.03em;
}

.btn-back:hover {
  background-color: #126845;
  transform: translateY(-1px);
  letter-spacing: 0.1em;
}

.btn-back:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}


/* ════════════════════════════
   RWD MOBILE (≤640px)
════════════════════════════ */
@media (max-width: 640px) {
  .otp-sent-notice { font-size: 15px; }
  .otp-phone { font-size: 17px; }

  .otp-input-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .otp-code-input { max-width: 100%; width: 100%; }
  .btn-resend { width: 100%; justify-content: center; }

  .otp-btn-row { flex-direction: column; }
  .btn-back,
  .btn-otp-submit { width: 100%; justify-content: center; text-align: center; }
}


/* ════════════════════════════
   query.css
   申請進度查詢頁面專用樣式
════════════════════════════ */

/* ── 查詢卡片外框 ── */
.query-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── 欄寬定義（CSS variables 方便統一維護） ── */
:root {
  --col-id:     13%;
  --col-type:   15%;
  --col-name:   12%;
  --col-term:   16%;
  --col-grade:  13%;
  --col-amount: 10%;
  --col-status: 1fr;      /* 剩餘空間全給狀態欄 */
}

/* ── 表頭 ── */
.list-header {
  display: grid;
  grid-template-columns:
    var(--col-id)
    var(--col-type)
    var(--col-name)
    var(--col-term)
    var(--col-grade)
    var(--col-amount)
    var(--col-status);
  background: #fff8f0;
  border-bottom: 1.5px solid var(--border);
  padding: 0 10px;
}

.list-header > div {
  padding: 16px 12px;
  font-size: 1.2rem;
  font-weight: 500;
  color: #343435;
}

.list-header > div + div {
  border-left: 1px solid #ede8df;
}

/* ── 資料列表 ── */
.list-body {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ── 單筆資料列 ── */
.list-row {
  display: grid;
  grid-template-columns:
    var(--col-id)
    var(--col-type)
    var(--col-name)
    var(--col-term)
    var(--col-grade)
    var(--col-amount)
    var(--col-status);
  border-bottom: 1px solid #ede8df;
  padding: 0 10px;
  transition: background 0.15s;
  align-items: stretch;
}

.list-row:hover { background: #fdf9f5; }
.list-row--last { border-bottom: none; }

/* ── 儲存格 ── */
.cell {
  padding: 16px 12px;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.5;
  display: flex;
  align-items: center;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.cell + .cell {
  border-left: 1px solid #ede8df;
}

.col-id {
  white-space: normal;
  padding-right: 16px;
}

/* ── 狀態欄：狀態文字 + 操作按鈕並排 ── */
.col-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.status-text {
  font-size: 1.1rem;
  color: var(--text);
  white-space: nowrap;
}

.status-supplement { color: var(--orange); font-weight: 600; }
.status-rejected   { color: #9ca3af; }

/* ── 操作按鈕共用 ── */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.action-btn:hover { transform: translateY(-1px); }
.action-btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* 我要撤件 — 灰色外框 */
.btn-withdraw {
  background: #DDE9ED;
  color: #000;
  border-color: #A3BCC4;
}
.btn-withdraw:hover { background: #f3f4f6; }

/* 申請送件 — 灰色外框（暫存狀態） */
.btn-submit {
  background: #DDE9ED;
  color: #000;
  border-color: #A3BCC4;
}
.btn-submit:hover { background: #f3f4f6; }

/* 進入補件 — 灰色外框 */
.btn-supplement {
  background: #DDE9ED;
  color: #000;
  border-color: #A3BCC4;
}

.btn-supplement:hover { background: #f3f4f6; }

/* ════════════════════════════
   RWD TABLET (≤ 900px)
════════════════════════════ */
@media (max-width: 900px) {
  :root {
    --col-id:     120px;
    --col-type:   130px;
    --col-name:    80px;
    --col-term:   120px;
    --col-grade:   90px;
    --col-amount:  70px;
  }
  .list-header > div,
  .cell { padding: 14px 8px; font-size: 13px; }
}

/* ════════════════════════════
   RWD MOBILE (≤ 640px)
   表格改為卡片式堆疊
════════════════════════════ */
@media (max-width: 900px) {
  /* 隱藏桌機表頭 */
  .list-header { display: none; }

  /* 每列改為卡片 */
  .list-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 16px 16px 12px;
    border-bottom: 2px solid var(--border);
  }
  .list-row--last { border-bottom: none; }

  /* 每個 cell 顯示 data-label 作為標籤 */
  .cell {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 5px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0ebe3;
  }

  .cell + .cell {
      border-left: none;
  }

  .cell:last-child { border-bottom: none; }

  /* data-label 偽元素當左欄標題 */
  .cell::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--navy);
    font-size: 0.9rem;
    flex-shrink: 0;
    width: 90px;
    margin-right: 8px;
  }

  /* 狀態欄改垂直排 */
  .col-status {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1;
  }

  .status-text {
    font-size:0.9rem;
  }

  .action-btn {
    font-size: 0.9rem;  
  }
}


/* ════════════════════════════
   tutorial.css
   申請案例線上教學頁專用樣式
════════════════════════════ */

/* ── 教學卡片外框 ── */
.tutorial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 8px 0;
}

/* ── 步驟清單 ── */
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── 單一步驟列 ── */
.step-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 28px 40px;
  transition: background 0.15s;
  position: relative;
}

.step-row--last { border-bottom: none; }


/* 向下三角箭頭，固定在虛線末端 */

.step-connector {
    position: absolute;
    left: 72px;
    transform: translateX(-50%);
    bottom: -24px;
    width: 9px;
    min-height: 50px;
    background-image: url(../images/Line.png);
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
    background-size: 100%;
}

.step-row--last .step-connector { display: none; }

/* ── Step Badge（斜體圓形數字徽章） ── */
.step-badge {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #BBE6F9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  margin-top: 2px;
  position: relative;
  flex-shrink: 0;
  font-family: 'Noto Serif TC', serif;
}

.step-label {
  font-size: 1.1rem;
  color: #21556B;
  line-height: 1;
  font-weight: 600;
  position: relative;
  top: -18px;
  display: inline-block;
  text-shadow:
    2px 0 0 #BBE6F9,
    -2px 0 0 #BBE6F9,
    0 2px 0 #BBE6F9,
    0 -2px 0 #BBE6F9,
    2px 2px 0 #BBE6F9,
    -2px 2px 0 #BBE6F9,
    2px -2px 0 #BBE6F9,
    -2px -2px 0 #BBE6F9;
  -webkit-text-stroke: 0;
}

.step-num {
    font-size: 2rem;
    font-weight: 900;
    color: #21556B;
    line-height: 1;
    font-style: italic;
    margin-top: -15px;
    margin-left: -7px;
}

/* ── 步驟內容 ── */
.step-body {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  align-items: center;
}

/* 垂直分隔線 */
.step-divider {
  width: 1px;
  align-self: stretch;
  background: #727070;
  border-radius: 2px;
  margin: 0 24px;
  flex-shrink: 0;
  min-height: 40px;
}

/* 步驟標題 */
.step-title {
  font-size: 1.4rem;
  font-weight: 500;
  color: #343435;
  white-space: nowrap;
  width: 160px;
  flex-shrink: 0;
  padding-top: 2px;
  line-height: 1.5;
}

.step-title-sub {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
  margin-top: 2px;
}

/* 步驟說明文字 */
.step-desc {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.85;
  flex: 1;
  padding-top: 2px;
}

/* ════════════════════════════
   RWD TABLET (≤ 900px)
════════════════════════════ */
@media (max-width: 900px) {
  .step-row { padding: 22px 28px; gap: 0; }
  .step-badge { width: 54px; height: 54px; margin-right: 20px; }
  .step-num { font-size: 1.3rem; }
  .step-title { width: 130px; font-size: 1rem; }
  .step-divider { margin: 0 18px; }
  .step-desc { font-size: 1rem; }

  .step-connector {
    display: none;
}

}

/* ════════════════════════════
   RWD MOBILE (≤ 640px)
   步驟改為垂直堆疊
════════════════════════════ */
@media (max-width: 640px) {

  .step-row {
    flex-direction: column;
    padding: 20px 16px;
    gap: 14px;
  }

  /* badge + 標題 橫排 */
  .step-badge {
    width: 48px;
    height: 48px;
    margin-right: 0;
    margin-top: 0;
  }

.step-num {
    font-size: 1.7rem;
    margin-top: -15px;
}
  .step-label { 
    font-size: 0.9rem; 
  }

  /* 內容區改直排 */

  .step-body {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    flex: 1;
    min-width: 0;
    align-items: flex-start;
  }


  /* badge + 標題 在手機放同一行 */
  .step-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  

  /* 隱藏垂直分隔線，改水平線 */
  .step-divider {
    width: 100%;
    height: 1px;
    min-height: unset;
    margin: 4px 0 8px;
    background: #e0d8ce;
  }

  .step-title {
    width: auto;
    white-space: normal;
    font-size: 1.1rem;
  }

  .step-desc { font-size: 14px; }

  .step-title-sub {
    white-space: normal;
    font-size: 1rem;
    display: inline-block;
}

}


/* ════════════════════════════
   regulation.css
   法規說明頁面專用樣式
════════════════════════════ */

/* ── 法規卡片外框 ── */
.regulation-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 0 8px;
}

/* ── 法規清單 ── */
.regulation-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── 單筆法規項目 ── */
.regulation-item {
  padding: 24px 40px 28px;
  transition: background 0.15s;
}

.regulation-item:hover {  

}

/* ── 法規標題 ── */
.regulation-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.5;
}

.bullet {
  color: #606060;
  font-size: 0.5rem;
  flex-shrink: 0;
}

/* ── 法規連結 ── */
.regulation-link {
  display: inline-block;
  margin-left: 22px;  /* 對齊標題文字（跳過 bullet） */
  font-size: 1.15rem;
  color: #156197;
  text-decoration: underline;
  text-underline-offset: 3px;
  line-height: 1.6;
  transition: color 0.2s, opacity 0.2s;
}

.regulation-link:hover {
  color: #1e6a6a;
  opacity: 0.85;
}

.regulation-link:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ════════════════════════════
   RWD TABLET (≤ 900px)
════════════════════════════ */
@media (max-width: 900px) {
  .regulation-item { padding: 20px 28px 24px; }
  .regulation-title { font-size: 15px; }
  .regulation-link { font-size: 14px; }
}

/* ════════════════════════════
   RWD MOBILE (≤ 640px)
════════════════════════════ */
@media (max-width: 640px) {
  .regulation-item { padding: 18px 16px 20px; }
  .regulation-title { font-size: 15px; gap: 8px; }
  .regulation-link {
    margin-left: 20px;
    font-size: 14px;
    word-break: break-all;
  }
}


/* ════════════════════════════
   privacy.css — 個人資料蒐集聲明及服務條款
════════════════════════════ */

/* ── 卡片 ── */

.privacy-card {
background: #fff;
border-radius: var(--radius);
padding: 40px 48px 36px;
max-height: 47vh;
overflow-y: scroll;
}

.privacy-intro {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 32px;
  letter-spacing: 0.03em;
}

/* ── 條款段落 ── */
.privacy-section { margin-bottom: 28px; }

.privacy-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.privacy-section-body {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.9;
  letter-spacing: 0.03em;
}
.privacy-list {
  list-style: none;
  padding: 0;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  counter-reset: privacy-list-counter;
}
.privacy-list li {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.9;
  letter-spacing: 0.03em;
  padding-left: 2.5em;
  counter-increment: privacy-list-counter;
  position: relative;
}
.privacy-list li::before {
  content: counter(privacy-list-counter) ".";
  position: absolute;
  left: 1em;
  color: var(--text);
}

/* ── 同意勾選 ── */
.agree-row {
  margin-top: 32px;
  margin-bottom: 28px;
}
.agree-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.agree-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border: 2px solid #888;
  border-radius: 3px;
  accent-color: #156197;
  /*cursor: pointer;*/
  flex-shrink: 0;
}
.agree-text {
  font-size: 1rem;
  letter-spacing: 0.05em;
}
.agree-link {
  color: #156197;
}
.agree-link:hover { opacity: 0.8; }

/* ── 下一步按鈕 ── */
.privacy-actions {
  display: flex;
  justify-content: center;
}
.btn-next-step {
  background: #2F5C8E;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 40px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
}
.btn-next-step:not(:disabled):not(.disabled):hover {
  background: #0e4a74;
  transform: translateY(-1px);
}
.btn-next-step:disabled,
.btn-next-step.disabled {
  background: #aac4d8;
  cursor: not-allowed;
  opacity: 0.7;
  pointer-events: none;
}
.btn-next-step:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* ── RWD ── */
@media (max-width: 900px) {
  .privacy-card { padding: 32px 36px 40px; }
}
@media (max-width: 640px) {
  .privacy-card { padding: 20px 16px 28px; }
  .privacy-intro, .privacy-section-body, .privacy-list li { font-size: 15px; }
  .btn-next-step { width: 100%; }
}


/* ════════════════════════════
   apply-form.css
   填寫申請資料頁面專用樣式
════════════════════════════ */

/* ── 螢幕閱讀器專用 ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── 主要區域 ── */
.apply-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px 64px;
}

/* ════════════════════════════
   進度條
════════════════════════════ */
.progress-bar-wrap {
  background: #ffe3c7;
  border: 1px solid #ffc994;
  border-radius: 20px;
  padding: 20px 40px;
  margin-bottom: 28px;
}
.progress-steps {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: auto;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #c8bfb4;
    color: #fff;
    font-size: 2.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    padding-bottom: 5px;
}

.step-circle--active {
  background: linear-gradient(145deg, #e8883c, #d0330b);
}
.step-info {
  display: flex; 
  flex-direction: column; 
  gap: 4px;
}

.step-name {
  font-size: 1.35rem; 
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #727070;
}
.progress-step--active .step-name { color: #de3c01; }

.step-sub {
  font-size: 0.9rem; 
  color: #626262;
  letter-spacing: 0.05em;
}

.progress-arrow {
  display: flex; 
  align-items: center;
}

/* ════════════════════════════
   表單卡片
════════════════════════════ */
.form-card {
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  padding: 45px 50px 50px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* ════════════════════════════
   區塊標題
════════════════════════════ */
.form-section { margin-bottom: 40px; }
.section-header {
  background: #f9ebdc;
  border-radius: 8px;
  padding: 12px 0;
  text-align: center;
  margin-bottom: 24px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: #343435;
    letter-spacing: 0.1em;
}

/* ════════════════════════════
   表單格線
════════════════════════════ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 28px;
  margin-bottom: 25px;
}
.form-grid--full { grid-template-columns: 1fr; }
.field--full { grid-column: 1 / -1; }
.field--wide { grid-column: span 2; }

/* ════════════════════════════
   欄位標籤 & 輸入框
════════════════════════════ */
.field { 
  display: flex; 
  flex-direction: 
  column; gap: 6px; 
}

.field-label {
  font-size: 1.1rem;
  color: #262626;
  letter-spacing: 0.12em;
  display: flex; 
  align-items: center; 
  gap: 4px;
  font-weight: 500;
}

.required { 
  font-size: 1rem; 
  color: #c40a0a; 
}

.field-input {
  height: 48px;
  border: 1px solid #b9b9b9;
  border-radius: 8px;
  background: #fff;
  padding: 0 14px;
  font-size: 1rem;
  color: #1e1e1e;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.field-input:focus {
  border-color: #156197;
  box-shadow: 0 0 0 3px rgba(21,97,151,0.15);
}

/* 已填入（唯讀灰底 */
.field-input--filled {
  background: #f0f0f0;
  border-color: #acacac;
  color: #797979;
  cursor: default;
}

.field-input--addr { 
  flex: 1;
 }

.field-wrap {
position: relative;
display: flex; 
align-items: center;
}

/* ── 下拉選單 ── */
.field-select-wrap {
  position: relative;
  display: flex; 
  align-items: center;
}

.field-select {
  width: 100%; 
  height: 48px;
  border: 1px solid #b9b9b9;
  border-radius: 8px;
  background: #fff;
  padding: 0 36px 0 14px;
  font-size: 1rem;
  color: #1e1e1e;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, 
  box-shadow 0.2s;
}

.field-select:focus {
  border-color: #156197;
  box-shadow: 0 0 0 3px rgba(21,97,151,0.15);
}

.field-select-wrap::after {
  content: '';
  position: absolute; 
  right: 14px;
  width: 10px; 
  height: 6px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
}

.field-select-wrap--calendar {
  gap: 0;
}

.field-select-wrap--calendar .field-select {
  padding-right: 15px;
}

.field-select-wrap--calendar::after {
  display: none;
}

.calendar-icon-label {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
}
.calendar-icon {
  opacity: 0.7;
  pointer-events: none;
}

/* 地址列 */
.addr-row {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.addr-row .field-select-wrap { width: 180px; flex-shrink: 0; }
.addr-row .field-input--addr { min-width: 200px; }

/* ── Radio ── */
.radio-group {
  display: flex; 
  flex-wrap: wrap; 
  gap: 16px;
  align-items: center; 
  padding-top: 3px;
}

.radio-label {
  display: flex; a
  lign-items: center; 
  gap: 8px;
  font-size: 1.1rem; 
  color: #343435;
  cursor: pointer; 
  letter-spacing: 0.05em;
  align-items: center;
}

.radio-label input[type="radio"] {
  width: 18px; 
  height: 18px; 
  accent-color: #156197; 
  cursor: pointer;
}

/* ════════════════════════════
   子女區塊
════════════════════════════ */
.child-block {
  border: 1px solid #b9b9b9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}
.child-block-header {
  /*background: #f9ebdc;*/
  padding: 14px 24px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  border-bottom: 1px solid #b9b9b9;
}

.child-icon { 
  pacity: 0.8; 
}

.child-label {
  font-size: 1.2rem; 
  font-weight: 400; 
  color: #156197;
  letter-spacing: 0.12em;
}

.collapse-btn {
    background: #D9D9D9;
    border: none;
    cursor: pointer;
    color: #156197;
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 50%;
}

.collapse-btn svg { 
  transition: transform 0.3s;
  transform: rotate(180deg); 
}

.child-block-body {
    padding: 35px 44px;
}

.child-block-body.collapsed { display: none; }

/* ── 子區塊分隔線 ── */
.sub-divider {
  border: none; 
  border-top: 1px dashed #c8bfb4;
  margin: 30px 0;
}

/* ── 子區塊標題（Figma：#156197、dot #bb9f00） ── */
.sub-section { 
  margin-bottom: 4px; 
}

.sub-section-title {
  display: flex; 
  align-items: center;
   gap: 8px;
  font-size: 1.3rem; 
  font-weight: 500; 
  color: #156197;
  letter-spacing: 0.12em; 
  margin-bottom: 16px;
}

.sub-dot {
  width: 9px; 
  height: 9px; 
  border-radius: 50%;
  background: #156197; 
  flex-shrink: 0;
}

/* ── 金融帳戶列 ── */
.bank-row {
  display: flex; 
  align-items: center; 
  gap: 12px; 
  flex-wrap: wrap;
}

.bank-label {
  font-size: 1rem; 
  color: #262626;
  white-space: nowrap; 
  letter-spacing: 0.12em;
}
.bank-row .field-select-wrap { 
  flex: 1; 
  min-width: 180px; 
}

/* ════════════════════════════
   附件上傳
════════════════════════════ */
.attach-hint {
  font-size: 1rem; 
  color: #d0330b;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.upload-block {
    /* border-top: 1px solid #e8e0d8; */
    padding-top: 20px;
    margin-bottom: 25px;
}

.upload-block-title {
  display: flex; 
  align-items: center; 
  gap: 8px;
  font-size: 1.2rem; 
  color: #343435;
  letter-spacing: 0.05em;
  background: #eeeded; 
  border-radius: 8px;
  padding: 10px 20px; 
  margin-bottom: 25px;
  justify-content: center;
}

.upload-note {
  font-size: 1rem; 
  color: #343435;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

.upload-content {
  display: flex;
  gap: 35px; 
  flex-wrap: wrap;
  align-items: flex-start;
  width: 93%;
  margin: 0 auto;
}

/* 拖曳區（Figma：border 3px #3395bf、radius 15px、shadow） */
.drop-zone {
  flex-shrink: 0;
  width: 320px; min-height: 200px;
  border: 3px solid #3395bf;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; padding: 20px;
  transition: background 0.2s, border-color 0.2s;
}
.drop-zone.drag-over {
  background: #e8f4fa; border-color: #156197;
}

.drop-text {
  font-size: 1.1rem; 
  color: #1e1e1e;
  letter-spacing: 0.05em; 
  text-align: center;
}

/* 選擇檔案按鈕（Figma：bg #2b71aa、radius 5px） */
.btn-choose {
  display: inline-block;
  background: #2b71aa;
  color: #fff; 
  border-radius: 5px;
  padding: 7px 16px;
  font-size: 1rem; 
  letter-spacing: 0.05em; 
  cursor: pointer;
  transition: background 0.2s;
}

.btn-choose:hover { background: #1d5a8a; }

/* 已上傳清單 */
.uploaded-list { 
  flex: 1; 
  min-width: 200px; 
}

.uploaded-title {
  font-size: 1.1rem; 
  color: #343435;
  margin-bottom: 15px; 
  letter-spacing: 0.05em;
}

.uploaded-items { 
  list-style: none; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
}

.uploaded-item {
  display: flex; 
  align-items: center; 
  gap: 11px;
  font-size: 1.1rem; 
  color: #156197;
  letter-spacing: 0.05em;
  padding-bottom: 13px;
  border-bottom: 1px solid #bcbcbc;
}

.uploaded-item:last-child { 
  /*border-bottom: none; */
}

.uploaded-item span { flex: 1; }

.item-actions { 
  display: flex; 
  gap: 6px; 
  flex-shrink: 0; 
}

/* 編輯 / 刪除按鈕 */
.btn-edit, .btn-delete {
  display: inline-flex; 
  align-items: center; 
  gap: 4px;
  background: #505c66; 
  color: #fff; 
  border: none;
  border-radius: 5px; 
  padding: 4px 10px;
  font-size: 1rem; 
  cursor: pointer; 
  transition: background 0.2s;
}

.btn-edit:hover, .btn-delete:hover { background: #3a444d; }

/* ════════════════════════════
   新增子女按鈕
════════════════════════════ */
.btn-add-child {
  display: inline-flex; 
  align-items: center; gap: 10px;
  background: #d77632; 
  color: #fff; 
  border: none;
  border-radius: 8px; 
  padding: 12px 20px;
  font-size: 1.05rem; 
  cursor: pointer;
  margin-bottom: 20px;
  transition: background 0.2s, transform 0.15s;
}

.btn-add-child:hover { 
  background: #b8621f; 
  transform: translateY(-1px); 
}

/* ── 確認勾選 ── */
.confirm-check {
  display: flex; 
  align-items: center; 
  gap: 10px;
  font-size: 1.05rem; 
  color: #156197;
  cursor: pointer;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.confirm-check input[type="checkbox"] {
  width: 20px;
  height: 20px; 
  accent-color: #156197; 
  cursor: pointer;
}

/* ════════════════════════════
   操作按鈕列
════════════════════════════ */
.form-actions {
  display: flex; 
  justify-content: center; 
  gap: 20px; 
  flex-wrap: wrap;
}

.btn-save {
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  background: #09877c; 
  color: #fff; 
  border: none;
  border-radius: 8px; 
  padding: 12px 28px;
  font-size: 1rem; 
  letter-spacing: 0.12em; 
  cursor: pointer;
  transition: background 0.2s, 
  transform 0.15s;
}

.btn-save:hover { background: #067066; transform: translateY(-1px); }

.btn-next {
  display: inline-flex; align-items: center; gap: 8px;
  background: #2f5c8e; color: #fff; border: none;
  border-radius: 8px; padding: 12px 28px;
  font-size: 16px; 
  letter-spacing: 0.12em; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-next:hover { background: #234b76; transform: translateY(-1px); }
.btn-save:focus-visible, .btn-next:focus-visible {
  outline: 3px solid #156197; outline-offset: 2px;
}

@media (max-width: 1450px) {

.section-title {
    font-size: 1.25rem;
}

}


/* ════════════════════════════
   RWD TABLET (≤ 900px)
════════════════════════════ */
@media (max-width: 900px) {
  .apply-main { padding: 16px 24px 48px; }
  .form-card { padding: 24px 24px 32px; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .progress-steps { gap: 20px; }
  .step-name { font-size: 17px; }
  .drop-zone { width: 260px; }
}

/* ════════════════════════════
   RWD MOBILE (≤ 640px)
════════════════════════════ */
@media (max-width: 640px) {

  .apply-main { 
    padding: 12px 16px 40px; 
  }

  .form-card { 
    padding: 16px 16px 24px; 
  }

  .form-grid {
     grid-template-columns: 1fr; 
     gap: 20px; 
    }

  .field--wide { 
    grid-column: 1; 
  }

  .progress-bar-wrap { padding: 14px 16px; }
  .progress-steps { gap: 17px; flex-direction: column; align-items: flex-start; }
  .progress-arrow { display: none; }
  .step-circle { width: 44px; height: 44px; font-size: 1.4rem; }

  .step-name {
    font-size: 1.15rem;
    line-height: 100%;
}

  .addr-row { 
    flex-direction: column; 
  }

  .addr-row .field-select-wrap { 
    width: 100%; 
  }

  .addr-row .field-input { 
    width: 100%;
    padding: 11px 14px; 
  }

  .upload-content { 
    flex-direction: column; 
  }

  .drop-zone {
    width: 100%; 
  }

  .bank-row { 
    flex-direction: column; 
    align-items: flex-start; 
  }

  .field-wrap {
    width: 100%;
  }

  .uploaded-item {
    flex-wrap: wrap;
  }

.item-actions {
    width: 100%;
}

.upload-block-title {
    font-size: 1.05rem;
    letter-spacing: 0em;
    padding: 10px 15px;

}

  .bank-row .field-select-wrap { 
    width: 100%; 
  }

  .child-block-body { padding: 16px; }
  .form-actions { flex-direction: column; }
  .btn-save, .btn-next { width: 100%; justify-content: center; }

  .btn-add-child { 
    width: 100%; 
    justify-content: center; 
  }

}


/* ════════════════════════════
   confirm.css — 確認申請內容頁
════════════════════════════ */

.confirm-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 45px 50px 50px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

/* ── 區塊 ── */
.confirm-section {
  overflow: hidden;
  margin-bottom: 20px;
}

.confirm-section-header {
  background: #f9ebdc;
  padding: 14px 24px;
  text-align: center;
  border-radius: 8px;
}

.confirm-section-title {
  font-size: 1.4rem;
  font-weight: 500;
  color: #343435;
  letter-spacing: 0.12em;
}

/* ── 欄位清單 ── */
.confirm-fields {
  padding: 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.confirm-row {
  display: flex;
  align-items: baseline;
  gap: 0;
}
.confirm-row dt {
  font-size: 1.1rem;
  color: var(--text);
  font-family: 'Noto Sans TC', sans-serif;
  letter-spacing: 0.05em;
  white-space: nowrap;
  min-width: 170px;
  flex-shrink: 0;
  font-weight: 450;
}
.confirm-row dd {
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.03em;
  margin: 0;
  flex: 1;
}

.confirm-row dd a{
  color:#0485a3;
}

/* 附件欄位較寬 dt */
.confirm-row--attach dt { min-width: 230px; }

/* ── 子女摺疊區塊 ── */

.child-confirm-block {
    border: 1px solid #b9b9b9;
    border-radius: 10px;
    overflow: hidden;
    margin: 12px 0 0 0;
}

.child-confirm-header {
    /* background: #f9ebdc; */
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    border-bottom: 1px solid #b9b9b9;
}

.child-confirm-label {
  font-size: 1.2rem;
  color: #156197;
  letter-spacing: 0.12em;
}

.collapse-btn svg { transition: transform 0.3s; }

.child-confirm-body {
    /* padding: 20px 28px 24px; */
    width: 95%;
    margin: 0 auto;
}

.child-confirm-body.collapsed { display: none; }

/* ── 子區塊分隔 & 標題 ── */
.confirm-divider {
  border: none;
  border-top: 1px dashed #c8bfb4;
  margin: 20px 0;
}
.confirm-sub-title {
  font-size: 1.3rem;
  font-weight: 500;
  color: #156197;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── 操作按鈕列 ── */
.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 8px 0 4px;
  flex-wrap: wrap;
}
.btn-back-edit {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  color: var(--teal);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-back-edit:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}
.btn-confirm-submit {
  display: inline-flex;
  align-items: center;
  padding: 12px 32px;
  background: #156197;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-confirm-submit:hover {
  background: #0e4a74;
  transform: translateY(-1px);
}
.btn-confirm-submit:focus-visible,
.btn-back-edit:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* ── RWD TABLET ── */
@media (max-width: 900px) {
  .confirm-fields { padding: 16px 28px; }
  .confirm-row dt { min-width: 130px; }
  .confirm-row--attach dt { min-width: 170px; }
}

/* ── RWD MOBILE ── */
@media (max-width: 640px) {
  .confirm-fields { padding: 14px 16px; gap: 14px; }
  .confirm-row { flex-direction: column; gap: 2px; }
  .confirm-row dt { min-width: unset; font-weight: 600; }
  .confirm-row--attach dt { min-width: unset; }

  .child-confirm-body { padding: 14px 16px 18px; }
  .child-confirm-block { margin: 8px 8px 0; }

  .confirm-actions { flex-direction: column; }
  .btn-back-edit, .btn-confirm-submit {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}


/* ════════════════════════════
   success.css — 申請成功送出頁
════════════════════════════ */

/* ── 成功卡片 ── */
.success-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 4rem 3rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* ── 主標題（橘色、letter-spacing） ── */
.success-title {
  font-size: 2rem; 
  font-weight: 500;
  color: #d0330b;
  letter-spacing: 0.15em;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

/* ── 資料列 ── */
.success-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  text-align: left;
}
.success-row {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.success-row dt {
  font-size: 1.2rem;  
  color: var(--text);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.success-row dd {
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  margin: 0;
}

/* 申請單號（藍綠色粗體） */
.success-code {
  font-size: 1.4rem !important;
  font-weight: 700;
  color: #156197;
  letter-spacing: 0.1em;
}

/* ── 提示文字 ── */
.success-hint {
  font-size: 1rem;     /* 15px */
  color: var(--text-muted);
  letter-spacing: 0.05em;
  line-height: 1.7;
  margin-top: -0.5rem;
}

/* ── 操作按鈕列 ── */
.success-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* 返回修改（綠色外框） */
.btn-back-modify {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--teal);
  border-radius: 0.5rem;
  color: var(--teal);
  background: transparent;
  font-size: 0.9375rem;     /* 15px */
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-back-modify:hover {
  background: var(--teal-light);
  transform: translateY(-0.0625rem);
}

/* 確認送出（深藍綠色實心） */
.btn-confirm-done {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  background: #09877c;
  border: none;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.9375rem;     /* 15px */
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-confirm-done:hover {
  background: #067066;
  transform: translateY(-0.0625rem);
}
.btn-back-modify:focus-visible,
.btn-confirm-done:focus-visible {
  outline: 0.1875rem solid var(--teal);
  outline-offset: 0.125rem;
}

/* ════════════════════════════
   RWD MOBILE (≤ 640px)
════════════════════════════ */
@media (max-width: 640px) {
  .success-card {
    padding: 2.5rem 1rem 2rem;
  }
  .success-title {
    font-size: 1.375rem;    /* 22px */
    letter-spacing: 0.1em;
  }
  .success-info { align-items: center; text-align: center; }
  .success-row { justify-content: center; }
  .success-code { font-size: 1.125rem; }  /* 18px */
  .success-actions { flex-direction: column; width: 100%; }
  .btn-back-modify,
  .btn-confirm-done {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
  }
}

/* ── 切片上傳進度條 (chunkedUpload.js 搭配使用) ─────────── */
.upload-progress-wrap {
  margin: 8px 0 4px;
  padding: 6px 10px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}

.upload-progress-label {
  font-size: 0.8rem;
  color: #555;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-progress-bar-bg {
  position: relative;
  background: #e0e0e0;
  border-radius: 4px;
  height: 12px;
  overflow: hidden;
}

.upload-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal, #2d8c8c), #5bc5c5);
  border-radius: 4px;
  transition: width 0.25s ease;
}

.upload-progress-pct {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: #333;
  line-height: 1;
}
