/*custom font*/
@import url(https://fonts.googleapis.com/css?family=Montserrat);

/*basic reset*/
* {
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  /* 使背景固定不跟隨捲動 */
  background: #0f051d;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -50vh -50vw;
  z-index: -1;
  background: conic-gradient(
    from 0deg,
    #7f7bff 0% 10%,
    #ff8fec 30% 40%,
    #5ef1ff 60% 70%,
    #caa4ff 90% 100%
  );
  animation: aurora 20s linear infinite;
  filter: blur(120px) saturate(130%);
  opacity: 0.8;
}

@keyframes aurora {
  0% {
    transform: rotate(0deg) translateX(0);
  }

  50% {
    transform: rotate(120deg) translateX(20%);
  }

  100% {
    transform: rotate(360deg) translateX(0);
  }
}

body {
  font-family: montserrat, arial, verdana;
}

.btn {
  display: inline-block;
  position: relative;
  z-index: 1;
  background: #f5f5f5;
  border: 2px solid goldenrod;
  border-radius: 4px;
  color: goldenrod;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  transition: 0.5s;
  padding: 10px 20px;
}

.btn span {
  position: absolute;
  width: 25%;
  height: 100%;
  background-color: goldenrod;
  transform: translateY(150%);
  border-radius: 50%;
  left: calc((var(--n) - 1) * 25%);
  transition: 0.5s;
  transition-delay: calc((var(--n) - 1) * 0.1s);
  z-index: -1;
}

.btn:hover,
.btn:focus {
  color: black;
}

.btn:hover span {
  transform: translateY(0) scale(2);
}

.btn span:nth-child(1) {
  --n: 1;
}

.btn span:nth-child(2) {
  --n: 2;
}

.btn span:nth-child(3) {
  --n: 3;
}

.btn span:nth-child(4) {
  --n: 4;
}

/*headings*/
.fs-title {
  font-size: 20px;
  text-transform: uppercase;
  color: #222;
  margin-bottom: 8px;
}

.fs-subtitle {
  font-weight: normal;
  font-size: 16px;
  color: #666;
  margin-bottom: 8px;
}

/* 四個勾勾的信任說明 */
.trust-indicators {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

/* 勾勾本身 */
.trust-indicators .gou {
  color: #10b981;
  font-weight: 600;
  margin-left: 4px;
}

/* 勾勾右邊的文字 */
.trust-indicators .content {
  margin-left: 2px;
}

/*progressbar*/
#progressbar {
  margin-bottom: 30px;
  overflow: hidden;
  counter-reset: step;
}

#progressbar li {
  list-style-type: none;
  color: #fff;
  text-transform: uppercase;
  font-size: 16px;
  width: 33.33%;
  float: left;
  position: relative;
  letter-spacing: 1px;
}

#progressbar li:before {
  content: counter(step);
  counter-increment: step;
  width: 36px;
  line-height: 36px;
  display: block;
  font-size: 16px;
  color: #333;
  background: #ddd;
  border-radius: 3px;
  margin: 0 auto 5px auto;
}

/*progressbar connectors*/
#progressbar li:after {
  content: "";
  width: 100%;
  height: 2px;
  background: #ddd;
  position: absolute;
  left: -50%;
  top: 25%;
  z-index: -1;
}

#progressbar li:first-child:after {
  /*connector not needed before the first step*/
  content: none;
}

/*marking active/completed steps green*/
#progressbar li.active:before,
#progressbar li.active:after {
  background: #27ae60;
  color: white;
}

/* === 選項群組：3 欄平均，gap 1rem === */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 等分 */
  gap: 1rem;
  justify-items: center;
  /* 每格內容水平置中 */
  margin-bottom: 15px;
}

/* mobile預設 2 欄 ↓ */
@media (max-width: 991.98px) {
  .checkbox-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === 包裝格子不再控制寬度，讓 grid 管 === */
.checkbox-wrapper {
  width: 100%;
  /* 佔滿格子，內容再自行置中 */
  margin: 0;
  display: flex;
  justify-content: center;
}

.checkbox-wrapper *,
.checkbox-wrapper *:after,
.checkbox-wrapper *:before {
  box-sizing: border-box;
}

.checkbox-wrapper .checkbox-input {
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(100%);
  clip-path: inset(100%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.checkbox-wrapper .checkbox-input:checked + .checkbox-tile {
  border-color: #2260ff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  color: #2260ff;
}

.checkbox-wrapper .checkbox-input:checked + .checkbox-tile:before {
  transform: scale(1);
  opacity: 1;
  background-color: #2260ff;
  border-color: #2260ff;
}

.checkbox-wrapper .checkbox-input:checked + .checkbox-tile .checkbox-icon,
.checkbox-wrapper .checkbox-input:checked + .checkbox-tile .checkbox-label {
  color: #2260ff;
}

.checkbox-wrapper .checkbox-input:focus + .checkbox-tile {
  border-color: #2260ff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1), 0 0 0 4px #b5c9fc;
}

.checkbox-wrapper .checkbox-input:focus + .checkbox-tile:before {
  transform: scale(1);
  opacity: 1;
}

.checkbox-wrapper .checkbox-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 7rem;
  aspect-ratio: 1/1; /* 保持正方形，不用 min-height */
  border-radius: 0.5rem;
  border: 2px solid #b5bfd9;
  background-color: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  transition: 0.15s ease;
  cursor: pointer;
  position: relative;
}

.checkbox-wrapper .checkbox-tile:before {
  content: "";
  position: absolute;
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #b5bfd9;
  background-color: #fff;
  border-radius: 50%;
  top: 0.25rem;
  left: 0.25rem;
  opacity: 0;
  transform: scale(0);
  transition: 0.25s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='192' fill='%23FFFFFF' viewBox='0 0 256 256'%3E%3Crect width='256' height='256' fill='none'%3E%3C/rect%3E%3Cpolyline points='216 72.005 104 184 48 128.005' fill='none' stroke='%23FFFFFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='32'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

.checkbox-wrapper .checkbox-tile:hover {
  border-color: #2260ff;
}

.checkbox-wrapper .checkbox-tile:hover:before {
  transform: scale(1);
  opacity: 1;
}

.checkbox-wrapper .checkbox-icon {
  transition: 0.375s ease;
  color: #494949;
}

.checkbox-wrapper .checkbox-icon svg {
  width: 3rem;
  height: 3rem;
}

.checkbox-wrapper .checkbox-label {
  color: #707070;
  transition: 0.375s ease;
  text-align: center;
}
