/**
 * thankyou 頁面樣式
 * @package mytheme
 */

/* === 感謝頁面容器 === */
.thank-you {
  width: 100%;
  min-height: 80vh;
  background-color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 16px;
  box-sizing: border-box;
}

.thank-you__content {
  width: 100%;
  max-width: 763px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === 主視覺：THANK + you 疊層 === */
.thank-you__heading {
  position: relative;
  width: 100%;
  display: block;
  padding-top: 0.25em;
  padding-bottom: 0.25em;
  overflow: visible;
}

.thank-you__heading-thank {
  display: block;
  font-family: "Rubik", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(96px, 16vw, 208.55px);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(0deg, #0b2f53, #1969b9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.thank-you__heading-you {
  position: absolute;
  top: -42px;
  left: 0;
  width: 496px;
  text-align: center;
  font-family: "Italianno", "Brush Script MT", cursive;
  font-size: clamp(155px, 25.8vw, 336.98px);
  background: linear-gradient(2.62deg, #ffc340, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  pointer-events: none;
  overflow: visible;
}

/* === 說明 + 按鈕 === */
.thank-you__message {
  width: 100%;
  max-width: 550px;
  margin-top: 82px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  color: #000;
}

.thank-you__text {
  margin: 0;
  font-size: var(--font-size-2xl);
}

.thank-you__button {
  min-width: 354px;
  min-height: 62px;
  padding: 12px 32px;
  background-color: #0b2f53;
  color: #fff;
  font-weight: 600;
  font-size: var(--font-size-2xl);
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  cursor: pointer;
  border: none;
}

.thank-you__button:hover {
  background-color: #1969b9;
}

/* ============================================
   1440px 以下
   ============================================ */
@media (max-width: 1440px) {
  .thank-you__content {
    max-width: 600px;
  }

  .thank-you__heading-you {
    width: 380px;
  }
}

/* ============================================
   1024px 以下（平板）
   ============================================ */
@media (max-width: 1024px) {
  .thank-you {
    padding: 40px 16px;
    min-height: 70vh;
  }

  .thank-you__content {
    max-width: 500px;
  }

  .thank-you__heading-you {
    width: 320px;
    top: -32px;
  }

  .thank-you__message {
    margin-top: 60px;
  }

  .thank-you__text {
    font-size: var(--font-size-xl);
  }
}

/* ============================================
   768px 以下
   ============================================ */
@media (max-width: 768px) {
  .thank-you {
    padding: 32px 16px;
    min-height: 60vh;
  }

  .thank-you__heading-you {
    width: 80%;
    max-width: 280px;
    left: 50%;
    transform: translateX(-50%);
    top: -24px;
  }

  .thank-you__message {
    margin-top: 48px;
    gap: 18px;
  }

  .thank-you__text {
    font-size: 1rem;
  }

  .thank-you__button {
    min-width: 280px;
    min-height: 52px;
    font-size: 1.125rem;
  }
}

/* ============================================
   480px 以下（手機）
   ============================================ */
@media (max-width: 480px) {
  .thank-you {
    padding: 82px 16px;
    min-height: 0;
  }

  .thank-you__content {
    max-width: 298px;
  }

  .thank-you__heading {
    text-align: center;
  }

  .thank-you__heading-thank {
    font-size: 79.413px;
    text-align: center;
  }

  .thank-you__heading-you {
    width: 100%;
    max-width: none;
    top: -13px;
    left: -21%;
    transform: none;
    font-size: 129.189px;
    text-align: center;
  }

  .thank-you__message {
    margin-top: 25px;
    gap: 8px;
  }

  .thank-you__text {
    font-size: 12px;
    line-height: normal;
  }

  .thank-you__button {
    min-width: 0;
    width: 98px;
    min-height: 24px;
    padding: 0;
    font-size: 9.139px;
    font-weight: 600;
  }
}
