/* ============================================================
 * 客戶預約系統 — Vibrant_Anime_Coastal_Landscape_v1
 * 白底 / 深海軍藍 #1A365D / 陶土橘 #E65100 / 洋紅點綴 #E91E63
 * ============================================================ */
:root {
  --navy: #1A365D;
  --navy-soft: #2E5077;
  --navy-mist: #5D7A9C;
  --accent: #E65100;          /* 陶土橘 */
  --accent-hi: #FF7A3D;
  --accent-soft: #FFF3E9;     /* 橘的淡底 */
  --magenta: #E91E63;         /* 九重葛洋紅 */
  --bg: #FFFFFF;
  --card: #FFFFFF;
  --border: #E3EAF3;
  --line-c: #EDF1F7;
  --muted: #7C8FA6;
  --busy: #1A365D;            /* 已排行程:深海軍藍(暗色) */
  --green: #06C755;           /* LINE 品牌綠 */
  --success: #16A34A;
  --danger: #D93636;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 12px 32px rgba(26, 54, 93, 0.10);
  --shadow-sm: 0 4px 14px rgba(26, 54, 93, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: "Montserrat", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  background: var(--bg);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

#app { min-height: 100%; display: flex; flex-direction: column; align-items: center; padding: 40px 16px 60px; position: relative; }

.hidden { display: none !important; }

/* 頁面角落孤立點綴(九重葛枝) — 依 YAML content slide 規則 */
.corner-flower {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 150px;
  opacity: 0.9;
  pointer-events: none;
}

/* ============ 名片頁(封面式:滿版場景 + 底部深色漸層 + 大字) ============ */
.biz-card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: 12px;
}

.biz-hero { position: relative; height: 240px; }
.biz-hero .hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.biz-hero .hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,54,93,0.05) 35%, rgba(16,34,60,0.72) 100%);
}
.biz-hero .brand-tag {
  position: absolute; top: 16px; right: 20px;
  color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: 2px;
  background: rgba(26, 54, 93, 0.45);
  padding: 5px 14px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.biz-hero .hero-title {
  position: absolute; left: 176px; bottom: 18px; right: 20px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(10, 25, 47, 0.65);
}
.biz-hero .hero-title .h-name { font-size: 30px; font-weight: 900; letter-spacing: 3px; line-height: 1.2; }
.biz-hero .hero-title .h-name .nickname { font-size: 15px; font-weight: 500; margin-left: 8px; opacity: 0.9; }
.biz-hero .hero-title .h-role { font-size: 15px; font-weight: 700; letter-spacing: 2px; margin-top: 2px; opacity: 0.95; }

.biz-avatar {
  width: 124px; height: 124px;
  border-radius: 50%;
  border: 5px solid #fff;
  object-fit: cover;
  position: absolute;
  left: 28px; bottom: -46px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.biz-body { padding: 64px 34px 30px; text-align: center; }

.biz-tagline { font-size: 14px; color: var(--navy-soft); }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 15px 18px;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.08s ease, filter 0.15s ease;
}
.btn:active { transform: scale(0.985); }
.btn:hover { filter: brightness(1.05); }

.btn-book {
  margin-top: 22px;
  color: #fff;
  background: linear-gradient(120deg, var(--accent-hi), var(--accent));
  box-shadow: 0 8px 20px rgba(230, 81, 0, 0.30);
}

.btn-line {
  margin-top: 12px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 6px 16px rgba(6, 199, 85, 0.22);
}

.biz-contacts { margin-top: 26px; text-align: left; border-top: 1px solid var(--line-c); padding-top: 18px; }
.biz-contacts .row { display: flex; align-items: center; gap: 12px; padding: 9px 2px; font-size: 15px; color: var(--navy); }
.biz-contacts .row a { color: inherit; text-decoration: none; }
.biz-contacts .row a:hover { color: var(--accent); }
.biz-contacts .icon { width: 20px; height: 20px; flex: none; color: var(--accent); }

.biz-follow { margin-top: 20px; border-top: 1px solid var(--line-c); padding-top: 18px; }
.biz-follow .label { font-size: 12.5px; color: var(--muted); letter-spacing: 3px; font-weight: 700; }
.socials { display: flex; justify-content: center; gap: 18px; margin-top: 12px; }
.socials a {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease;
}
.socials a:hover { transform: translateY(-2px); }
.socials svg { width: 24px; height: 24px; }

.site-footer { margin-top: 22px; font-size: 11.5px; color: #A9B9CC; letter-spacing: 1px; text-align: center; }

/* ============ 預約頁(內容頁:乾淨白底 + 孤立點綴) ============ */
.book-wrap { width: 100%; max-width: 640px; }

.back-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--accent); font-size: 14px; text-decoration: none; font-weight: 800;
  letter-spacing: 1px;
}
.back-link:hover { text-decoration: underline; }

.book-head { text-align: center; margin: 8px 0 26px; }
.book-head h1 {
  font-size: 27px; font-weight: 900; color: var(--navy); letter-spacing: 4px;
  display: inline-block; position: relative;
}
.book-head h1::after {
  content: ""; display: block; height: 5px; border-radius: 3px; margin-top: 6px;
  background: linear-gradient(90deg, var(--accent-hi), var(--magenta));
}
.book-head p { margin-top: 10px; font-size: 14px; color: var(--muted); letter-spacing: 1px; }

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px 28px;
  margin-bottom: 22px;
}

.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
}
.step-title { font-size: 19px; font-weight: 900; color: var(--navy); letter-spacing: 2px; }
.step-note { font-size: 12.5px; color: var(--muted); }

/* --- 月曆 --- */
.cal-loading { color: var(--muted); font-size: 14.5px; padding: 8px 2px 2px; }

.cal-header { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 6px 0 14px; }
.cal-header .month-label { font-size: 17px; font-weight: 900; color: var(--navy); letter-spacing: 2px; min-width: 120px; text-align: center; }
.cal-nav {
  width: 34px; height: 34px; border-radius: 10px; border: none; background: transparent;
  color: var(--accent); font-size: 20px; cursor: pointer; font-family: inherit;
}
.cal-nav:hover:not(:disabled) { background: var(--accent-soft); }
.cal-nav:disabled { color: #D7E0EB; cursor: default; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-dow { text-align: center; font-size: 13px; color: var(--muted); padding: 4px 0; font-weight: 700; }

.cal-day {
  aspect-ratio: 1 / 0.92;
  border-radius: 12px;
  border: 2px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 15.5px;
  color: #C4D0DE;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: default;
  position: relative;
}
.cal-day.available {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  cursor: pointer;
}
.cal-day.available .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin-top: 3px; }
.cal-day.available:hover { border-color: var(--accent); }
.cal-day.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.cal-day.selected .dot { background: #fff; }
/* 行程已排滿的日子:暗色、不可點 */
.cal-day.full {
  background: var(--busy);
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  cursor: not-allowed;
  opacity: 0.85;
}

.slot-area { margin-top: 18px; }
.slot-label { font-size: 15px; font-weight: 900; color: var(--navy); letter-spacing: 1px; }
.slot-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.slot-chip {
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  letter-spacing: 0.5px;
}
.slot-chip:hover:not(:disabled) { border-color: var(--accent); }
.slot-chip.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
/* 已有行程的時段:暗色、不可點 */
.slot-chip.busy {
  background: var(--busy);
  border-color: var(--busy);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}
.slot-empty { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* --- 見面方式 --- */
.method-item {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.method-item:hover { border-color: var(--accent); }
.method-item.selected { border-color: var(--accent); background: var(--accent-soft); }
.method-item .m-title { font-size: 16.5px; font-weight: 800; color: var(--navy); letter-spacing: 1px; }
.method-item .m-desc { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

.place-box { margin-top: 16px; }
.place-box .p-label { font-size: 15px; font-weight: 800; color: var(--navy); }
.place-box .p-label .req { color: var(--danger); }
.place-box .p-hint { font-size: 13px; color: var(--navy-soft); margin: 6px 0 8px; }
.place-search { position: relative; }
.place-search .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted); pointer-events: none;
}
.place-search input { padding-left: 42px; }
.place-results {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); max-height: 240px; overflow-y: auto;
}
.place-results .item { padding: 10px 14px; font-size: 14px; cursor: pointer; }
.place-results .item:hover { background: var(--accent-soft); }
.place-results .item .p-name { font-weight: 800; color: var(--navy); }
.place-results .item .p-addr { font-size: 12.5px; color: var(--muted); }
.place-results .empty { padding: 10px 14px; font-size: 13.5px; color: var(--muted); }
.place-manual { margin-top: 10px; }
.place-picked {
  margin-top: 10px; padding: 10px 14px; border-radius: 12px;
  background: var(--accent-soft); font-size: 14px; color: var(--accent); font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.place-picked button { border: none; background: none; color: var(--muted); cursor: pointer; font-family: inherit; font-size: 13px; flex: none; }

/* --- 表單 --- */
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.field .req { color: var(--danger); margin-left: 2px; }
.field .opt { font-size: 12.5px; color: var(--muted); font-weight: 400; }

input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 15.5px;
  font-family: inherit;
  color: var(--navy);
  background: #fff;
  outline: none;
  transition: border-color 0.12s ease;
}
input:focus, textarea:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: #B9C7D8; }
textarea { min-height: 130px; resize: vertical; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  letter-spacing: 1px;
}
.chip:hover { border-color: var(--accent); }
.chip.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.chip.selected-orange { border-color: var(--magenta); background: #FDEEF4; color: var(--magenta); }

.field-error { font-size: 13px; color: var(--danger); margin-top: 6px; display: none; }
.field.invalid .field-error { display: block; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.step-card.invalid .field-error { display: block; }
.place-box.invalid .field-error { display: block; }

/* --- 送出 --- */
.submit-btn {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 20px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 6px;
  color: #fff;
  background: linear-gradient(120deg, var(--accent-hi), var(--accent));
  box-shadow: 0 10px 24px rgba(230, 81, 0, 0.32);
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.15s ease;
}
.submit-btn:hover:not(:disabled) { filter: brightness(1.06); }
.submit-btn:disabled {
  background: var(--navy-mist);
  box-shadow: none;
  cursor: default;
  letter-spacing: 3px;
}

.submit-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }
.submit-note a { color: var(--accent); font-weight: 800; text-decoration: none; }
.submit-note a:hover { text-decoration: underline; }

/* ============ 成功頁(引言式:場景壓深 + 白色大字) ============ */
.done-card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  margin-top: 30px;
}

.done-hero { position: relative; height: 150px; }
.done-hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.done-hero .hero-grad { position: absolute; inset: 0; background: rgba(16, 34, 60, 0.55); }
.done-hero .done-check {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -78%);
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--success);
  border: 4px solid rgba(255, 255, 255, 0.9);
  display: flex; align-items: center; justify-content: center;
}
.done-hero .done-check svg { width: 26px; height: 26px; color: #fff; }
.done-hero h2 {
  position: absolute; left: 0; right: 0; bottom: 16px;
  font-size: 26px; font-weight: 900; color: #fff; letter-spacing: 4px;
  text-shadow: 0 2px 10px rgba(10, 25, 47, 0.7);
}

.done-body { padding: 24px 36px 32px; }
.done-sub { font-size: 14px; color: var(--muted); }

.done-summary {
  margin: 20px 0;
  background: var(--accent-soft);
  border: 1px solid #F5DEC9;
  border-radius: 14px;
  padding: 18px 22px;
  text-align: left;
  font-size: 15.5px;
}
.done-summary .row { display: flex; gap: 16px; padding: 4px 0; }
.done-summary .k { color: var(--muted); flex: none; }
.done-summary .v { color: var(--navy); font-weight: 800; }

.done-line-hint { font-size: 14.5px; color: var(--navy); }
.done-line-hint b { font-weight: 900; color: var(--accent); }

.done-body .btn-line { margin-top: 18px; }
.done-mail-hint { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.done-back { display: inline-block; margin-top: 14px; color: var(--accent); font-size: 14px; font-weight: 800; text-decoration: none; }
.done-back:hover { text-decoration: underline; }

@media (max-width: 480px) {
  #app { padding: 20px 12px 40px; }
  .corner-flower { width: 96px; opacity: 0.75; }
  .biz-hero { height: 200px; }
  .biz-hero .hero-title { left: 150px; }
  .biz-avatar { width: 104px; height: 104px; left: 20px; }
  .biz-body { padding: 60px 22px 26px; }
  .step-card { padding: 20px 16px; }
  .cal-grid { gap: 4px; }
}
