.wizard-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 1px;
  /* ไม่ต้องกำหนด height ตายตัว เดี๋ยว let card เลื่อนเอง */
}

/* ให้ wizard-steps ติดตายอยู่ข้างบน */
.wizard-container .wizard-steps {
  position: sticky;
  top: 0;
  background-color: transparent;
  z-index: 10;

  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  list-style: none;
  padding: 0;
}
.wizard-steps li {
  text-align: center;
  position: relative;
  flex: 1;
}
.wizard-steps li + li:before {
  content: "";
  position: absolute;
  top: 20px; /* ปรับตำแหน่งให้ตรงกลางไอคอน */
  left: -50%;
  width: 100%;
  height: 2px;
  background-color: #e0e0e0;
  z-index: 1;
}
.wizard-steps li a {
  display: inline-block;
  text-decoration: none;
  color: #999;
  font-size: 14px;
}
.wizard-steps li a .icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e0e0e0;
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}
.wizard-steps li.active a {
  color: #4e73df;
}
.wizard-steps li.active a .icon-circle {
  background: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}
.wizard-steps li.done a .icon-circle {
  background-color: #4e73df;
}
.wizard-steps li.active:before,
.wizard-steps li.done:before {
  background: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
}

@media (max-width: 767px) {
  .wizard-steps li a br {
    display: none;
  }
  .wizard-steps li a {
    font-size: 0;
  }
  .wizard-steps li a .icon-circle {
    font-size: 18px;
  }
}

/* ให้ card และ card-body สามารถเลื่อนภายในได้ */
.wizard-container .card {
  max-height: 100vh; /* สูงสุด 70% ของ viewport */
  overflow-y: auto; /* ให้เลื่อนในแนวตั้งได้ */
  display: flex;
  flex-direction: column;
}
.wizard-container .card-body {
  /* กรณีต้องการแบ่ง header/ body/ footer ของ card ให้เลื่อนได้เฉพาะ body */
  flex: 1;
  overflow-y: auto;
}
.wizard-container .card-footer {
  flex-shrink: 0;
  background-color: #fff;
  border-top: 1px solid #e0e0e0;
}

/* --------------------------
   2) Terms Box Styles
   -------------------------- */
.terms-box,
.terms-box * {
  -webkit-user-select: none; /* Safari, Chrome */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+ */
  user-select: none; /* Standard */
  -webkit-touch-callout: none; /* iOS Safari long-press */
}

/* ปิดเมนูคลิกขวา (บางเบราว์เซอร์อาจต้อง JS เสริม) */
.terms-box {
  pointer-events: auto;
}
.terms-box {
  /* background-color: #f9f9f9; */
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  max-height: 350px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  border-radius: 4px;
}
/* กำหนด scrollbar ให้สวยงาม (ปรับแต่งเพิ่มเติมได้) */
.terms-box::-webkit-scrollbar {
  width: 6px;
}
.terms-box::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

/* --------------------------
   3) Checkbox & Button Styles
   -------------------------- */
.form-group.agree-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}
.form-group.agree-checkbox .form-check-input {
  margin-right: 10px;
}
.btn-agree {
  background: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
  border: none;
  color: #fff;
  width: 120px;
}
.btn-decline {
  background-color: #fff;
  border: 1px solid #ddd;
  color: #555;
  width: 120px;
}
.btn-decline:hover {
  background-color: #f0f0f0;
}

/*--------------------------
   4) Terms Box Styles
   -------------------------- */
.terms-box-about,
.terms-box-about * {
  -webkit-user-select: none; /* Safari, Chrome */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+ */
  user-select: none; /* Standard */
  -webkit-touch-callout: none; /* iOS Safari long-press */
}

/* ปิดเมนูคลิกขวา (บางเบราว์เซอร์อาจต้อง JS เสริม) */
.terms-box-about {
  pointer-events: auto;
}
.terms-box-about {
  max-height: 60vh !important;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 20px;
  max-height: 350px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  border-radius: 4px;
}
/* กำหนด scrollbar ให้สวยงาม (ปรับแต่งเพิ่มเติมได้) */
.terms-box-about::-webkit-scrollbar {
  width: 6px;
}
.terms-box-about::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
