/* =============================== */
/* =============================== */
/* ![Modified Styles for specific sections]! */
/* =============================== */
/* .section { */
body {
  background: #044d4c;
  /* background: linear-gradient(135deg, #a1ff7e 0%, #7ee83f 20%, #5fd38d 40%, #3ecbb1 60%, #4facfe 80%, #a1ff7e 100%); */
  background-size: 400% 400%;
  animation: modern-gradient 15s ease infinite;
  /* max-width: 900px; */
}

.section{
  background: #034D48;
}

.submit-btn .btn-image {
  max-width: 168px;
}

.slider-layer.s7-g1-1 {
  top: -11%;
  width: 100%;
  padding: 0 10%;
}

#section-contact {
  background: linear-gradient(135deg, #a1ff7e 0%, #7ee83f 20%, #5fd38d 40%, #3ecbb1 60%, #4facfe 80%, #a1ff7e 100%);
  background-size: 400% 400%;
  animation: modern-gradient 15s ease infinite;
}

@keyframes modern-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.cta-menu-box {
  border: none;
  box-shadow: none;
}

/* Remove white border on hover and keep position fixed */
.cta-menu-box:hover {
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15), 0 12px 35px rgba(0, 0, 0, 0.1) !important;
  /* Removed: inset 0 1px 0 rgba(255, 255, 255, 0.9) */
  transform: translateY(-50%) !important; /* Keep original position */
}

@media (max-width: 1100px) {
  .cta-menu-box:hover {
    transform: none !important; /* Keep original position for mobile */
  }
}

/* Remove all transforms on CTA element hover */
.cta-menu-box .div-cta-element:hover {
  transform: none !important;
}

/* Remove all transforms on icon hover */
.cta-menu-box .div-cta-element:hover .cta-icon {
  transform: none !important;
}

/* Remove translateY on icon box hover */
.cta-menu-box .div-cta-element:hover .div-cta-icon-box.cta-v2 {
  transform: none !important;
}

/* CTA element background color */
.cta-menu-box .div-cta-icon-box.cta-v2 {
  background: linear-gradient(135deg, #0f403f 0%, #182648 100%) !important;
  box-shadow: 0 8px 25px rgba(15, 64, 63, 0.25), 0 3px 10px rgba(15, 64, 63, 0.15) !important;
  /* Removed: inset 0 1px 0 rgba(255, 255, 255, 0.3) */
}

.cta-menu-box .div-cta-element:hover .div-cta-icon-box.cta-v2 {
  background: linear-gradient(135deg, #182648 0%, #0f403f 100%) !important;
  box-shadow: 0 12px 35px rgba(24, 38, 72, 0.35), 0 5px 15px rgba(24, 38, 72, 0.2) !important;
  /* Removed: inset 0 1px 0 rgba(255, 255, 255, 0.4) */
}

#section-contact {
  padding: 0;
}

#section-contact .edm-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

#section8 .edm-container {
  background: #182648;
}

.footer {
  // --->
  // --->
  width: 100%;
  height: auto;
  max-width: 100%;

  overflow: hidden;
  // --->
}

.footer-img {
  // --->
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  max-width: 100%;

  // --->
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.footer-img-1 {
  margin-top: -15%;
}
.footer-img-2 {
  width: 100%;
  height: 500px;
  max-height: 500px;
  object-fit: cover;
  object-position: center;
}

/* ---> */
.s8-g1-1 .custom-slider {
  border-radius: 0;
}

/* Contact form container background */
.contact-form-container {
  position: relative;
  background-image: url("../s-contact/s-contact-bg-1.avif");
  background-size: cover;
  background-position: 0% 0%;
  background-repeat: no-repeat;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
}

/* Contact form container text color */
.contact-form-container,
.contact-form-container * {
  color: #0f403f !important;
}

/* Ensure error messages stay red */
.contact-form-container .error-message {
  color: red !important;
}

/* Contact form input placeholder color */
.contact-form-container input::placeholder,
.contact-form-container textarea::placeholder {
  color: #0f403f !important;
  opacity: 0.5 !important;
}

/* For better cross-browser support */
.contact-form-container input::-webkit-input-placeholder,
.contact-form-container textarea::-webkit-input-placeholder {
  color: #0f403f !important;
  opacity: 0.5 !important;
}

.contact-form-container input::-moz-placeholder,
.contact-form-container textarea::-moz-placeholder {
  color: #0f403f3c !important;
  opacity: 0.5 !important;
}

.contact-form-container input:-ms-input-placeholder,
.contact-form-container textarea:-ms-input-placeholder {
  color: #0f403fb8 !important;
  opacity: 0.5 !important;
}

/* Section Card 清新大地風格增強 - 不干擾原有尺寸和位置設定 */
.section-card {
  /* 動畫性能優化 */
  transform: translateZ(0); /* 啟用硬體加速 */
  backface-visibility: hidden; /* 避免背面閃爍 */
  perspective: 1000px; /* 改善 3D 渲染 */

  /* 清新大地風格基礎 - 不覆蓋原有樣式 */
  transition: all 0.2s ease;
}

/* 清新綠色大地邊框效果 */
.section-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #4ade80, #22c55e, #16a34a, #15803d, #166534, #14532d, #86efac, #bbf7d0);
  background-size: 300% 300%;
  border-radius: 10px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.2s ease;
  animation: nature-glow 2s linear infinite;
}

@keyframes nature-glow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Hover 時顯示霓虹邊框 */
.section-card:hover::before {
  opacity: 0.8;
}

/* 清新大地發光效果 */
.section-card:hover {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.6), 0 0 40px rgba(22, 163, 74, 0.4), 0 0 60px rgba(74, 222, 128, 0.3), inset 0 0 20px rgba(187, 247, 208, 0.2);
  border-color: #22c55e;
}

/* 自然清新圖片濾鏡效果 */
.section-card:hover .section-card-thumbnail img {
  filter: contrast(1.1) brightness(1.15) saturate(1.2) hue-rotate(-5deg) sepia(0.1);
  transition: filter 0.2s ease;
}

.section-card-thumbnail img {
  pointer-events: none;
  user-select: none;
  /* 圖片動畫優化 */
  transform: translateZ(0); /* 啟用硬體加速 */
  backface-visibility: hidden;
  transition: filter 0.2s ease;
}

/* 自然能量流動畫效果 */
.section-card:hover .section-card-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22c55e, transparent);
  animation: nature-stream 1.5s linear infinite;
  z-index: 3;
}

@keyframes nature-stream {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* 自然葉脈紋路效果 */
.section-card:hover .section-card-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(90deg, rgba(34, 197, 94, 0.08) 1px, transparent 1px), linear-gradient(180deg, rgba(74, 222, 128, 0.08) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.4;
  z-index: 1;
  animation: leaf-pulse 3s ease-in-out infinite alternate;
}

@keyframes leaf-pulse {
  0% {
    opacity: 0.2;
    background-size: 12px 12px;
  }
  100% {
    opacity: 0.5;
    background-size: 14px 14px;
  }
}

/* Card highlight 狀態 - 當對應 section 在視野中時 */
.section-card.current {
  border-color: #16a34a !important;
  box-shadow: 0 0 25px rgba(22, 163, 74, 0.8), 0 0 45px rgba(16, 185, 129, 0.5), 0 0 65px rgba(74, 222, 128, 0.4), inset 0 0 25px rgba(187, 247, 208, 0.3) !important;
  transform: scale(1.05);
}

/* Current card 的霓虹邊框常駐顯示 */
.section-card.current::before {
  opacity: 1 !important;
  background: linear-gradient(45deg, #22c55e, #16a34a, #15803d, #166534, #4ade80, #86efac, #bbf7d0, #dcfce7);
  animation: nature-glow-highlight 1.5s linear infinite;
}

@keyframes nature-glow-highlight {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Current card 的圖片增強效果 */
.section-card.current .section-card-thumbnail img {
  filter: contrast(1.15) brightness(1.2) saturate(1.4) hue-rotate(-8deg) sepia(0.15) !important;
}

/* Card Parallax 縮放效果支援 */
.section-card-thumbnail {
  overflow: hidden; /* 確保圖片縮放時不會超出邊界 */
}

.section-card-thumbnail img {
  transition: transform 0.2s ease-out; /* 平滑的 parallax 縮放 */
  transform-origin: center center;
  transform: scale(1.15); /* 預設縮放比例 */
}

.section-card {
  background: #ffffff61 !important; /* 確保背景透明 */
  border: 1px solid transparent;
}

/* Contact Section Heading Box */
.s-contact-heading-box {
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
}

.s-contact-heading-box .heading-text-img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  width: 80%;
  max-width: 400px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .s-contact-heading-box .heading-text-img {
    width: 90%;
    max-width: 300px;
  }

  .s-contact-heading-box {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .s-contact-heading-box .heading-text-img {
    width: 95%;
    max-width: 250px;
  }

  .s-contact-heading-box {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .contact-form {
    padding: 5%;
    margin: 0;
  }
}

/* Form Group Row - 同一行顯示多個欄位 */
.form-group-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.form-group-row .form-group {
  margin-bottom: 0;
}

.form-group-row .form-group-name {
  flex: 1.5;
}

.form-group-row .form-group-title {
  flex: 1;
  min-width: 160px;
}

/* Radio Group Styles */
.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 8px;
  min-height: 52px; /* 與 input field 相同高度 */
  align-items: center;
  padding: 16px 20px; /* 與 input field 相同內距 */
  background-color: transparent;
  border: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* Radio group hover/focus effects to match input fields */
.radio-group:hover {
  /* Removed border hover effect */
}

.radio-group:has(input[type="radio"]:focus) {
  /* Removed border and background focus effects */
}

.radio-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.radio-item .field-box {
  position: relative;
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

/* Radio group error message positioning */
.radio-group .error-message,
.radio-item .error-message,
.field-box .error-message {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  font-size: 12px;
  color: red;
  white-space: nowrap;
  display: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  min-height: 16px;
}

.radio-item input[type="radio"].error ~ .error-message,
.radio-item .field-box .error-message {
  display: block;
}

/* Adjust form group title to accommodate error message */
.form-group-title {
  position: relative;
  padding-bottom: 30px;
}

.form-group-title > .error-message {
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 12px;
  color: red;
  margin-top: 5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  min-height: 16px;
}

.radio-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  margin: 0;
}

.radio-mark {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #0f403f;
  border-radius: 50%;
  background-color: transparent;
  transition: all 0.2s ease;
}

.radio-item input[type="radio"]:checked ~ .radio-mark {
  background-color: #0f403f;
  border-color: #0f403f;
}

.radio-item input[type="radio"]:checked ~ .radio-mark::after {
  content: "";
  position: absolute;
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: white;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.radio-item:hover .radio-mark {
  border-color: #0f403f;
  opacity: 0.8;
}

.radio-text {
  font-size: 16px;
  color: #0f403f;
  user-select: none;
}

/* Responsive adjustments for radio group */
@media (max-width: 480px) {
  .radio-group {
    gap: 15px;
  }

  .radio-text {
    font-size: 14px;
  }
}

/* Responsive adjustments for form group row */
@media (max-width: 768px) {
  .form-group-row {
    flex-direction: column;
    gap: 15px;
  }

  .form-group-row .form-group {
    margin-bottom: 0;
  }

  .form-group-row .form-group-name,
  .form-group-row .form-group-title {
    flex: 1;
    width: 100%;
  }

  .form-group-title {
    padding-bottom: 0px; /* Adjust padding for error message */
  }
}

/* Textarea styles to match input fields */
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 16px;
  line-height: 1.4;
  color: white;
  box-sizing: border-box;
  resize: vertical;
  font-family: inherit;
  min-height: 120px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group textarea:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.6);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  transform: translateY(-1px);
}

.form-group textarea.error {
  border-color: rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2);
}

.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .submit-btn {
    margin-bottom: 30px;
  }
}


