/* 頁面 08 — Form 領取表單 */

/* 上內距用 vh 而不是固定值:矮螢幕(SE 含 Safari 工具列只剩 553 高)要把空間讓給送出鍵,
   高螢幕才展開成設計稿的舒服比例。詳見 LESSONS_LEARNED 2026-07-30「版面預算」條目。 */
.p08-page {
  padding: clamp(20px, 5vh, 72px) 26px 60px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* T-079:表單狀態照原始設計稿改**左對齊**(擋下卡/完成登錄卡仍是置中的卡片,不受影響) */
.p08-page--form {
  align-items: stretch;
  text-align: left;
}

.p08-page--form > * {
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
}

/* 「恭喜你!」— 設計稿的紅色主標 */
.p08-congrats {
  font-weight: 900;
  font-size: clamp(26px, 8vw, 32px);
  color: var(--red-divider);
  margin: 0 0 12px;
  line-height: 1.2;
}

.p08-title {
  font-weight: 900;
  font-size: clamp(19px, 5.8vw, 22px);
  color: var(--ink);
  margin: 0 0 clamp(20px, 5vh, 40px);
  line-height: 1.5;
}

.p08-form {
  width: 100%;
  max-width: 360px;
}

.p08-field {
  margin-bottom: 16px;
}

.p08-label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}

.p08-input {
  width: 100%;
  height: 60px;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-input);
  background: rgba(255, 255, 255, 0.65);
  font-family: 'Noto Sans TC', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  padding: 0 16px;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.p08-input::placeholder {
  color: var(--ink-muted);
  opacity: 0.6;
}

.p08-input:focus {
  outline: none;
  border-color: var(--red-accent);
}

.p08-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.p08-error {
  font-size: 13px;
  font-weight: 700;
  color: var(--red-accent);
  margin-top: 8px;
  min-height: 20px;
}

.p08-turnstile {
  margin: 16px 0 0;
  display: flex;
  justify-content: center;
  min-height: 65px;
}

.p08-submit {
  margin: clamp(16px, 3vh, 24px) 0 20px;
  transition: background-color 0.3s, transform 0.1s;
}

.p08-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.p08-submit:not(:disabled):active {
  transform: scale(0.95) translateY(1px);
}

/* 注意事項:設計稿是「注意事項:」+ 編號清單,編號與內文靠 ol 的懸掛縮排對齊,
   換行時第二行會跟第一行的文字切齊(不會頂到編號底下)。 */
.p08-notes {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1.7;
  text-align: left;
}

.p08-notes-title {
  margin-bottom: 4px;
}

.p08-notes-list {
  margin: 0;
  padding-left: 1.9em;
}

.p08-notes-list li {
  margin-bottom: 6px;
}

/* 成功卡 */
.p08-success-card {
  max-width: 340px;
  width: 100%;
  padding: 40px 32px;
  text-align: center;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-hard-card);
}

.p08-success-icon {
  font-size: clamp(44px, 13vw, 52px);
  margin-bottom: 16px;
}

/* T-061a:「完成登錄」的 OK 愛心(167×145),取代原本的 🎉 emoji */
.p08-success-art {
  display: block;
  width: min(46%, 150px);
  height: auto;
  margin: 0 auto 16px;
}

/* 限量與資格的細則,字級比主文小一階 */
.p08-success-note {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-faint);
  line-height: 1.6;
  margin: -14px 0 26px;
}

/* 擋下狀態(未完成兩關 / cpr 版不可達)共用一張卡 */
.p08-blocked-card {
  max-width: 340px;
  width: 100%;
  padding: 40px 32px;
  text-align: center;
}

.p08-blocked-icon {
  font-size: clamp(40px, 12vw, 48px);
  margin-bottom: 16px;
}

.p08-blocked-title {
  font-weight: 900;
  font-size: clamp(18px, 5.5vw, 20px);
  color: var(--ink);
  margin-bottom: 14px;
}

.p08-blocked-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 24px;
}

.p08-success-title {
  font-weight: 900;
  font-size: clamp(19px, 6vw, 22px);
  color: var(--green-success);
  margin-bottom: 14px;
}

.p08-success-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 28px;
}

.p08-success-btn {
  margin: 0;
}

/* 額滿狀態 */
.p08-full-title {
  color: var(--red-accent);
}
