:root {
  --ink: #14201d;
  --muted: #687570;
  --paper: #f5f7f4;
  --white: #ffffff;
  --line: #dce3df;
  --green: #0d6b56;
  --green-dark: #094c3e;
  --lime: #bbd65a;
  --charcoal: #0e1715;
  --error: #b5473c;
  font-family: "Noto Sans TC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.topbar {
  height: 82px; padding: 0 clamp(20px, 5vw, 76px); display: flex; align-items: center;
  justify-content: space-between; background: rgba(255,255,255,.94); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(20,32,29,.08); position: relative; z-index: 5;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: white; font-family: Outfit, sans-serif; font-weight: 700; font-size: 1.25rem;
}
.brand b { display: block; font: 700 1.1rem/1 Outfit, sans-serif; letter-spacing: .12em; }
.brand small { display: block; margin-top: 5px; font: 500 .65rem/1 Outfit, sans-serif; color: var(--muted); letter-spacing: .12em; }
.top-actions { display: flex; align-items: center; gap: 20px; }
.open-badge { display: flex; align-items: center; gap: 8px; color: #53605c; font-size: .86rem; }
.open-badge i { width: 8px; height: 8px; border-radius: 50%; background: #3fa376; box-shadow: 0 0 0 4px #e4f3eb; }
.help-button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: white; color: var(--ink); font-weight: 700; }
.help-button:hover { border-color: var(--green); color: var(--green); }

.hero { min-height: 500px; height: min(62vw, 640px); position: relative; overflow: hidden; background: var(--charcoal); }
.hero > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,16,14,.84) 0%, rgba(6,16,14,.58) 36%, rgba(6,16,14,.1) 70%); }
.hero-copy { position: absolute; left: clamp(24px, 9vw, 138px); top: 50%; transform: translateY(-50%); color: white; max-width: 620px; }
.eyebrow { margin: 0 0 18px; font: 600 .74rem/1 Outfit, sans-serif; letter-spacing: .24em; color: #c7de78; }
.eyebrow.dark { color: var(--green); }
.hero h1 { font-size: clamp(2.55rem, 5.3vw, 5.4rem); line-height: 1.12; letter-spacing: -.055em; margin: 0; font-weight: 600; }
.hero-copy > p:not(.eyebrow) { color: rgba(255,255,255,.76); margin: 22px 0 30px; font-size: 1.05rem; }
.hero-link { display: inline-flex; gap: 16px; align-items: center; color: white; text-underline-offset: 6px; font-weight: 600; }
.hero-link span { color: var(--lime); }

.booking-shell { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.6fr); width: min(1180px, calc(100% - 48px)); margin: -72px auto 92px; position: relative; z-index: 2; box-shadow: 0 24px 70px rgba(29,49,43,.13); }
.booking-aside { background: var(--charcoal); color: white; padding: 54px 46px; min-height: 720px; }
.booking-aside h2 { font-size: 2rem; margin: 0 0 14px; }
.booking-aside > p:not(.eyebrow) { color: #9faaa6; line-height: 1.8; margin: 0; }
.steps { list-style: none; margin: 50px 0 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 18px; top: 22px; bottom: 22px; width: 1px; background: #32423e; }
.steps li { display: flex; align-items: center; gap: 16px; color: #6f7b77; margin: 0 0 34px; position: relative; }
.steps li:last-child { margin-bottom: 0; }
.steps span { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 50%; background: #22302d; font: 600 .72rem Outfit, sans-serif; z-index: 1; }
.steps b { font-size: .95rem; }
.steps li.active { color: white; }
.steps li.active span { background: var(--lime); color: var(--ink); }
.contact-card { margin-top: 72px; padding-top: 22px; border-top: 1px solid #32423e; display: grid; gap: 7px; }
.contact-card span, .contact-card small { color: #788681; font-size: .76rem; }
.contact-card b { font-size: .88rem; }

.booking-panel { min-height: 720px; background: white; padding: 54px clamp(28px, 5vw, 68px); }
.loading-state, .error-state { min-height: 500px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; color: var(--muted); }
.spinner { width: 36px; height: 36px; border: 3px solid #e0e8e4; border-top-color: var(--green); border-radius: 50%; animation: spin .85s linear infinite; }
.spinner.small { width: 18px; height: 18px; border-width: 2px; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-state { flex-direction: row; text-align: left; }
.error-state > span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff0ed; color: var(--error); font-weight: 700; }
.error-state p { margin: 4px 0 0; font-size: .9rem; }
.error-state button { margin-left: 12px; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line); background: white; }
.hidden { display: none !important; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 22px; }
.section-head h3 { margin: 7px 0 0; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.035em; }
.step-kicker { color: var(--green); font: 700 .7rem Outfit, sans-serif; letter-spacing: .17em; }
.selection-hint { color: #8b9692; font-size: .78rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service-card { position: relative; border: 1px solid var(--line); background: white; text-align: left; border-radius: 13px; padding: 20px 18px; min-height: 156px; transition: .18s ease; color: var(--ink); }
.service-card:hover { transform: translateY(-2px); border-color: #a8bbb4; box-shadow: 0 10px 28px rgba(33,65,55,.08); }
.service-card.selected { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: #f2f8f5; }
.service-card.selected::after { content: "✓"; position: absolute; right: 14px; top: 14px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: .72rem; }
.service-card b { display: block; margin: 5px 0 7px; font-size: 1.02rem; }
.service-card p { margin: 0 0 17px; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.service-meta { display: flex; align-items: end; justify-content: space-between; color: var(--green-dark); }
.service-meta strong { font: 600 1rem Outfit, sans-serif; }
.service-meta small { color: var(--muted); }
.service-index { color: #9aaba5; font: 600 .68rem Outfit, sans-serif; letter-spacing: .12em; }
.staff-head { margin-top: 34px; margin-bottom: 16px; }
.staff-head h3 { font-size: 1.15rem; }
.staff-list { display: flex; gap: 10px; flex-wrap: wrap; }
.staff-chip { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 10px 15px; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; }
.staff-chip span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #eaf0ed; color: var(--green); font-size: .68rem; font-weight: 700; }
.staff-chip small { color: #8a9691; }
.staff-chip.selected { background: var(--ink); border-color: var(--ink); color: white; }
.staff-chip.selected span { background: var(--lime); color: var(--ink); }
.primary-button { width: 100%; margin-top: 36px; min-height: 54px; border: 0; border-radius: 10px; background: var(--green); color: white; display: flex; align-items: center; justify-content: center; gap: 16px; font-weight: 700; transition: .18s ease; }
.primary-button:not(:disabled):hover { background: var(--green-dark); transform: translateY(-1px); }
.primary-button:disabled { background: #c9d2ce; cursor: not-allowed; }
.back-button { border: 0; background: transparent; padding: 0; color: var(--muted); font-size: .86rem; margin-bottom: 28px; }
.back-button:hover { color: var(--green); }
.date-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.date-button { min-width: 0; border: 1px solid var(--line); background: white; border-radius: 11px; padding: 12px 5px; display: grid; place-items: center; gap: 5px; color: var(--ink); }
.date-button span { font-size: .72rem; color: var(--muted); }
.date-button b { font: 600 1.2rem Outfit, sans-serif; }
.date-button small { font-size: .65rem; color: #94a09c; }
.date-button.selected { background: var(--ink); color: white; border-color: var(--ink); }
.date-button.selected span, .date-button.selected small { color: #c5cfcb; }
.date-button:disabled { opacity: .42; cursor: not-allowed; }
.time-head { display: flex; justify-content: space-between; margin: 30px 0 14px; }
.time-head span { font-weight: 700; }
.time-head small { color: var(--muted); }
.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; min-height: 116px; }
.time-button { border: 1px solid var(--line); background: white; border-radius: 9px; min-height: 46px; color: var(--ink); font-family: Outfit, sans-serif; }
.time-button:hover { border-color: var(--green); color: var(--green); }
.time-button.selected { background: var(--green); color: white; border-color: var(--green); }
.no-slots { grid-column: 1/-1; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 28px; background: var(--paper); border-radius: 10px; }
.time-loading { display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted); min-height: 116px; }
.summary-card { background: var(--paper); border-radius: 12px; padding: 18px 20px; margin-bottom: 26px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 15px; }
.summary-card div { display: grid; gap: 3px; }
.summary-card span { color: var(--muted); font-size: .72rem; }
.summary-card b { font-size: .92rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form > label, .field-row label { display: grid; gap: 8px; font-size: .86rem; font-weight: 600; margin-bottom: 17px; }
label > span { color: var(--error); }
label > small { color: var(--muted); font-weight: 400; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; color: var(--ink); background: white; outline: none; font-size: 1rem; }
input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(13,107,86,.1); }
textarea { resize: vertical; }
.consent { grid-template-columns: 20px 1fr; align-items: start; gap: 10px; color: var(--muted); font-weight: 400; line-height: 1.55; }
.consent input { margin: 3px 0 0; width: 17px; height: 17px; accent-color: var(--green); }
.consent span { color: inherit; }
.honey { position: absolute; left: -10000px; }
.form-error { color: var(--error); background: #fff2ef; padding: 10px 12px; border-radius: 8px; font-size: .84rem; }

.info-strip { width: min(1180px, calc(100% - 48px)); margin: 0 auto 80px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info-strip div { padding: 28px 30px; display: grid; gap: 6px; border-right: 1px solid var(--line); }
.info-strip div:last-child { border-right: 0; }
.info-strip span { color: var(--green); font: 700 .66rem Outfit, sans-serif; letter-spacing: .17em; }
.info-strip b { font-size: 1rem; }
.info-strip small { color: var(--muted); }
footer { padding: 26px clamp(20px,5vw,76px); background: var(--charcoal); color: #77827e; display: flex; justify-content: space-between; gap: 20px; font-size: .73rem; }

dialog { border: 0; border-radius: 18px; box-shadow: 0 30px 100px rgba(0,0,0,.25); padding: 38px; width: min(440px, calc(100% - 32px)); color: var(--ink); }
dialog::backdrop { background: rgba(5,14,12,.66); backdrop-filter: blur(4px); }
.success-dialog { text-align: center; }
.success-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 1.6rem; margin: 0 auto 22px; }
.success-dialog h2, .help-dialog h2 { font-size: 1.8rem; margin: 0 0 10px; }
.success-dialog > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.booking-code { margin: 24px 0 18px; padding: 14px; background: var(--paper); border-radius: 10px; display: grid; gap: 4px; }
.booking-code span { color: var(--muted); font-size: .72rem; }
.booking-code b { font: 700 1.35rem Outfit, sans-serif; letter-spacing: .08em; color: var(--green-dark); }
.dialog-summary { color: var(--muted); font-size: .86rem; line-height: 1.7; }
.dialog-close { position: absolute; right: 18px; top: 14px; border: 0; background: none; font-size: 1.6rem; color: var(--muted); }
.help-dialog ul { padding-left: 22px; margin: 22px 0 0; color: var(--muted); line-height: 1.9; }

@media (max-width: 840px) {
  .topbar { height: 70px; }
  .open-badge { display: none; }
  .hero { height: 520px; min-height: 0; }
  .hero > img { object-position: 62% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(6,16,14,.86), rgba(6,16,14,.38)); }
  .booking-shell { grid-template-columns: 1fr; width: min(680px, calc(100% - 28px)); margin-top: -46px; }
  .booking-aside { min-height: 0; padding: 30px; }
  .booking-aside > p:not(.eyebrow), .contact-card { display: none; }
  .booking-aside h2 { font-size: 1.55rem; margin: 0; }
  .booking-aside .eyebrow { margin-bottom: 10px; }
  .steps { margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); }
  .steps::before { left: 12%; right: 12%; top: 16px; bottom: auto; width: auto; height: 1px; }
  .steps li { display: grid; justify-items: center; gap: 8px; margin: 0; text-align: center; }
  .steps span { width: 32px; height: 32px; }
  .steps b { font-size: .72rem; }
  .booking-panel { min-height: 620px; padding: 36px 28px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .date-strip { overflow-x: auto; grid-template-columns: repeat(7, 66px); padding-bottom: 7px; }
  .time-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .brand small { display: none; }
  .hero-copy { left: 24px; right: 24px; }
  .hero h1 { font-size: 2.7rem; }
  .hero-copy > p:not(.eyebrow) { font-size: .95rem; }
  .booking-shell { margin-bottom: 58px; }
  .booking-aside { padding: 26px 22px; }
  .booking-panel { padding: 32px 20px; }
  .section-head { align-items: start; }
  .selection-hint { margin-top: 6px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .summary-card { grid-template-columns: 1fr; }
  .info-strip { grid-template-columns: 1fr; width: calc(100% - 28px); }
  .info-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .info-strip div:last-child { border-bottom: 0; }
  footer { flex-direction: column; }
  dialog { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
