* {
  box-sizing: border-box;
}

body {
  background: #f8f5ed;
  color: #111;
  font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', 'Heiti TC', sans-serif;
  font-weight: 300;
  margin: 0;
  padding: 0;
  text-align: center;
  width: 100vw;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

h1 {
  margin: 40px 0 28px 0;
  font-size: 2.5em;
  letter-spacing: 3px;
  color: #111;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.form-section {
  position: relative;
  max-width: 480px;
  margin: 40px auto;
  padding: 24px;
  background: #fffbe9;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  text-align: left;
  color: #111;
}

.form-section .step-number {
  left: unset;
  margin-bottom: 16px;
}

.form-section h2 {
  margin: 0 0 16px 0;
  font-size: 1.5em;
}

.form-section p {
  color: #bbb;
  line-height: 1.6;
  margin: 0;
}

/* gallery 樣式已移除 */

.main-container {
  width: 100%;
  max-width: 680px;
  margin: 32px auto;
  padding: 44px 36px 44px 36px;
  background: #fffbe9;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  text-align: left;
  color: #111 !important;
  opacity: 0;
  animation: fadeIn 1.2s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.main-container h1 {
  color: #111;
  font-size: 2em;
  margin-top: 0;
  margin-bottom: 44px;
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* 大區塊標題 - 與前一個區塊有大間距 */
.main-container h2 {
  color: #bfa100;
  font-size: 1.2em;
  margin: 48px 0 16px 0;
  font-weight: 700;
  letter-spacing: 1px;
}

/* 第一個 h2 不需要上方大間距 */
.main-container h2:first-of-type {
  margin-top: 24px;
}

/* 區塊內的小標題 */
.main-container strong {
  color: #2e7d32;
  display: block;
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 1.08em;
  font-weight: 300;
  letter-spacing: 0.6px;
}

/* 區塊內的列表 */
.main-container ul {
  margin: 0 0 16px 20px;
  padding: 0 0 0 16px;
  color: #333;
  font-size: 1em;
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: 0.8px;
}

/* 列表項目 */
.main-container li {
  font-weight: 300;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

/* 區塊內的段落 */
.main-container p {
  color: #333;
  margin: 0 0 12px 0;
  line-height: 1.6;
  font-size: 1em;
  font-weight: 300;
  letter-spacing: 0.8px;
}

/* 區塊內最後一個段落需要較大下邊距，為下個區塊做準備 */
.main-container p:last-of-type {
  margin-bottom: 24px;
}

/* 容器內的圖片 */
.main-container img {
  border-radius: 12px;
  margin-bottom: 32px;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, strong, .main-container, .main-container h1, .main-container h2, .main-container strong, .main-container ul, .main-container p, .form-section, .form-section h2, .form-section p {
  color: #111 !important;
}

/* 確保字體樣式正確應用 */
.main-container p,
.main-container li {
  font-weight: 300 !important;
  letter-spacing: 0.8px !important;
}

/* 偵錯模式相關樣式 */
.debug-mode-result {
  display: block;
}

.debug-mode-form {
  display: none;
}

.main-container strong {
  font-weight: 300 !important;
  letter-spacing: 0.6px !important;
}

.form-section {
  background: #fffbe9;
  color: #111 !important;
}

/* 中等螢幕 */
@media (max-width: 900px) and (min-width: 769px) {
  .main-container {
    max-width: 90% !important;
  }
}

/* 平板版本 */
@media screen and (max-width: 768px) and (min-width: 481px) {
  body {
    padding: 0;
  }
  .main-container {
    max-width: none !important;
    width: calc(100vw - 16px) !important;
    margin: 8px !important;
    padding: 32px 20px !important;
  }
}

/* 手機版本 */
@media screen and (max-width: 480px) {
  body {
    padding: 0 !important;
    margin: 0 !important;
  }
  .main-container {
    max-width: none !important;
    width: 100vw !important;
    padding: 50px 16px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .main-container h1 {
    font-size: 1.6em;
    margin-bottom: 20px;
    letter-spacing: 1px;
  }
  .main-container h2 {
    font-size: 1.1em;
    margin: 28px 0 12px 0;
  }
  .main-container ul {
    margin: 0 0 12px 16px;
    padding: 0 0 0 12px;
  }
  .main-container strong {
    margin-top: 16px;
    margin-bottom: 6px;
  }
  .main-container img {
    margin-bottom: 20px;
    border-radius: 8px !important;
  }
}

input, textarea, button {
  font-family: inherit;
  font-size: 16px;
}

input, textarea {
  background-color: #f8f5ed;
  border: 1px solid #bbb;
  color: #111 !important;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}

button {
  width: 100%;
  padding: 12px;
  background-color: #111;
  color: #fffbe9 !important;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  min-height: 44px;
  letter-spacing: 1.5px;
}
button:hover {
  background-color: #333;
}
button:disabled {
  cursor: not-allowed;
  background-color: #bbb;
}

.copyright {
  color: #555;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  margin-top: 32px;
}

#signup-count-status {
  margin-left: 12px;
  margin-right: 0;
  font-size: 0.9em;
  color: #fffbe9;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

#scroll-to-form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#scroll-to-form-btn:disabled {
  background-color: #bbb !important;
  color: #666 !important;
  cursor: not-allowed !important;
}

 