* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  overflow-x: hidden;
}

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
  background: #0f0f0f;
  max-width: 100vw !important;
  position: relative !important;
}

.bg-primary-theme {
  background-color: #052346;
}

#logo-part {
  padding: 40px 0;
  text-align: center;
}

.flex-1 {
  flex: 1;
}

.btn:hover {
  background-color: #fbbf24 !important;
}

/* Header Styles */
.navbar {
  background: transparent !important;
  backdrop-filter: none;
  box-shadow: none;
  padding: 1rem 0;
  height: 80px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0) !important;
  width: 100% !important;
  max-width: 100vw !important;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

.navbar.scrolled {
  background: #0f0f0f !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  height: 70px;
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navbar Logo Responsive Sizing */
.navbar-brand img {
  width: 90px;
  height: auto;
  min-width: 70px;
  transition: all 0.3s ease;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Logo hover effect */
.navbar-brand:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(255, 193, 7, 0.3));
}

/* Scrolled navbar logo adjustment */
.navbar.scrolled .navbar-brand img {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
  .navbar-brand img {
    width: 100px;
    min-width: 80px;
  }
}

/* Medium large screens (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .navbar-brand img {
    width: 90px;
    min-width: 70px;
  }
}

/* Medium screens (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .navbar {
    height: 70px;
    padding: 0.75rem 0;
  }

  .navbar.scrolled {
    height: 65px;
  }

  .navbar-brand img {
    width: 80px;
    min-width: 60px;
  }
}

/* Small screens (576px to 767px) */
@media (max-width: 767px) and (min-width: 576px) {
  .navbar {
    height: 65px;
    padding: 0.75rem 0;
  }

  .navbar.scrolled {
    height: 60px;
  }

  .navbar-brand img {
    width: 75px;
    min-width: 55px;
  }
}

/* Extra small screens (400px to 575px) */
@media (max-width: 575px) and (min-width: 400px) {
  .navbar {
    height: 60px;
    padding: 0.5rem 0;
  }

  .navbar.scrolled {
    height: 55px;
  }

  .navbar-brand img {
    width: 70px;
    min-width: 50px;
  }
}

/* Very small screens (below 400px) */
@media (max-width: 399px) {
  .navbar {
    height: 55px;
    padding: 0.5rem 0;
  }

  .navbar.scrolled {
    height: 70px;
  }

  .navbar-brand img {
    width: 65px;
    min-width: 45px;
  }
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
  color: white !important;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.navbar.scrolled .navbar-brand {
  color: white !important;
  transform: scale(0.95);
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  margin: 0 15px;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.nav-link.active {
  color: #ffc107 !important;
  font-weight: bold;
}

.navbar-nav .nav-link:hover {
  color: #ffc107 !important;
  transform: translateY(-2px);
}

.navbar.scrolled .navbar-nav .nav-link {
  transform: translateY(0);
}

.navbar-toggler {
  border: 1.5px solid #ffc107 !important;
  background: rgba(255, 193, 7, 0.1) !important;
  border-radius: 8px !important;
  padding: 6px 8px !important;
  width: 45px !important;
  height: 40px !important;
  transition: all 0.3s ease !important;
}

.navbar-toggler:hover {
  background: rgba(255, 193, 7, 0.2) !important;
  border-color: #ffd54f !important;
  transform: scale(1.05) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.3) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 193, 7, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 22px !important;
  height: 22px !important;
}

.navbar.scrolled .navbar-toggler {
  border: 1.5px solid #ffc107 !important;
  background: rgba(255, 193, 7, 0.15) !important;
}

.navbar.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 193, 7, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Mobile navbar collapse background */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    margin-top: 15px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 12px !important;
    padding: 20px 15px !important;
    border: 1px solid rgba(255, 193, 7, 0.2) !important;
    width: 100% !important;
    max-width: calc(100vw - 30px) !important;
    position: relative !important;
  }

  .navbar-collapse.show {
    animation: slideInDown 0.3s ease-out !important;
  }

  /* Ensure navbar container doesn't overflow */
  .navbar .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  /* Fix navbar toggler positioning */
  .navbar-toggler {
    margin-right: 0 !important;
  }
}

/* Additional mobile navbar fixes for small screens */
@media (max-width: 576px) {
  .navbar .container-fluid {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .navbar-collapse {
    margin-left: -5px !important;
    margin-right: -5px !important;
    padding: 15px 10px !important;
    max-width: calc(100vw - 20px) !important;
  }
}

@media (max-width: 400px) {
  .navbar .container-fluid {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  .navbar-collapse {
    margin-left: -3px !important;
    margin-right: -3px !important;
    padding: 12px 8px !important;
    max-width: calc(100vw - 10px) !important;
    margin-top: 10px !important;
  }

  .navbar-brand img {
    width: 60px !important;
    min-width: 40px !important;
  }

  .navbar-toggler {
    width: 40px !important;
    height: 35px !important;
    padding: 4px 6px !important;
  }
}

/* Final mobile navbar overflow prevention */
@media (max-width: 767px) {
  .navbar .container-fluid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .navbar-collapse {
    margin-left: -4px !important;
    margin-right: -4px !important;
  }
}

@media (max-width: 320px) {
  .navbar .container-fluid {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  .navbar-collapse {
    margin-left: -2px !important;
    margin-right: -2px !important;
    padding: 10px 5px !important;
    margin-top: 8px !important;
  }

  .navbar-brand img {
    width: 55px !important;
    min-width: 35px !important;
  }
}

@keyframes slideInDown {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  /* Hide video controls completely */
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  border: none;
  background: transparent;
}

/* Hide video controls for all browsers */
.hero-video::-webkit-media-controls {
  display: none !important;
}

.hero-video::-webkit-media-controls-panel {
  display: none !important;
}

.hero-video::-webkit-media-controls-play-button {
  display: none !important;
}

.hero-video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

.hero-video::-webkit-media-controls-timeline {
  display: none !important;
}

.hero-video::-webkit-media-controls-current-time-display {
  display: none !important;
}

.hero-video::-webkit-media-controls-time-remaining-display {
  display: none !important;
}

.hero-video::-webkit-media-controls-volume-slider {
  display: none !important;
}

.hero-video::-webkit-media-controls-mute-button {
  display: none !important;
}

.hero-video::-webkit-media-controls-fullscreen-button {
  display: none !important;
}

.hero-video::-webkit-media-controls-toggle-closed-captions-button {
  display: none !important;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 2.5rem;
  color: #ffc107;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: 20px;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Additional Hero Section Responsive Enhancements */
@media (max-width: 768px) {
  .hero-section {
    height: 100vh;
    min-height: 600px;
  }

  .hero-title {
    font-size: 2.5rem !important;
    line-height: 1.1 !important;
  }

  .hero-subtitle {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
  }

  .hero-description {
    font-size: 16px !important;
    margin-bottom: 1.5rem !important;
  }
}

@media (max-width: 576px) {
  .hero-section {
    height: 100vh;
    min-height: 500px;
  }

  .hero-title {
    font-size: 2rem !important;
    margin-bottom: 0.8rem !important;
  }

  .hero-subtitle {
    font-size: 1.4rem !important;
    margin-bottom: 1rem !important;
  }

  .hero-description {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  .hero-content {
    padding: 0 15px !important;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 100vh;
    min-height: 450px;
  }

  .hero-title {
    font-size: 1.8rem !important;
  }

  .hero-subtitle {
    font-size: 1.2rem !important;
  }

  .hero-description {
    font-size: 13px !important;
  }

  .fab.fa-whatsapp {
    font-size: 25px !important;
  }
}

/* Calculator Section */
.calculator-section {
  background: #083d78;
  padding: 40px 20px;
  font-family: "Microsoft JhengHei", sans-serif;
  position: relative;
}

.calculator-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.calculator-title {
  text-align: center;
  color: white;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
}

.toggle-container {
  display: flex;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  margin-bottom: 40px;
  overflow: hidden;
}

.toggle-btn {
  flex: 1;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 50px;
}

.toggle-btn.active {
  background: #fbbf24;
  color: #1e3a8a;
  font-weight: bold;
}

.calculator-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.input-section {
  flex: 1;
}

.input-group {
  margin-bottom: 30px;
}

.input-label {
  display: flex;
  align-items: center;
  color: white;
  font-size: 16px;
  margin-bottom: 15px;
  gap: 10px;
}

.icon {
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #1e3a8a;
  margin-right: 10px;
}

.input-container {
  position: relative;
  margin-bottom: 20px;
}

.input-value {
  background: #1e3a8a;
  color: #fbbf24;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  border: 2px solid rgba(251, 191, 36, 0.3);
  width: 100%;
  outline: none;
  cursor: pointer;
}

.input-value:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.range-slider {
  width: 100%;
  height: 8px;
  background: rgba(30, 58, 138, 0.5);
  border-radius: 4px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #fbbf24;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.5);
}

.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #fbbf24;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.range-slider::-webkit-slider-runnable-track {
  background-color: #052346 !important;
}

.output-section {
  flex: 1;
  max-width: 300px;
}

.output-card {
  background: rgba(30, 58, 138, 0.8);
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  border: 2px solid rgba(251, 191, 36, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.output-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(251, 191, 36, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.output-card.animate::before {
  animation: shimmer 1s ease-in-out;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
    opacity: 0;
  }
}

.output-label {
  color: #fbbf24;
  font-size: 14px;
  margin-bottom: 10px;
}

.output-value {
  color: #fbbf24;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.output-range {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.apply-btn {
  background: #fbbf24;
  color: #1e3a8a;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 15px 30px;
  width: 200px;
  margin: 30px auto 0;
  display: block;
}

.apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

/* Features Section - Keep the most recent version */
.features-section {
  background-color: #0f0f0f;
  padding: 80px 0;
  display: flex;
  align-items: center;
}

.section-title {
  color: #f4c430;
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 60px;
}

.feature-title {
  color: #f4c430;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.feature-description {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.5;
}

/* Feature Card Icons Sizing */
.feature-card img {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .feature-card img {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .feature-title {
    font-size: 1.3rem;
  }

  .feature-description {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .feature-card img {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .feature-title {
    font-size: 1.2rem;
  }

  .feature-description {
    font-size: 0.9rem;
  }
}

.fz-40px {
  font-size: 40px !important;
}

/* Dropdown Styles */
.dropdown-menu {
  background: #0f0f0f;
  border-radius: 10px;
  padding: 10px 0;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  color: white;
  padding: 10px 20px;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Navbar Dropdown Styles */
.navbar-nav .dropdown-menu {
  background: #0f0f0f;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-top: 8px;
  padding: 12px;
  min-width: 220px;
  max-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute !important;
  left: 0 !important;
  right: auto !important;
  top: 100% !important;
  z-index: 9999 !important;
  white-space: nowrap;
  overflow: hidden;
}

.navbar-nav .dropdown:last-child .dropdown-menu,
.navbar-nav .dropdown:nth-last-child(2) .dropdown-menu {
  left: auto !important;
  right: 0 !important;
}

.navbar-nav .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-nav .dropdown-item {
  color: white !important;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 2px 0px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 100% !important;
}

.navbar-nav .dropdown-item:hover {
  background: linear-gradient(135deg, #ffc107, #ffd54f);
  color: #052346 !important;
  transform: translateX(5px);
}

.navbar-nav .dropdown-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: #ffc107;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.navbar-nav .dropdown-item:hover::before {
  transform: scaleY(1);
}

.navbar-nav .dropdown-toggle::after {
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-left: 0.3em solid transparent;
  margin-left: 0.5em;
  transition: transform 0.3s ease;
}

.navbar-nav .dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

@media (max-width: 991px) {
  .navbar-nav .dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.9) !important;
    border: 1px solid rgba(255, 193, 7, 0.3) !important;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 8px 0;
    border-radius: 8px;
    max-width: none;
    left: 0 !important;
    right: 0 !important;
    backdrop-filter: blur(10px);
    padding: 12px;
  }

  .navbar-nav .dropdown-item {
    margin: 1px 0px;
    font-size: 0.85rem;
    white-space: normal;
    color: white !important;
    padding: 12px 15px;
  }

  .navbar-nav .dropdown-item:hover {
    background: rgba(255, 193, 7, 0.2) !important;
    color: #ffc107 !important;
    transform: translateX(5px);
  }

  /* Ensure nav links are visible on mobile */
  .navbar-nav .nav-link {
    padding: 12px 15px !important;
    color: white !important;
    font-size: 0.95rem !important;
  }

  .navbar-nav .nav-link:hover {
    color: #ffc107 !important;
    background: rgba(255, 193, 7, 0.1) !important;
    border-radius: 8px;
  }
}

@media (max-width: 576px) {
  .navbar-nav .dropdown-menu {
    min-width: 200px;
    margin: 5px 0;
    background: rgba(0, 0, 0, 0.95) !important;
  }

  .navbar-nav .dropdown-item {
    font-size: 0.8rem;
    padding: 10px 12px;
  }

  .navbar-nav .nav-link {
    padding: 10px 12px !important;
    font-size: 0.9rem !important;
  }
}

.navbar-nav .dropdown {
  position: relative;
}

.navbar-nav .dropdown-menu {
  will-change: transform, opacity;
  contain: layout style paint;
}

/* FAQ Section Styles */
.faq-section {
  padding: 120px 0 80px;
  background: #0f0f0f;
  position: relative;
}

.faq-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffd700;
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.warning-box {
  background: linear-gradient(135deg, #ffc107, #ffb300);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
  position: relative;
  overflow: hidden;
}

.warning-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff9800, #ffc107, #ffeb3b);
}

.warning-title {
  color: #052346;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.warning-title i {
  margin-right: 10px;
  font-size: 1.4rem;
}

.warning-content {
  color: #333;
  line-height: 1.6;
  margin: 0;
}

.warning-content p {
  margin-bottom: 8px;
}

.warning-content p:last-child {
  margin-bottom: 0;
}

.cssFaqblocks {
  /* max-width: 900px; */
  margin: 0 auto;
}

.cssFaqblock {
  background: transparent !important;
  border-radius: 12px;
  margin-bottom: 15px;
  /* box-shadow: 0 2px 10px rgba(255, 215, 0, 0.1); */
  transition: all 0.3s ease;
  /* border: 1px solid rgba(255, 215, 0, 0.2); */
}

.cssFaqblock:hover {
  /* box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2); */
  transform: translateY(-2px);
  /* border-color: rgba(255, 215, 0, 0.4); */
}

.faq-question {
  cursor: pointer;
  display: flex;
  align-items: center;
  background: transparent !important;
  border: none;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
}

.faq-question:hover {
  background: rgba(40, 40, 40, 0.9);
}

.cssFaqblock.active .faq-question {
  background: #ffd700;
  color: #fff !important;
}

.faq-question-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e0e0e0;
  flex: 1;
  margin-right: 15px;
  line-height: 1.4;
}

.cssFaqblock.active .faq-question-text {
  color: #fff;
}

.faq-icon {
  width: 30px;
  height: 30px;
  background: #c89d4f;
  border-radius: 6px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-right: 15px;
}

.cssFaqblock.active .faq-icon {
  background: #000;
  color: #c89d4f;
  transform: rotate(45deg);
}

.faq-answer {
  padding: 25px 25px 25px;
  color: #cccccc;
  line-height: 1.7;
  font-size: 1rem;
  display: none;
  background: rgba(20, 20, 20, 0.9);
  margin-top: 15px;
}

.cssFaqblock.active .faq-answer {
  display: block;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .faq-section {
    padding: 100px 0 60px;
  }

  .faq-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .warning-box {
    padding: 20px;
    margin-bottom: 30px;
  }

  .warning-title {
    font-size: 1.2rem;
  }

  .faq-question-text {
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 20px 20px;
    font-size: 0.95rem;
  }

  .faq-icon {
    width: 25px;
    height: 25px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .faq-title {
    font-size: 1.8rem;
  }

  .warning-title {
    font-size: 1.1rem;
  }

  .faq-question-text {
    font-size: 0.95rem;
  }

  .faq-answer {
    font-size: 0.9rem;
  }
}

/* Loan Application Form Styles */
#form {
  min-height: 100vh;
}

.card {
  overflow: hidden;
}

.card-header {
  border-radius: 15px 15px 0 0 !important;
}

.form-control {
  border: 1px solid #ced4da;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #0d47a1;
  box-shadow: 0 0 0 0.2rem rgba(13, 71, 161, 0.25);
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.form-check-input:checked {
  background-color: #0d47a1;
  border-color: #0d47a1;
}

.form-range {
  accent-color: #0d47a1;
}

.form-range::-webkit-slider-thumb {
  background: #0d47a1;
}

.form-range::-moz-range-thumb {
  background: #0d47a1;
  border: none;
}

.btn-submit {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border: none;
  color: white;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  color: white;
}

.form-label {
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: normal;
}

.progress {
  border-radius: 0;
  background-color: #e9ecef;
}

.progress-bar {
  background-color: #333 !important;
}

.form-check-input {
  margin-top: 0.25rem;
}

.form-check-label {
  margin-left: 0.5rem;
}

.btn-warning {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #000;
}

.btn-warning:hover {
  background-color: #e0a800;
  border-color: #d39e00;
  color: #000;
}

/* gold section */
.gold-section {
  background: #0f0f0f;
  min-height: 70vh;
  position: relative;
}

.main-title {
  color: #ffc107;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.sub-title {
  color: #ffc107;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.description {
  color: #e0e0e0;
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 500px;
}

@media (max-width: 768px) {
  .main-title {
    font-size: 2rem;
  }
  .sub-title {
    font-size: 1.5rem;
  }
}

/* copy right */
#copy-right {
  background-color: #191919;
  padding: 20px 0px;
  color: #ffffff;
}

/* Floating Contact Widget */
.floating-contact-widget {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 15px;
  background: #deb53c;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:nth-child(1) {
  animation-delay: 0s;
}

.contact-item:nth-child(2) {
  animation-delay: -1.3s;
}

.contact-item:nth-child(3) {
  animation-delay: -2.6s;
}

.contact-btn {
  text-decoration: none;
  color: white;
  font-size: 22px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.contact-btn:hover::before {
  transform: scale(1);
}

.contact-item:hover .contact-btn {
  transform: translateY(-3px) scale(1.05);
  color: white;
}

.contact-item:hover .contact-label {
  transform: scale(1.05);
  font-weight: 700;
}

.contact-item:hover {
  transform: translateY(-2px);
}

.contact-label {
  font-size: 12px;
  color: #000;
  margin-top: 8px;
  font-weight: 600;
  text-shadow: none;
  letter-spacing: 0.5px;
  opacity: 0.9;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
  .floating-contact-widget {
    gap: 15px;
    padding: 12px;
  }

  .contact-btn {
    font-size: 20px;
  }

  .contact-label {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .floating-contact-widget {
    gap: 12px;
    padding: 10px;
  }

  .contact-btn {
    font-size: 18px;
  }

  .contact-label {
    font-size: 10px;
    margin-top: 6px;
  }
  .feature-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0.375rem;
    padding: 3rem;
    margin: 0 1.5rem;
  }
}

@media (max-width: 360px) {
  .floating-contact-widget {
    gap: 10px;
    padding: 8px;
  }

  .contact-btn {
    font-size: 16px;
  }

  .contact-label {
    font-size: 9px;
    margin-top: 5px;
  }
}

.loan-section {
  background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.1) 20%,
      rgba(0, 0, 0, 0.1) 80%,
      rgba(0, 0, 0, 0.5) 100%
    ),
    linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2)),
    url("../images/city.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 80vh;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.section-title {
  color: white;
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.loan-card {
  background: #00000066;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  min-height: 300px;
}

.loan-card:hover {
  transform: translateY(-10px);
  background: rgb(14 14 14);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.loan-icon {
  font-size: 3.5rem;
  color: #ffd700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  padding: 16px;
  background: #7878781f;
  border-radius: 16px;
}

/* Loan Card Images Sizing */
.loan-card img {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(66%) sepia(72%) saturate(2000%)
    hue-rotate(3deg) brightness(103%) contrast(101%);
}

@media (max-width: 768px) {
  .loan-icon {
    font-size: 3rem;
    padding: 12px;
  }

  .loan-card img {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
  }
}

@media (max-width: 576px) {
  .loan-icon {
    font-size: 2.5rem;
    padding: 10px;
  }

  .loan-card img {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 400px) {
  .loan-icon {
    font-size: 2rem;
    padding: 8px;
  }

  .loan-card img {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}

.loan-title {
  color: #ffd700;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 25px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.loan-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.loan-features li {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.loan-features li::before {
  content: "";
  margin-right: 8px;
  font-size: 0.8rem;
}

.loan-features .fa-circle-check {
  color: #ffd700;
  margin-right: 8px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
  }

  .loan-card {
    margin-bottom: 30px;
    height: auto;
    min-height: 300px;
  }

  .loan-section {
    padding: 50px 0;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 2rem;
  }

  .loan-card {
    padding: 30px 20px;
  }
}

/* Calculator Section Styles */
.calculation-section {
  background: #151515;
  color: white;
  position: relative;
}

.calculator-container {
  border-radius: 15px;
  padding: 40px;
}

.toggle-group {
  display: flex;
  background: rgba(50, 50, 50, 0.8);
  border-radius: 25px;
  padding: 10px;
  margin-bottom: 30px;
  border: 1px solid #ffffff57;
}

.toggle-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 20px;
  background: transparent;
  color: #ccc;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.toggle-btn.active {
  background: linear-gradient(135deg, #ffd700, #ffb347);
  color: #000;
  font-weight: 600;
}

.amount-display {
  background: rgba(60, 60, 60, 0.8);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.amount-display::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid rgba(60, 60, 60, 0.8);
}

.amount-label {
  color: #ffd700;
  font-size: 18px;
  margin-bottom: 5px;
}

.amount-value {
  font-size: 24px;
  font-weight: bold;
  color: white;
}

.slider-container {
  margin-bottom: 30px;
  position: relative;
  display: block;
}

.slider-container.hidden {
  display: none;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.slider-title {
  color: #ffd700;
  font-weight: 500;
}

.slider-value {
  background: rgba(60, 60, 60, 0.8);
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 14px;
  min-width: 60px;
  text-align: center;
}

.custom-range {
  width: 100%;
  height: 6px;
  background: rgba(60, 60, 60, 0.8);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  background-image: linear-gradient(
    to right,
    #dfb143 0%,
    #dfb143 var(--progress, 0%),
    rgba(60, 60, 60, 0.8) var(--progress, 0%),
    rgba(60, 60, 60, 0.8) 100%
  );
}

.custom-range::-webkit-slider-track {
  width: 100%;
  height: 6px;
  background: transparent;
  border-radius: 3px;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #ffd700, #ffb347);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.custom-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #ffd700, #ffb347);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.custom-range::-moz-range-track {
  height: 6px;
  background: rgba(60, 60, 60, 0.8);
  border-radius: 3px;
  border: none;
}

.custom-range::-moz-range-progress {
  height: 6px;
  background: #dfb143;
  border-radius: 3px;
}

.apply-btn {
  padding: 15px;
  background: linear-gradient(135deg, #ffd700, #ffb347);
  border: none;
  border-radius: 25px;
  color: #000;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.range-progress {
  position: absolute;
  height: 6px;
  background: #dfb143;
  border-radius: 3px;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
  transition: width 0.2s ease;
  box-shadow: 0 0 5px rgba(223, 177, 67, 0.3);
}

.img-wallet {
  position: absolute;
  bottom: -80px;
  right: 23%;
  z-index: 9999;
  transform: translateX(50%) !important;
}

/* Full-width container adjustments */
.container-fluid {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Responsive padding for full-width containers */
@media (min-width: 768px) {
  .container-fluid {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 1200px) {
  .container-fluid {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

.step-flow-section {
  background: #151515;
  min-height: 50vh;
  font-family: "Microsoft JhengHei", sans-serif;
  padding: 4rem 0;
}

.step-main-title {
  color: #f4d03f;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
}

.step-card {
  background: url("../images/phone.png") no-repeat center center;
  background-size: contain;
  border: none;
  min-height: 550px;
  position: relative;
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
}

.step-card .card-body {
  padding: 1.5rem;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.step-card img:not(.step-flower-icon) {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.step-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  color: white;
  width: auto;
  height: auto;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.8rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.step-icon-container {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.step-flower-icon {
  width: 70px;
  height: 70px;
}

.step-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  color: white;
  width: auto;
  height: auto;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.8rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .step-flow-section {
    padding: 3rem 0;
  }

  .step-main-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .step-card {
    min-height: 400px;
  }

  .step-card img:not(.step-flower-icon) {
    width: 40px;
    height: 40px;
  }

  .step-flower-icon {
    width: 60px;
    height: 60px;
  }

  .step-number {
    font-size: 1.4rem;
  }

  .step-title {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .step-flow-section {
    padding: 2rem 0;
  }

  .step-main-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  .step-card {
    min-height: 350px;
  }

  .step-card img:not(.step-flower-icon) {
    width: 36px;
    height: 36px;
  }

  .step-flower-icon {
    width: 50px;
    height: 50px;
  }

  .step-number {
    font-size: 1.2rem;
  }

  .step-title {
    font-size: 0.9rem;
  }

  .card-body {
    padding: 1rem;
  }
}

.arrow-icon {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
footer {
  background-color: #0f0f0f !important;
}

/* Flow Business Section Styles */
.flow-business-section {
  background-color: #0f0f0f;
  color: white;
  font-family: "Microsoft JhengHei", Arial, sans-serif;
  padding: 80px 0;
  position: relative;
}

.flow-business-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Large screen adjustments */
@media (min-width: 1200px) {
  .flow-business-container {
    max-width: 1200px;
    padding: 0 40px;
  }

  .flow-business-title {
    font-size: 42px;
  }

  .flow-step {
    min-height: 160px;
    padding: 25px 30px;
  }

  .flow-step-title {
    font-size: 26px;
  }

  .flow-step-description {
    font-size: 20px;
  }
}

.flow-business-title {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: #ffd700;
  margin-bottom: 60px;
}

.flow-steps-container {
  max-width: 900px;
  margin: 0 auto;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #ffec630a;
  padding: 20px;
  border-radius: 10px;
  min-height: 200px;
  margin-bottom: 20px;
}

.flow-step-icon {
  width: 60px;
  height: 60px;
  background-color: #ffd700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.flow-step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.flow-step-number {
  color: #2a2a2a;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 24px;
  flex-shrink: 0;
  margin-bottom: 8px;
  align-self: flex-start;
  border: 1px solid #ffd700;
  color: #ffd700;
}

.flow-step-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
  line-height: 1.4;
}

.flow-step-description {
  font-size: 18px;
  color: #cccccc;
  line-height: 1.5;
}

.flow-step-1 .flow-step-icon {
  background-color: #e6e6e6;
  color: #666;
}

.flow-step-2 .flow-step-icon {
  background-color: #ffd700;
  color: #2a2a2a;
}

.flow-step-3 .flow-step-icon {
  background-color: #ffd700;
  color: #2a2a2a;
}

.flow-step-4 .flow-step-icon {
  background-color: #ffd700;
  color: #2a2a2a;
}

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

  .flow-business-container {
    padding: 0 15px;
  }

  .flow-business-title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .flow-step {
    flex-direction: column;
    text-align: center;
    padding: 25px 20px;
    min-height: auto;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
  }

  .flow-step-content {
    order: 2;
  }

  .flow-step img {
    order: 1;
    margin-top: 20px;
  }

  .flow-step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0;
    align-self: center;
    z-index: 10;
    background: #0f0f0f;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .flow-step-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .flow-business-section {
    padding: 40px 0;
  }

  .flow-business-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .flow-step {
    padding: 20px 15px;
    margin-bottom: 20px;
    position: relative;
  }

  .flow-step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    font-size: 18px;
    background: #0f0f0f;
    z-index: 10;
  }

  .flow-step img {
    margin-top: 15px;
  }

  .flow-step-title {
    font-size: 18px;
  }

  .flow-step-description {
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  .flow-business-section {
    padding: 30px 0;
  }

  .flow-business-container {
    padding: 0 30px;
  }

  .flow-business-title {
    font-size: 20px;
    margin-bottom: 25px;
  }

  .flow-step {
    padding: 60px 20px 20px 20px;
    margin-bottom: 15px;
    position: relative;
  }

  .flow-step-number {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    font-size: 16px;
    background: #0f0f0f;
    z-index: 10;
  }

  .flow-step img {
    margin-top: 12px;
  }

  .flow-step-title {
    font-size: 16px;
  }

  .flow-step-description {
    font-size: 13px;
  }
}

/* Prevent horizontal scroll and ensure proper mobile navbar positioning */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Ensure all containers respect viewport width */
.container-fluid {
  max-width: 100vw;
  padding-left: 15px;
  padding-right: 15px;
}

/* Additional navbar mobile fixes */
@media (max-width: 991px) {
  /* Override any potential overflow issues */
  .navbar-collapse {
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
  }

  /* Ensure dropdown menus fit within viewport */
  .navbar-nav .dropdown-menu {
    position: static !important;
    float: none !important;
    width: auto !important;
    margin-top: 0 !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

/* Additional hover effects for better UX */
.house-item {
  position: relative;
}

.house-item.selected::before {
  opacity: 1;
}

/* Loading animation for image transitions */
.img-output {
  transition: all 0.3s ease;
}

.img-output.loading {
  filter: blur(2px);
  opacity: 0.7;
}

/* Critical Resource Hints */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimize-contrast;
}

/* Enhanced Accessibility for Screen Readers */
.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;
}

/* Container Padding Optimization */
@media (max-width: 350px) {
  .container,
  .container-fluid {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* Final Icon Size Safety Net */
.feature-card img,
.loan-card img,
.step-card img:not(.step-flower-icon),
.flow-step img {
  max-width: none !important;
  flex-shrink: 0;
}

/* Enhanced Scroll Performance */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Mobile Safari Specific Fixes */
@supports (-webkit-touch-callout: none) {
  .feature-card,
  .loan-card {
    transform: translate3d(0, 0, 0);
  }
}

/* Final Mobile Optimizations */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem !important;
  }

  .hero-subtitle {
    font-size: 1.2rem !important;
  }

  .section-title {
    font-size: 2rem !important;
  }

  .step-main-title {
    font-size: 1.4rem !important;
  }
}

@media (max-width: 360px) {
  .step-card {
    min-height: 280px !important;
  }

  .step-card img:not(.step-flower-icon) {
    width: 28px !important;
    height: 28px !important;
  }

  .step-flower-icon {
    width: 40px !important;
    height: 40px !important;
  }

  .step-number {
    font-size: 1rem !important;
  }

  .step-title {
    font-size: 0.8rem !important;
  }

  .card-body {
    padding: 0.75rem !important;
  }
}

/* Gold Section Image Enhanced Positioning */
@media (max-width: 576px) {
  .gold-section .w-50 {
    width: 70% !important;
  }
}

@media (max-width: 480px) {
  .gold-section .w-50 {
    width: 60% !important;
  }

  .main-title {
    font-size: 1.8rem !important;
  }

  .sub-title {
    font-size: 1.4rem !important;
  }
}

/* Calculator Section Enhanced Mobile Experience */
@media (max-width: 768px) {
  .calculator-container {
    padding: 25px !important;
    margin: 0 10px !important;
  }

  .calculator-title {
    font-size: 24px !important;
  }
}

@media (max-width: 576px) {
  .calculator-container {
    padding: 20px !important;
  }

  .calculator-title {
    font-size: 20px !important;
    margin-bottom: 20px !important;
  }

  .toggle-container {
    margin-bottom: 30px !important;
  }
}

/* Final Touch - Ensure Consistent Spacing */
@media (max-width: 400px) {
  .container-fluid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .row {
    margin-left: -5px !important;
    margin-right: -5px !important;
  }

  .row > * {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
}

/* Custom Loan Amount Slider Styles */
.loan-amount-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.amount-prefix {
  font-size: 18px;
  font-weight: bold;
  color: #ffc107;
  margin-right: 10px;
}

.amount-input {
  background: rgba(30, 58, 138, 0.8) !important;
  border: none;
  border-radius: 10px;
  color: white !important;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  outline: none;
}

.amount-input:focus {
  background: rgba(30, 58, 138, 0.9) !important;
  color: white !important;
  outline: none;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.custom-range-container {
  position: relative;
  margin-top: 15px;
}

.custom-loan-slider {
  width: 100%;
  height: 12px;
  background: #052346;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
  border-radius: 6px;
  --progress: 20%;
}

/* Webkit (Chrome, Safari) styles */
.custom-loan-slider::-webkit-slider-track {
  width: 100%;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    #fbbf24 0%,
    #fbbf24 var(--progress),
    rgba(30, 58, 138, 0.6) var(--progress),
    rgba(30, 58, 138, 0.6) 100%
  );
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.custom-loan-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  border: none;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4),
    0 0 0 3px rgba(255, 255, 255, 0.3);
}

.custom-loan-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 15px rgba(251, 191, 36, 0.6),
    0 0 0 4px rgba(255, 255, 255, 0.4);
}

.custom-loan-slider::-webkit-slider-thumb:active {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.8),
    0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* Firefox styles */
.custom-loan-slider::-moz-range-track {
  width: 100%;
  height: 12px;
  background: linear-gradient(
    90deg,
    #fbbf24 0%,
    #fbbf24 var(--progress),
    rgba(30, 58, 138, 0.6) var(--progress),
    rgba(30, 58, 138, 0.6) 100%
  );
  border-radius: 6px;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.custom-loan-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4),
    0 0 0 3px rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
  border: none;
}

.custom-loan-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 5px;
}

.range-labels span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Form styling enhancements */
.form-control:focus {
  border-color: #ffc107 !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25) !important;
}

.form-check-input:checked {
  background-color: #ffc107 !important;
  border-color: #ffc107 !important;
}

.form-check-input:focus {
  border-color: #ffc107 !important;
  box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25) !important;
}

/* Form validation styles */
.form-control.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.form-control.is-valid {
  border-color: #28a745 !important;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

/* Animation effects */
.card {
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* Hover effects for form elements */
.form-control:hover {
  border-color: rgba(255, 193, 7, 0.5) !important;
}

.form-check-input:hover {
  border-color: rgba(255, 193, 7, 0.7) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .amount-input {
    max-width: 140px;
    font-size: 16px;
  }

  .amount-prefix {
    font-size: 16px;
  }

  .custom-loan-slider::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
  }

  .custom-loan-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
  }
}

/* Override body background for this specific section */
#content-area {
  background: #0f0f0f;
  color: #fff;
  font-family: "Microsoft JhengHei", sans-serif;
  padding-top: 80px; /* Account for fixed navbar */
}

.golden-header {
  background: linear-gradient(135deg, #d4af37 0%, #ffd700 50%, #b8860b 100%);
  padding: 20px 0;
  text-align: center;
  position: relative;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
  }
}

.golden-header h1 {
  color: #1a1a1a;
  font-weight: bold;
  font-size: 2.5rem;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.coin-icon {
  position: absolute;
  top: 20px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: url("assets/images/gold-coin.png") no-repeat center;
  background-size: contain;
  animation: spin 4s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.form-container {
  border-radius: 15px;
  padding: 40px;
  margin: 0 auto;
  max-width: 600px;
  backdrop-filter: blur(10px);
}

.form-container .form-label {
  color: #fff;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.form-container .form-control,
.form-container .form-select {
  background: #2a201a;
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-container .form-control:focus,
.form-container .form-select:focus {
  background: #2a201a;
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
  color: #fff;
  outline: none;
}

.form-container .form-control::placeholder {
  color: #aaa;
}

.form-container .form-check {
  margin-bottom: 12px;
}

.form-container .form-check-input {
  background-color: #2a201a;
  border: none;
  margin-right: 10px;
  outline: none;
}

.form-container .form-check-input:checked {
  background-color: #ffd700;
  border-color: #ffd700;
}

.form-container .form-check-label {
  color: #fff;
  font-size: 1rem;
}

.btn-submit {
  background: linear-gradient(135deg, #d4af37 0%, #ffd700 50%, #b8860b 100%);
  border: none;
  color: #1a1a1a;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 15px 50px;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  color: #1a1a1a;
}

.floating-btn {
  display: block;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #d4af37 0%, #ffd700 50%, #b8860b 100%);
  border-radius: 50%;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.floating-btn:hover {
  transform: scale(1.1);
  color: #1a1a1a;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.gold-leaf {
  width: 150px;
  height: auto;
  opacity: 0.6;
  animation: sway 8s ease-in-out infinite;
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

.section-divider {
  border-top: 2px solid #ffd700;
  margin: 30px 0 20px 0;
  position: relative;
}

.section-divider::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 15px;
  background: #ffd700;
  border-radius: 50%;
}

.img-coin {
  position: absolute;
  z-index: 999;
  left: 100px;
  bottom: -35px;
  width: 100px;
}

/* Custom Radio Button Styles */
.form-check-input[type="radio"] {
  display: none;
}

.form-check-input[type="radio"] + .form-check-label {
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  user-select: none;
}

.form-check-input[type="radio"] + .form-check-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #666;
  border-radius: 50%;
  background: #2a201a;
  transition: all 0.3s ease;
}

.form-check-input[type="radio"] + .form-check-label::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: #1a1a1a;
  font-size: 12px;
  text-align: center;
  line-height: 14px;
  opacity: 0;
  transition: all 0.3s ease;
}

.form-check-input[type="radio"]:checked + .form-check-label::before {
  background: #debb53;
  border-color: #debb53;
}

.form-check-input[type="radio"]:checked + .form-check-label::after {
  opacity: 1;
}

.form-check-input[type="radio"] + .form-check-label:hover::before {
  border-color: #debb53;
}

/* Custom Checkbox Styles */
.form-check-input[type="checkbox"] {
  display: none;
}

.form-check-input[type="checkbox"] + .form-check-label {
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  user-select: none;
}

.form-check-input[type="checkbox"] + .form-check-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #666;
  border-radius: 4px;
  background: #2a201a;
  transition: all 0.3s ease;
}

.form-check-input[type="checkbox"] + .form-check-label::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: #1a1a1a;
  font-size: 12px;
  text-align: center;
  line-height: 14px;
  opacity: 0;
  transition: all 0.3s ease;
}

.form-check-input[type="checkbox"]:checked + .form-check-label::before {
  background: #debb53;
  border-color: #debb53;
}

.form-check-input[type="checkbox"]:checked + .form-check-label::after {
  opacity: 1;
}

.form-check-input[type="checkbox"] + .form-check-label:hover::before {
  border-color: #debb53;
}

.form-check {
  padding-left: 0;
}

.pt-125px {
  padding-top: 125px !important;
}

.bottom-middle-blur {
  width: 100vh;
  height: 100vh;
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(255, 158, 110, 0.18) 0%,
    rgba(116, 82, 64, 0.18) 100%
  );
  filter: blur(100px);
  border-radius: 50%;
  z-index: 9;
}

.pt-100px {
  padding-top: 100px !important;
}

/* House Gallery Styles */
.house-item {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.house-item:hover {
  transform: translateY(-5px);
}

.house-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 150px;
}

.house-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.house-overlay {
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  transition: top 0.4s ease;
  border-radius: 10px;
}

.house-item:hover .house-overlay,
.house-item.selected .house-overlay {
  top: 0;
}

.house-item:hover .house-image {
  transform: scale(1.1);
}

.house-title {
  color: white;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  margin: 0;
  padding: 0 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.house-item:hover .house-title,
.house-item.selected .house-title {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced styling for selected house item */
.house-item.selected {
  transform: translateY(-5px);
}

.house-item.selected .house-title {
  color: #fff;
  font-weight: bold;
  text-shadow: none;
}

.house-item.selected .house-image {
  transform: scale(1.05);
}

/* Responsive adjustments for house gallery */
@media (max-width: 768px) {
  .house-image-container {
    height: 120px;
  }

  .house-title {
    font-size: 12px;
  }
}
.p-relative {
  position: relative !important;
}

.w-900px {
  width: 900px !important;
}

.w-1200px {
  width: 1200px !important;
}

.mx-800px {
  max-width: 800px !important;
  margin: 0 auto !important;
}
.mx-900px {
  max-width: 900px !important;
  margin: 0 auto !important;
}

.primary-color {
  color: #ffd700 !important;
}

/* Fixed Action Widget */
.fixed-action-widget {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: #deb53c;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  max-width: 150px;
}

.action-item {
  border-radius: 25px;
  padding: 12px 8px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: white;
  flex-direction: column;
  gap: 4px;
  min-width: auto;
}

.action-item:hover {
  transform: translateX(-5px) scale(1.05);
}

.action-icon {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 16px;
}
.action-icon i {
  color: #000;
}

.action-text {
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  color: #5c4b15;
  text-align: center;
  line-height: 1.2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .fixed-action-widget {
    right: 8px;
    gap: 4px;
    max-width: 100px;
  }

  .action-item {
    padding: 8px 6px;
    min-width: auto;
  }

  .action-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .action-text {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .fixed-action-widget {
    right: 0;
    max-width: 85px;
  }

  .action-item {
    padding: 6px 4px;
  }

  .action-icon {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  .action-text {
    font-size: 9px;
  }
}
.dropdown-item.active,
.dropdown-item:active {
  background-color: #ffc107 !important;
  color: #000 !important;
  font-weight: bold;
  width: 100% !important;
}

.mx-1000px {
  max-width: 1000px !important;
  margin: 0 auto !important;
}

.custom-range::-webkit-slider-thumb {
  z-index: 999;
}

/* Ensure navbar always stays visible and fixed */
.navbar {
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.navbar.scrolled {
  background: #0f0f0f !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  height: 70px;
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
