/* =========================================================
   橙澤國際 CHEN ZE INTERNATIONAL — style.css
   Breakpoint: 766px (Bootstrap md-ish custom breakpoint)
   ========================================================= */

:root {
  /* Color Styles */
  --color-blue: #8AB0DD;
  --color-yellow: #F6A900;
  --color-red: #BA3E4A;
  --color-dark-gray: #444444;
  --color-mid-gray: #888888;
  --color-light-gray: rgba(189, 188, 188, 1);
  --color-super-light-gray: rgba(237, 235, 235, 1);
  --color-super-light-gray2: rgba(237, 235, 235, .5);
  --color-white: #FFFFFF;

  /* Effect Styles */
  --shadow: 0 3.5px 3.5px rgba(0, 0, 0, .1), 0 3.5px 3.5px rgba(0, 0, 0, .1);
  --button-shadow: 4px 4px 4px rgba(0, 0, 0, .25), -4px -4px 4px rgba(255, 255, 255, 1);
}

/* =========================================================
   Fonts
   ========================================================= */
@font-face-fallback {}

/* placeholder, fonts loaded via <link> in head */

html {
  scroll-behavior: smooth;
}

html, body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

body {
  font-family: 'Noto Sans TC', sans-serif;
  color: var(--color-dark-gray);
  background: #F7F6F3;
  overflow-x: hidden;
  background-image: url(../images/bg.jpg);
  background-size: 100% auto;
}

a {
  text-decoration: none;
  transition: color .25s ease;
}

a:hover {
  text-decoration: none;
}

a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================================================
   Loading screen
   ========================================================= */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: opacity .6s ease, visibility .6s ease;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: min(78%, 300px);
}

.loading-logo {
  height: 50px;
  width: auto;
  margin: 0 auto;
}

.loading-bar-track {
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: var(--color-super-light-gray);
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-yellow));
}

.loading-percent {
  font-family: 'Marcellus', serif;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--color-dark-gray);
}

@media (prefers-reduced-motion: reduce) {
  .loading-screen {
    transition: none;
  }
}


.txt-huge-title {
  font-family: 'Marcellus', serif;
  font-size: 90px;
  letter-spacing: 10px;
  line-height: 26px;
  margin: 0;
}

.txt-title {
  font-family: 'Marcellus', serif;
  font-size: 40px;
  letter-spacing: 0;
  line-height: 100%;
  margin: 0;
}

.txt-subtitle {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 28px;
}

.txt-question-title {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 2px;
  line-height: 48px;
}

.txt-text {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 26px;
}

.txt-nav {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 2px;
  line-height: 20px;
}

.txt-small {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0;
  line-height: 100%;
}

.txt-number {
  font-family: 'Marcellus', serif;
  font-size: 22px;
  letter-spacing: 2px;
  line-height: 26px;
}

/* Mobile text styles < 766px */
@media (max-width:765px) {
  .txt-huge-title {
    font-size: 24px;
    letter-spacing: 6.8px;
    line-height: 26px;
  }

  .txt-title {
    font-size: 34px;
    letter-spacing: 0;
    line-height: 100%;
  }

  .txt-subtitle {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 24px;
  }

  .txt-question-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 32px;
  }

  .txt-small-title {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -3px;
    line-height: 22px;
  }
}

/* =========================================================
   Color utility classes
   ========================================================= */
.c-blue {
  color: var(--color-blue);
}

.c-yellow {
  color: var(--color-yellow);
}

.c-red {
  color: var(--color-red);
}

.c-dark-gray {
  color: var(--color-dark-gray);
}

.c-mid-gray {
  color: var(--color-mid-gray);
}

.c-light-gray {
  color: var(--color-light-gray);
}

.c-super-light-gray {
  color: var(--color-super-light-gray);
}

.c-white {
  color: var(--color-white);
}

.bg-blue {
  background-color: var(--color-blue);
}

.bg-yellow {
  background-color: var(--color-yellow);
}

.bg-red {
  background-color: var(--color-red);
}

.bg-dark-gray {
  background-color: var(--color-dark-gray);
}

.bg-super-light-gray {
  background-color: var(--color-super-light-gray);
}

/* =========================================================
   Section spacing
   ========================================================= */
.section {
  padding: 110px 0;
  position: relative;
  scroll-margin-top: 100px;
}

#top, #mission, #vision, #services, #videos, #clients, #contact {
  scroll-margin-top: 100px;
}

@media (max-width:765px) {
  #top, #mission, #vision, #services, #videos, #clients, #contact {
    scroll-margin-top: 76px;
  }
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.section-head .eyebrow {
  color: var(--color-dark-gray);
}

.section-head .zh-sub {
  color: var(--color-blue);
  margin-top: 6px;
  display: block;
}

@media (max-width:765px) {
  .section {
    padding: 60px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }
}

/* =========================================================
   Navbar
   ========================================================= */
.site-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 1300px);
  z-index: 1000;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav .brand-logo {
  height: 52px;
}

.site-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.site-nav .nav-links a {
  color: var(--color-dark-gray);
  position: relative;
  padding-bottom: 4px;
}

.site-nav .nav-links a:hover {
  color: var(--color-blue);
  text-decoration: none;
}

.site-nav .nav-links a.active {
  color: var(--color-blue);
  font-weight: 700;
}

.site-nav .nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-blue);
  border-radius: 2px;
}

@media (max-width:765px) {
  .site-nav .nav-links a.active::after {
    display: none;
  }

  .site-nav .nav-links a.active {
    color: var(--color-blue);
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--color-dark-gray);
}

@media (max-width:765px) {
  .site-nav {
    padding: 10px 16px;
    top: 10px;
  }

  .site-nav .brand-logo {
    height: 34px;
  }

  .nav-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 25px;
  }

  .site-nav .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 16px;
    gap: 14px;
    display: flex;
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    -webkit-clip-path: inset(0 0 100% 0);
    pointer-events: none;
    transform-origin: top;
    transition: opacity .3s ease, clip-path .45s cubic-bezier(.4, 0, .2, 1);
  }

  .site-nav .nav-links.show {
    opacity: 1;
    clip-path: inset(0 0 0% 0);
    -webkit-clip-path: inset(0 0 0% 0);
    pointer-events: auto;
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 140px;
  background: linear-gradient(180deg, #DCE7F5 0%, #EFF3F8 55%, #F7F6F3 100%);
  clip-path: url(#heroClipDesktop);
  -webkit-clip-path: url(#heroClipDesktop);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg picture, .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 70% at 15% 0%, rgba(138, 176, 221, .55), transparent 60%),
    radial-gradient(90% 60% at 90% 10%, rgba(138, 176, 221, .35), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
}

.hero-logotype {
  margin: 0;
  opacity: 0;
}

body.loaded .hero-logotype {
  animation: fadeUp 1s ease .2s forwards;
}

.hero-logotype img {
  max-width: 90%;
  height: auto;
  margin: 0 auto;
}

.hero .hero-en {
  color: var(--color-white);
  letter-spacing: 4px;
  margin-top: 14px;
  opacity: 0;
  text-shadow: 0 2px 10px rgba(60, 80, 110, .35);
}

body.loaded .hero .hero-en {
  animation: fadeUp 1s ease .5s forwards;
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  z-index: 3;
}

.scroll-indicator .line {
  width: 1px;
  height: 46px;
  background: var(--color-yellow);
}

body.loaded .scroll-indicator .line {
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  50.01% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width:765px) {
  .hero {
    min-height: 420px;
    padding: 100px 0 60px;
    clip-path: url(#heroClipMobile);
    -webkit-clip-path: url(#heroClipMobile);
  }

  .hero-logotype img {
    max-width: 220px;
  }
}

/* =========================================================
   Question / Photo card section
   ========================================================= */
.question-photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 5/3;
}

.question-photo img.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.question-photo img.slide.is-active {
  opacity: 1;
}

.question-card {
  position: absolute;
  left: 0;
  top: 0;
  max-width: 400px;
  background: var(--color-super-light-gray);
  border-radius: 20px;
  box-shadow: var(--button-shadow);
  padding: 40px 36px;
  margin: 36px;
  min-height: 176px;
}

.question-card .q-text {
  position: absolute;
  left: 36px;
  right: 36px;
  top: 40px;
  color: var(--color-dark-gray);
  opacity: 0;
  transition: opacity 1.2s ease;
}

.question-card .q-text.is-active {
  opacity: 1;
  position: relative;
  left: 0;
  right: 0;
  top: 0;
}

.question-card .txt-question-title {
  color: var(--color-dark-gray);
}

@media (max-width:765px) {
  .question-photo {
    border-radius: 16px;
    margin-top: 10px;
    aspect-ratio: 5/4;
  }

  .question-card {
    max-width: 78%;
    padding: 20px 22px;
    margin: 16px;
    border-radius: 16px;
    min-height: 110px;
  }

  .question-card .q-text {
    left: 22px;
    right: 22px;
    top: 20px;
  }
}

/* =========================================================
   Mission section
   ========================================================= */
.mission-col {
  position: relative;
  text-align: center;
  padding: 0 40px;
}

.mission-col:last-child:after {
  display: none;
}

.mission-col .num {
  color: var(--color-light-gray);
  display: block;
  margin-bottom: 18px;
}

.mission-col .zh {
  color: var(--color-dark-gray);
  margin-bottom: 14px;
}

.mission-col .en {
  color: var(--color-mid-gray);
}

.mission-col+.mission-col::after {
  content: '';
  position: absolute;
  z-index: 1;
  left: 0;
  top: 15%;
  width: 1px;
  height: 70%;
  display: block;
  background-color: var(--color-light-gray);
}

@media (max-width:765px) {
  .mission-col+.mission-col {
    padding-top: 34px;
    margin-top: 34px;
  }

  .mission-col+.mission-col::after {
    left: 25%;
    top: 0;
    width: 50%;
    height: 1px;
  }
}

/* =========================================================
   Vision section (dark)
   ========================================================= */
.vision-section {
  background: url('../images/vision-bg.jpg') center/cover no-repeat;
  background-blend-mode: multiply;
  color: var(--color-white);
  position: relative;
}

.vision-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .3);
}

.vision-section .container {
  position: relative;
  z-index: 2;
}

.vision-section .section-head .txt-title {
  color: var(--color-white);
}

.vision-item {
  text-align: center;
}

.vision-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--color-super-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  box-shadow: var(--button-shadow);
}

.vision-icon img {
  width: 38px;
  height: 38px;
}

.vision-item .zh-title {
  color: var(--color-white);
  margin-bottom: 8px;
}

.vision-item .desc {
  color: var(--color-light-gray);
}

/* =========================================================
   Services section
   ========================================================= */
.svc-tile {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.svc-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.svc-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .3);
  transition: background .35s ease;
}

.svc-tile:hover::after {
  background: rgba(0, 0, 0, .6);
}

.svc-tile:hover img {
  transform: scale(1.06);
}

.svc-label {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 2;
  color: var(--color-white);
}

.svc-label .en {
  display: block;
  color: var(--color-super-light-gray);
  margin-top: 4px;
}

.svc-tall {
  height: 520px;
}

.svc-short {
  height: 250px;
}

.svc-mid {
  height: 520px;
}

.svc-text-block {
  padding: 30px 10px;
}

@media (max-width:765px) {
  .svc-tall, .svc-mid {
    height: 280px;
  }

  .svc-short {
    height: 180px;
  }
}

/* =========================================================
   Videos section
   ========================================================= */
.video-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--color-mid-gray);
}

.video-nav button {
  border: 1px solid var(--color-light-gray);
  background: transparent;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  color: var(--color-dark-gray);
  cursor: pointer;
  transition: .25s;
}

.video-nav button:hover {
  background: var(--color-blue);
  color: #fff;
  border-color: var(--color-blue);
}

.video-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.video-card {
  flex: 0 0 260px;
  cursor: pointer;
}

.video-thumb {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-label {
  color: var(--color-mid-gray);
  margin-top: 12px;
  display: block;
}

.video-title {
  color: var(--color-dark-gray);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width:765px) {
  .video-card {
    flex: 0 0 200px;
  }
}

/* =========================================================
   Clients section
   ========================================================= */
.clients-section {
  background: var(--color-super-light-gray2);
  background-blend-mode: multiply;
  backdrop-filter: blur(10px);
}

.client-card {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 30px 16px;
  text-align: center;
  height: 100%;
}

.client-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 1px solid var(--color-super-light-gray);
}

.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-card .name {
  color: var(--color-mid-gray);
}

/* =========================================================
   Contact section
   ========================================================= */
.contact-info .txt-title {
  color: var(--color-dark-gray);
}

.contact-info .lead-text {
  color: var(--color-dark-gray);
  margin: 20px 0 26px;
}

.contact-info .info-line {
  color: var(--color-mid-gray);
  margin-bottom: 6px;
}

.contact-info .info-line b {
  color: var(--color-dark-gray);
  font-weight: 700;
}

.form-label-custom {
  color: var(--color-dark-gray);
  font-weight: 400;
  margin-bottom: 6px;
  display: block;
}

.required-mark {
  color: var(--color-red);
}

.form-control-custom {
  width: 100%;
  background: #FFF;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: var(--color-dark-gray);
  font-family: 'Noto Sans TC', sans-serif;
}

.form-control-custom:focus {
  background: #fff;
  border-color: var(--color-blue);
  outline: none;
}

select.form-control-custom {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23888' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

textarea.form-control-custom {
  min-height: 100px;
  resize: vertical;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.captcha-code {
  font-family: 'Marcellus', serif;
  font-size: 26px;
  letter-spacing: 6px;
  background: #e9e9e9;
  padding: 8px 22px;
  border-radius: 8px;
  color: #555;
  user-select: none;
}

.privacy-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.privacy-check a {
  color: var(--color-blue);
}

.btn-submit {
  background: var(--color-super-light-gray);
  border-radius: 24px;
  box-shadow: var(--button-shadow);
  border: none;
  padding: 14px 70px;
  color: var(--color-blue);
  font-weight: 700;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: .25s;
  cursor: pointer;
  margin: 0 auto;
}

.btn-submit:hover {
  background: var(--color-blue);
  color: #fff;
}

@media (max-width:765px) {
  .btn-submit {
    display: block;
  }
}

/* =========================================================
   Footer
   ========================================================= */
.footer-watermark {
  overflow: hidden;
  text-align: center;
  padding-top: 20px;
  margin-bottom: -5px;
}

.footer-watermark .txt-huge-title {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: var(--color-blue);
  font-size: 64px;
  letter-spacing: 12px;
  white-space: nowrap;
}

.site-footer {
  background: var(--color-blue);
  color: var(--color-white);
  padding: 36px 0 18px;
}

.site-footer .footer-logo {
  height: 60px;
  max-width: 100%;
  margin-bottom: 10px;
}

@media (max-width:765px) {
  .site-footer .footer-logo {
    height: 44px;
  }
}

.site-footer .col-title {
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 14px;
}

.site-footer a {
  color: rgba(255, 255, 255, .85);
}

.site-footer a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-link {
  letter-spacing: 2px;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .85;
  transition: opacity .25s ease, transform .25s ease;
}

.footer-social a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .25);
  margin-top: 26px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width:765px) {
  .footer-watermark .txt-huge-title {
    font-size: 26px;
    letter-spacing: 4px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================================================
   Reveal-on-scroll animation utility
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-logotype, .hero .hero-en {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .scroll-indicator .line {
    animation: none;
  }

  .site-nav .nav-links {
    transition: none !important;
  }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: .3s;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.btn-custom {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 8px;
  background-color: transparent;
  border: solid 1px #fff;
  border-radius: 3px;
}

.btn-custom:hover {
  color: var(--color-blue) !important;
  background-color: #fff;
}

/* Modal */
/* 讓 modal-dialog 置中 */

.modal-dialog {
	max-width: none !important;
	margin: 0;
}

.modal-dialog.modal-dialog-centered {
	display: flex;
	align-items: center;
	justify-content: center;
	/*min-height: calc(100vh - 1rem);*/
	/* 保留一點邊界 */
}

/* modal-content 改為定位基準，確保按鈕對齊此容器 */
.custom-modal-content {
  background: transparent;
  border: none;
  display: flex;
  justify-content: center;
  position: relative; /* 新增：讓 close-btn 以此為定位基準 */
  width: 85vw;        /* 將寬度控制拉到 content 層，讓按鈕能精準定位在邊角 */
  max-width: 100%;
  margin: 0 auto;
}

/* modal-body 核心樣式 */
.custom-modal-content .modal-body {
  background-color: rgba(255, 255, 255, 0.95);
  width: 100%;        /* 改為 100% 填滿 custom-modal-content */
  max-height: 90vh;
  padding: 2rem 2.5rem;
  border-radius: 1rem;
  overflow-y: auto;   /* 內部內容捲動時，不會影響到外部的 close-btn */
  position: relative;
  display: flex;
  flex-direction: column;
}

/* 自訂右上角圓形關閉按鈕（固定於右上角，且壓在邊界上） */
.close-btn {
  position: absolute;
  z-index: 1520;
  top: -15px;         /* 向上偏置，達到圖片中一半壓在白底邊界的效果 */
  right: -15px;       /* 向右偏置 */
  background-color: #333;
  color: #fff;
  border: 2px solid #fff; /* 加上白邊會更顯眼精緻 */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.close-btn:hover {
  color: #fff;
  background-color: #555;
  transform: scale(1.05);
}

.close-btn i {
  pointer-events: none;
}

/* RWD 處理 */
@media (max-width: 766px) {
  .custom-modal-content {
    width: 90vw;
  }
  
  .custom-modal-content .modal-body {
    height: 85vh;
    padding: 3rem 1.5rem 2rem 1.5rem;
  }

  /* 行動裝置上可適度調小微調位置 */
  .close-btn {
    top: -10px;
    right: -10px;
  }
}

.close-btn:hover {
	color: #fff;
	background-color: #666;
}

.close-btn i {
	pointer-events: none;
}

.modal-backdrop {
	background-color: rgb(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.modal-backdrop.show {
	opacity: 1;
}

.modal-body {
	color: #333;
	font-size: 16px;
	font-weight: 450px;
	line-height: 1.8;
}

.modal-body hr {
    display: block;
    height: 1px !important;
    border: 0;
    background: var(--color-light-gray);
    margin: 0 0 25px;
    flex-shrink: 0;
}

.modal-body h3 {
	font-family: "Noto Sans TC", sans-serif;
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 18px 0;
}

.modal-body ol {
  margin-left: 0;
  padding-left: 15px;
}

.modal-body ul {
  list-style-type: disc;
  margin-bottom: 1rem;
}

.modal-body ul li::marker {
    font-size: 0.5rem;     /* 圓點大小 */
}

.modal-body ol li::marker {
  font-size: 20px;
	font-weight: 600;
}

.modal-body ol > li > ul > li > ol > li::marker {
  font-size: 16px;
	font-weight: 450 !important;
}

@media (max-width:766px) {
	.modal-body, .modal-body ol > li > ul > li > ol > li::marker {
		font-size: 15px;
	}

	.modal-body h3, .modal-body ol li::marker {
		font-size: 18px;
	}
}

/* ==============================
   表單送出成功 Modal
============================== */

/*
桌機最大寬度 400px
手機左右各保留 15px
*/
.modal.success-modal .modal-dialog {
  width: calc(100% - 30px) !important;
  max-width: 400px !important;
  margin-left: auto;
  margin-right: auto;
}

/* Modal 外框 */
.success-modal .custom-modal-content {
  overflow: hidden;
  border: none;
  background-color: #fff;
}

/* Logo 淺藍色區域 */
.success-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 145px;
  padding: 30px 55px;
  background-color: #dceef3;
}

/* Logo */
.success-modal-logo {
  display: block;
  width: auto;
  max-width: 185px;
  max-height: 70px;
  object-fit: contain;
}

/* 右上關閉按鈕 */
.success-modal-header .close-btn {
  position: absolute;
  top: 15px;
  right: 18px;
  z-index: 2;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  outline: none;
  background-color: transparent;
  color: #333;
  font-size: 30px;
  font-weight: 300;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.success-modal-header .close-btn:hover,
.success-modal-header .close-btn:focus {
  outline: none;
  opacity: 1;
}

/* 下方文字區域 */
.success-modal-body {
  padding: 35px 30px 28px;
  background-color: #fff;
  text-align: center;
}

/* 標題 */
.success-modal-body h3 {
  margin: 0 0 18px;
  color: #222;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

/* 一般內文 */
.success-modal-body p {
  margin: 0 0 15px;
  color: #444;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

/* 回覆說明 */
.success-modal-body .reply-text {
  margin-bottom: 23px;
  color: #666;
}

/* 自動關閉倒數 */
.success-modal-body .auto-close-text {
  padding-top: 17px;
  border-top: 1px solid #ddd;
  color: #999;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

/* 倒數秒數 */
.success-modal-body .auto-close-text span {
  color: #5f94a2;
  font-weight: 600;
}

/* ==============================
   手機版
============================== */

@media (max-width: 575.98px) {
  .success-modal-header {
    min-height: 125px;
    padding: 25px 50px;
  }

  .success-modal-logo {
    max-width: 160px;
    max-height: 60px;
  }

  .success-modal-header .close-btn {
    top: 12px;
    right: 14px;
  }

  .success-modal-body {
    padding: 30px 22px 25px;
  }

  .success-modal-body h3 {
    margin-bottom: 15px;
    font-size: 20px;
  }

  .success-modal-body p {
    font-size: 14px;
    line-height: 1.8;
  }

  .success-modal-body .reply-text {
    margin-bottom: 20px;
  }
}