/* /consultation 專屬樣式——依附 style.css 變數（亮暗兩態自動跟隨） */

.intro-price { font-size: 1.15rem; }

.steps { padding-left: 1.5rem; }
.steps-note { color: var(--text-secondary); }

/* 時段卡片（§5.6：整張可點、≥44px、選取態兩色系皆清晰） */
.slot-list { display: grid; gap: 0.6rem; border: 0; padding: 0; margin: 1rem 0 0.5rem; }
.slot-card {
  position: relative;
  display: flex; flex-wrap: wrap; /* 極窄螢幕（<375px）時間標示可換行，防橫向捲動 */
  justify-content: space-between; align-items: center; gap: 0.25rem 0.75rem;
  min-height: 44px; padding: 0.7rem 1rem;
  border: 1px solid var(--border); border-radius: 6px; cursor: pointer;
}
.slot-card:has(input:checked) {
  border-color: var(--link); background: var(--bg-subtle);
  outline: 2px solid var(--link);
}
.slot-card:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
/* radio 以透明隱藏但保留可聚焦（維持鍵盤導航；display:none 會失去語意） */
.slot-card input { position: absolute; opacity: 0; pointer-events: none; }
.slot-times { color: var(--text-secondary); white-space: nowrap; }

#slot-more {
  min-height: 44px; padding: 0.5rem 1rem; margin: 0.25rem 0 0;
  background: none; border: 1px dashed var(--border); border-radius: 6px;
  color: var(--link); cursor: pointer; font: inherit; width: 100%;
}

/* 表單 */
.form-field { margin: 1.25rem 0; }
.form-field label, .location-field legend { display: block; font-weight: 500; margin-bottom: 0.35rem; }
.form-field input[type="text"], .form-field input[type="email"], .form-field textarea {
  width: 100%; padding: 0.6rem 0.75rem; font: inherit;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 6px;
}
.form-field textarea { resize: vertical; }
.location-field { border: 0; padding: 0; }
.location-option {
  display: inline-flex; align-items: center; gap: 0.4em;
  min-height: 44px; margin-right: 1.5rem; cursor: pointer;
}
.field-guide { margin: 0.25rem 0 0.5rem; }
.field-count { text-align: right; color: var(--text-secondary); font-size: 0.85rem; margin: 0.25rem 0 0; }
.field-hint { color: var(--link); margin: 0.25rem 0 0; cursor: pointer; }
.field-confidential {
  font-size: 0.85rem; color: var(--text-secondary);
  background: var(--bg-subtle); padding: 0.6rem 0.8rem; border-radius: 6px; margin: 0.5rem 0 0;
}

/* 勾選（§5.6：整段 label 可點、字級不縮小） */
.consent { display: flex; gap: 0.6em; align-items: flex-start; padding: 0.6rem 0; cursor: pointer; }
.consent input { margin-top: 0.35em; flex-shrink: 0; width: 1.1em; height: 1.1em; }
.consent-note { color: var(--text-secondary); }
.consent-special { border: 1px solid var(--border); border-radius: 6px; padding: 0.6rem 0.8rem; }

/* 條款全文檢視（§5.2 第 7 點） */
#terms-preview { margin: 1.25rem 0; border: 1px solid var(--border); border-radius: 6px; padding: 0.6rem 0.8rem; }
#terms-preview summary { cursor: pointer; }
#terms-body { max-height: 16rem; overflow-y: auto; margin-top: 0.5rem; }

/* 錯誤與提示（§5.6：就地顯示、不彈窗） */
.field-error { color: #b3261e; margin: 0.25rem 0 0; }
@media (prefers-color-scheme: dark) { .field-error { color: #f2b8b5; } }

.turnstile-slot { margin: 1rem 0; min-height: 65px; }

#pay-button, #waitlist-button {
  min-height: 44px; width: 100%; padding: 0.7rem 1rem;
  font: inherit; font-weight: 500;
  color: var(--bg); background: var(--link);
  border: 0; border-radius: 6px; cursor: pointer;
}
#pay-button:disabled { opacity: 0.5; cursor: not-allowed; }

/* 候補區塊 */
.waitlist { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.waitlist input[type="email"] {
  width: 100%; padding: 0.6rem 0.75rem; font: inherit;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 6px; margin-bottom: 0.5rem;
}
.waitlist-consent { font-size: 0.85rem; color: var(--text-secondary); margin: 0.5rem 0 0; }
.waitlist-success {
  border: 2px solid #2e7d32; border-radius: 8px;
  background: var(--bg-subtle); padding: 1rem 1.2rem; margin-top: 0.5rem;
}
.waitlist-success-title { color: #2e7d32; font-weight: 600; font-size: 1.1rem; margin-bottom: 0.4rem; }
@media (prefers-color-scheme: dark) {
  .waitlist-success { border-color: #81c784; }
  .waitlist-success-title { color: #81c784; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.noscript-note { max-width: var(--content-width); margin: 1rem auto; padding: 0 var(--page-padding); }

/* ---------- 預約結果頁（S4 最小版；S6 完善） ---------- */
.result-card {
  border: 2px solid var(--text-secondary); border-radius: 8px;
  background: var(--bg-subtle); padding: 1rem 1.2rem; margin-top: 0.5rem;
  max-width: 40rem;
}
.result-card .result-title { font-weight: 600; font-size: 1.1rem; margin-bottom: 0.4rem; }
.result-success { border-color: #2e7d32; }
.result-success .result-title { color: #2e7d32; }
@media (prefers-color-scheme: dark) {
  .result-success { border-color: #81c784; }
  .result-success .result-title { color: #81c784; }
}
