/* 從 設計稿/預約頁.html 的 <style> 複製（WP 測試用） */

/* ---- 預約頁專用 ---- */
.book-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 500; font-size: 16px; color: var(--teal-deep); padding: 0; }
.req { color: var(--pink); font-weight: 700; margin-left: 2px; }
.opt { font-weight: 400; font-size: 14px; color: var(--ink-soft); margin-left: 6px; }
.hint { font-size: 14px; color: var(--ink-soft); }
.form input[type=text], .form input[type=tel], .form input[type=email], .form input[type=date], .form select, .form textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 14px;
  font: 400 17px/1.5 var(--f-body); color: var(--ink); background: #fff;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--teal); outline: 3px solid rgba(0,159,162,.2); outline-offset: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 16px; background: #fff; }
.chips input { accent-color: var(--teal); width: 18px; height: 18px; margin: 0; }
.chips label.is-off { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.chips label:has(input:checked) { border-color: var(--teal); background: var(--mist); color: var(--teal-deep); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.agree input { accent-color: var(--teal); width: 20px; height: 20px; margin-top: 4px; flex: none; }
.captcha { border: 1.5px dashed var(--line); border-radius: 14px; padding: 14px 16px; font-size: 14px; color: var(--ink-soft); }
.submit { justify-self: start; border: 0; cursor: pointer; min-width: 220px; justify-content: center; }

.aside { position: sticky; top: 100px; display: grid; gap: 14px; }
.aside .card { background: var(--mist); border-radius: var(--r-lg); padding: 24px; }
.aside h2 { font-size: 24px; margin-bottom: 12px; }
.aside p, .aside li { font-size: 18px; line-height: 1.7; color: var(--ink); }
.aside ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.aside .btn { width: 100%; justify-content: center; margin-top: 10px; }
.aside .tel { border: 1.5px solid var(--teal-deep); color: var(--teal-deep); }

@media (max-width: 960px) {
  .book-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 767px) {
  .form { grid-template-columns: 1fr; }
  .submit { width: 100%; }
}

/* WP 版：送出結果訊息 */
.form-msg { grid-column: 1 / -1; border-radius: 14px; padding: 14px 18px; font-size: 15px; }
.form-msg.ok { background: var(--mist); color: var(--teal-deep); }
.form-msg.err { background: var(--pink-soft); color: #a3174f; }
.form-msg ul { margin: 6px 0 0; padding-left: 20px; }
.hp { position: absolute; left: -9999px; }  /* 防機器人的隱藏欄位 */

/* ---- 好填版（長輩友善）：大字、大按鈕、分步驟 ---- */
.form.easy { grid-template-columns: 1fr; gap: 28px; font-size: 18px; }   /* 一欄由上往下填，不要左右兩欄 */
.form.easy .field label, .form.easy .field legend { font-size: 18px; }
.form.easy input[type=text], .form.easy input[type=tel], .form.easy input[type=email], .form.easy select, .form.easy textarea { min-height: 58px; font-size: 19px; }
.form.easy .hint { font-size: 15px; }
.notice.urgent { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; line-height: 1.6; margin-bottom: 16px; }
.notice.urgent .ico { margin: .3em 0 0; }
.notice.urgent a { color: inherit; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.call-first { background: var(--mist); border-radius: 18px; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.call-first p { margin: 0; font-size: 18px; color: var(--teal-deep); }
.call-first .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.call-first .btn { min-height: 52px; font-size: 18px; }
.step { display: grid; gap: 14px; }
.step legend { display: flex; align-items: center; gap: 12px; font: 400 24px/1.3 var(--f-display); color: var(--teal-deep); margin-bottom: 4px; }
.step .no { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--teal-deep); color: #fff; font: 700 18px var(--f-num); flex: none; }
.sub-legend { margin: 6px 0 0; font-weight: 500; color: var(--teal-deep); font-size: 18px; }
.chips.big { gap: 12px; }
.chips.big label { min-height: 60px; padding: 0 22px; font-size: 18px; border-radius: 16px; gap: 10px; }
.chips.big label .ico { color: var(--teal); width: 22px; height: 22px; margin: 0; }
.chips.big label small { color: var(--ink-soft); font-size: 14px; margin-left: 4px; }
.chips.big input { width: 22px; height: 22px; }
.chips.dates label { flex-direction: column; justify-content: center; gap: 0; min-width: 96px; padding: 8px 14px; line-height: 1.3; }
.chips.dates label b { font: 700 20px var(--f-num); color: var(--teal-deep); }
.chips.dates label input { position: absolute; opacity: 0; pointer-events: none; }   /* 日期按鈕本身就是選項，圓點不顯示 */
.chips.dates label:has(input:checked) { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.chips.dates label:has(input:checked) b { color: #fff; }
.chips.dates label:has(input:focus-visible) { outline: 3px solid rgba(0,159,162,.35); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.more-opts { border: 1.5px solid var(--line); border-radius: 16px; padding: 4px 20px; background: #fff; }
.more-opts summary { cursor: pointer; padding: 14px 0; font-size: 18px; color: var(--teal-deep); font-weight: 500; }
.more-opts[open] { padding-bottom: 20px; }
.form.easy .agree { font-size: 17px; }
.form.easy .agree input { width: 26px; height: 26px; margin-top: 2px; }
.form.easy .submit { width: 100%; min-height: 64px; font-size: 21px; }
@media (max-width: 767px) { .two { grid-template-columns: 1fr; } .chips.big label { flex: 1 1 100%; } .chips.dates label { flex: 0 0 calc(33.33% - 8px); min-width: 0; } }

/* 語音輸入：「用說的」按鈕（瀏覽器不支援時整顆隱藏） */
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.form.easy .field > label, .form.easy .label-row { min-height: 42px; display: flex; align-items: center; }   /* 有沒有「用說的」按鈕，標籤都一樣高，左右輸入框才會對齊 */
.form.easy .label-row { justify-content: space-between; }
.mic { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--teal); border-radius: 999px; background: #fff; color: var(--teal-deep); font: 500 16px var(--f-body); cursor: pointer; }
.mic .ico { margin: 0; width: 20px; height: 20px; }
.mic.on { background: var(--pink); border-color: var(--pink); color: #fff; animation: mic-pulse 1.2s ease-in-out infinite; }
@keyframes mic-pulse { 50% { box-shadow: 0 0 0 8px rgba(210,38,107,.15); } }
.voice-fallback { margin-top: 8px; font-size: 16px; color: var(--teal-deep); }
.voice-fallback a { color: inherit; font-weight: 700; text-decoration: underline; }
.voice-tip { margin: 0; font-size: 16px; color: var(--ink-soft); }
.voice-tip .ico { color: var(--teal); }

/* 從醫師團隊頁「預約○○醫師」來：上方顯示指定的醫師 */
.doc-pick { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: 16px; background: var(--teal-deep); color: #fff; font-size: 19px; }
.doc-pick[hidden] { display: none; }
.doc-pick b { font-weight: 700; }
.doc-pick .ico { margin-right: 8px; }
.doc-pick button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.7); background: transparent; color: #fff; font: 500 16px var(--f-body); cursor: pointer; }

/* 輸入框看得清楚：表單放在淺青底上，輸入框和選項用較深的 2px 框線（白底白框長輩看不出來） */
.form.easy { background: var(--mist); border-radius: 24px; padding: clamp(18px, 3vw, 32px); }
.form.easy .call-first { background: #fff; }
.form.easy input[type=text], .form.easy input[type=tel], .form.easy input[type=email], .form.easy input[type=date], .form.easy select, .form.easy textarea {
  border: 2px solid #8fbcbc; background: #fff; box-shadow: inset 0 1px 2px rgba(11,92,94,.08); }
.form.easy input:hover, .form.easy select:hover, .form.easy textarea:hover { border-color: var(--teal); }
.form.easy input:focus, .form.easy select:focus, .form.easy textarea:focus { border-color: var(--teal); outline: 4px solid rgba(0,159,162,.25); }
.form.easy .chips label { border: 2px solid #8fbcbc; background: #fff; }
.form.easy .chips label:hover { border-color: var(--teal); }
.form.easy .more-opts { border: 2px solid #8fbcbc; }
.form.easy .agree input, .form.easy .chips input { accent-color: var(--teal-deep); }
.form.easy .agree { background: #fff; border: 2px solid #8fbcbc; border-radius: 14px; padding: 14px 16px; cursor: pointer; }
.form.easy .agree:has(input:checked) { border-color: var(--teal); background: #f2fbfb; }
