/* ============================================================
   BOOKING GATEWAY — VIRCANSASTUDIO
   Public design system
   Mood: clean, modern, mobile-first, Japanese / Swiss minimalist
   Palette: white #FFFFFF · ink #0A0A0A · warm gray · reference highlight colors
   Type: Inter (display + body), JetBrains Mono (codes/coords)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand neutrals */
  --ink:        #0A0A0A;
  --ink-soft:   #1A1A1A;
  --graphite:   #5B5B57;
  --muted:      #8C8C86;
  --line:       #E7E6E1;
  --line-soft:  #F0EFEA;
  --paper:      #FFFFFF;
  --paper-warm: #FAF9F6;
  --paper-warm2:#F5F4F0;

  /* Accent — per page overridable via --accent */
  --accent:     #0A0A0A;
  --accent-ink: #FFFFFF;

  /* Reference highlight palette */
  --hi-beige: #edc7a8;
  --hi-tan: #f0a37a;
  --hi-clementine: #ff8d3a;
  --hi-nectar: #f45e23;
  --hi-pastel-peach: #f6e1ce;
  --hi-summer-peach: #fd8c80;
  --hi-peach-punch: #ff6d63;
  --hi-living-coral: #eb094b;
  --hi-burgundy: #80333b;
  --hi-pastel-periwinkle: #dccbe9;
  --hi-periwinkle: #babef6;
  --hi-deep-periwinkle: #7c86d1;
  --hi-pastel-blue: #aed2f7;
  --hi-turquoise: #60bdb8;
  --hi-still-water: #4a60a4;
  --hi-cobalt: #29309b;
  --hi-night-sky: #001762;
  --hi-pastel-green: #d9dbbf;
  --hi-citron: #d5dd28;
  --hi-deep-green: #31733a;
  --hi-forest: #19361e;
  --hi-sandstone: #f6efdd;
  --hi-sandy-beach: #d8ccb2;
  --hi-yellow-dahlia: #ffde7c;
  --hi-hello-yellow: #eeb86a;

  /* Feedback */
  --danger:     #B4321F;
  --danger-bg:  #FBEDEA;
  --ok:         #1F7A4D;
  --ok-bg:      #EAF5EF;
  --warn:       #9A6B00;

  /* Status chips */
  --st-new:        #0A0A0A;
  --st-reviewing:  #6B4FBB;
  --st-contacted:  #1F6FB4;
  --st-tentative:  #9A6B00;
  --st-confirmed:  #1F7A4D;
  --st-rescheduled:#0E7C86;
  --st-cancelled:  #B4321F;
  --st-completed:  #5B5B57;

  /* Geometry */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow-1: 0 1px 2px rgba(10,10,10,.04);
  --shadow-2: 0 6px 24px rgba(10,10,10,.07);
  --shadow-pop: 0 12px 40px rgba(10,10,10,.12);

  /* Layout */
  --app-max: 480px;          /* mobile-app feel even on desktop */
  --wide-max: 1080px;
  --pad: 20px;
  --header-h: 56px;
  --cta-h: 84px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper-warm);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font-size: 16px; } /* avoid iOS zoom */
::selection { background: var(--ink); color: #fff; }

/* ---------- App shell ---------- */
.app {
  max-width: var(--app-max);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--paper);
  position: relative;
  box-shadow: 0 0 0 1px var(--line-soft);
}
.app--wide { max-width: var(--wide-max); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 0 var(--pad);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wordmark {
  font-weight: 800; letter-spacing: -.02em; font-size: 15px;
  text-transform: uppercase;
}
.wordmark small { font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.topbar-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .02em; }

.iconbtn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink);
  transition: background .15s var(--ease);
}
.iconbtn:hover { background: var(--paper-warm2); }
.iconbtn svg { width: 18px; height: 18px; }

/* back link */
.back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--graphite); font-weight: 500;
}
.back svg { width: 16px; height: 16px; }
.back:hover { color: var(--ink); }

/* ---------- Generic layout helpers ---------- */
.section { padding: var(--pad); }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 12px; }
.between { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.divider { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* ---------- Typography ---------- */
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.15; }
.display {
  font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.08;
}
.title { font-size: 21px; font-weight: 750; }
.subtitle { font-size: 14px; color: var(--graphite); line-height: 1.5; }
.lead { font-size: 15px; color: var(--graphite); }

/* ---------- Dynamic fallback visuals ---------- */
.visual-fallback {
  --vf-bg: var(--paper-warm2);
  --vf-fg: var(--ink);
  --vf-ink: var(--ink);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--vf-bg);
  color: var(--vf-ink);
}
.visual-fallback > * { position: relative; z-index: 1; }
.visual-fallback .vf-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  line-height: 1.35;
  color: var(--vf-ink);
  text-transform: uppercase;
  text-align: center;
  padding: 0 14px;
}

/* ============================================================
   LANDING
   ============================================================ */
.hero {
  padding: 30px var(--pad) 22px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.hero .coord {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 18px;
  display: flex; justify-content: space-between;
}
.hero .display { margin-bottom: 12px; }
.hero .lead { max-width: 38ch; }
.tagline {
  margin-top: 18px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
}

.service-list { padding: 8px var(--pad) var(--pad); display: grid; gap: 12px; }
.service-card {
  display: block; position: relative;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--ink); }
.service-card:active { transform: translateY(0); }
.service-card .cover {
  aspect-ratio: 16/9; background: var(--paper-warm2);
  background-size: cover; background-position: center;
  display: grid; place-items: center; position: relative;
}
.service-card .cover.visual-fallback { background: var(--vf-bg); }
.service-card .cover .ph {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--muted); text-transform: uppercase;
}
.service-card .cover .vf-label { max-width: 74%; }
.service-card .cover .idx {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 11px; color: #fff;
  background: rgba(10,10,10,.7); padding: 3px 8px; border-radius: 100px;
  letter-spacing: .08em; z-index: 2;
}
.service-card .body { padding: 14px 16px 16px; }
.service-card .body .name { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.service-card .body .desc { font-size: 13px; color: var(--graphite); margin-top: 4px; }
.service-card .body .go {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em;
}
.service-card .body .go svg { width: 15px; height: 15px; transition: transform .18s var(--ease); }
.service-card:hover .body .go svg { transform: translateX(3px); }

/* footer */
.site-footer {
  position: relative;
  padding: 24px var(--pad) 36px; border-top: 1px solid var(--line-soft);
  background: var(--paper-warm);
}
.site-footer .links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 16px; }
.site-footer .links a { font-size: 13px; font-weight: 550; color: var(--graphite); }
.site-footer .links a:hover { color: var(--ink); }
.site-footer .fine { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.site-footer .fine .mono { font-size: 10.5px; }
/* akses admin diskret — ikon gembok samar di pojok footer */
.site-footer .admin-dot {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  color: var(--muted); opacity: .28; transition: opacity .2s, color .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.site-footer .admin-dot:hover,
.site-footer .admin-dot:focus-visible { opacity: .9; color: var(--ink); background: rgba(0,0,0,.05); outline: none; }

/* ============================================================
   BOOKING FLOW
   ============================================================ */
/* page hero */
.page-hero { position: relative; }
.page-hero .cover {
  aspect-ratio: 16/8; background: var(--paper-warm2) var(--cover) center/cover no-repeat;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.page-hero .cover.visual-fallback { display: grid; place-items: center; background: var(--vf-bg); }
.page-hero .cover-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: transparent;
}
.page-hero .cover-fallback span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  color: var(--vf-ink, var(--muted)); text-transform: uppercase;
  text-align: center; padding: 0 18px;
}
.page-intro { padding: 20px var(--pad) 6px; }
.page-intro .eyebrow { margin-bottom: 8px; }
.page-intro .title { font-size: 23px; }
.page-intro .subtitle { margin-top: 8px; }

/* Stepper */
.stepper {
  position: sticky; top: var(--header-h); z-index: 30;
  display: flex; gap: 6px; padding: 12px var(--pad);
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.step-dot { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.step-dot .bar { height: 3px; border-radius: 3px; background: var(--line); transition: background .2s; }
.step-dot .lbl {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.step-dot.active .bar { background: var(--accent); }
.step-dot.active .lbl { color: var(--ink); }
.step-dot.done .bar { background: var(--accent); }

/* step panels */
.step-panel { padding: 18px var(--pad) calc(var(--cta-h) + 18px); animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity:1; transform:none; } }
.step-head { margin-bottom: 16px; }
.step-head .kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.step-head h2 { font-size: 19px; font-weight: 720; margin-top: 6px; }
.step-head p { font-size: 13px; color: var(--graphite); margin: 6px 0 0; }

/* ---------- Catalog ---------- */
.catalog-hint {
  font-size: 12px; color: var(--muted); margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}

/* category tabs */
.cat-tabs {
  display: flex; gap: 6px; margin: 0 calc(var(--pad) * -1) 14px; padding: 0 var(--pad) 2px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 100px;
  background: var(--paper); color: var(--graphite); font-size: 13px; font-weight: 600;
  white-space: nowrap; transition: all .15s var(--ease);
}
.cat-tab:hover { border-color: var(--ink-soft); color: var(--ink); }
.cat-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-tab .tcount {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 100px; font-family: var(--font-mono);
  font-size: 10px; display: inline-grid; place-items: center; background: var(--paper-warm2); color: var(--ink);
}
.cat-tab.active .tcount { background: rgba(255,255,255,.22); color: #fff; }
.cat-tab .tcount.zero { display: none; }

/* sub-category chips */
.subcat-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.subcat-chip {
  padding: 7px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); font-size: 12.5px; font-weight: 560; color: var(--graphite);
  transition: all .14s var(--ease);
}
.subcat-chip:hover { border-color: var(--ink-soft); color: var(--ink); }
.subcat-chip.active { background: var(--paper-warm2); border-color: var(--ink); color: var(--ink); font-weight: 650; }

/* per-category selection rule line */
.cat-rule {
  display: flex; align-items: center; gap: 7px; margin-top: 12px;
  font-size: 12px; color: var(--muted);
}
.cat-rule b { color: var(--ink); font-weight: 600; }
.cat-rule svg { width: 14px; height: 14px; }
.catalog-grid { display: grid; gap: 12px; align-items: stretch; }
@media (min-width: 560px) { .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cat-item {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); overflow: hidden; cursor: pointer;
  min-width: 0; display: flex; flex-direction: column; height: 100%;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .12s var(--ease);
}
.cat-item:hover { border-color: var(--ink-soft); box-shadow: var(--shadow-1); }
.cat-item:active { transform: scale(.995); }
.cat-item.selected { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); }
.cat-item .thumb {
  aspect-ratio: 4/3; background: var(--paper-warm2) var(--img) center/cover no-repeat;
  position: relative;
}
.cat-item .thumb.visual-fallback { background: var(--vf-bg); display: grid; place-items: center; }
.cat-item .thumb .ph { width:100%; height:100%; display:grid; place-items:center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing:.14em; color: var(--muted); text-transform: uppercase; }
.cat-item .thumb .vf-label { transform: translateY(4px); }
.cat-item .badge {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: 3px 8px; border-radius: 100px;
  z-index: 2;
}
.cat-item .badge.alt { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.cat-item .check {
  position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--line); background: rgba(255,255,255,.9); display: grid; place-items: center;
  transition: all .15s var(--ease); z-index: 2;
}
.cat-item .check svg { width: 14px; height: 14px; opacity: 0; transform: scale(.6); transition: all .15s var(--ease); color: #fff; }
.cat-item.selected .check { background: var(--accent); border-color: var(--accent); }
.cat-item.selected .check svg { opacity: 1; transform: scale(1); }
.cat-item .meta { padding: 12px 13px 14px; display: flex; flex-direction: column; flex: 1; min-height: 118px; }
.cat-item .meta .nm {
  font-size: 14.5px; font-weight: 680; letter-spacing: -.01em; line-height: 1.25;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.cat-item .meta .ds {
  font-size: 12px; color: var(--graphite); margin-top: 5px; line-height: 1.45;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.cat-item .meta .pr { font-family: var(--font-mono); font-size: 12px; color: var(--ink); margin-top: auto; padding-top: 9px; font-weight: 600; }
.cat-item .meta .pr.quote { color: var(--graphite); }

/* Keep catalog cards as a consistent grid even when many items exist. */
.catalog-grid.carousel {
  overflow: visible; scroll-snap-type: none; margin: 0; padding: 0;
}

/* ---------- Catalog connector field (public) ---------- */
.cat-field { margin-bottom: 26px; }
.cat-field + .cat-field { padding-top: 22px; border-top: 1px solid var(--line-soft); }
.cat-field > .field-label { margin-bottom: 12px; font-size: 14px; }
.form-section-title {
  font-size: 13px; font-weight: 750; letter-spacing: -.01em; margin: 26px 0 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.form-section-title:first-child { margin-top: 0; }
.form-section-title small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 4px; }

/* rating stars */
.rating { display: flex; gap: 6px; }
.rating .star { background: transparent; border: 0; padding: 2px; color: var(--line); transition: color .12s var(--ease), transform .1s; }
.rating .star svg { width: 28px; height: 28px; fill: transparent; }
.rating .star.on { color: var(--accent); }
.rating .star.on svg { fill: var(--accent); }
.rating .star:active { transform: scale(.9); }

/* ---------- Form fields ---------- */
.field { margin-bottom: 18px; }
.field > label, .field-label {
  display: flex; align-items: baseline; gap: 6px; justify-content: space-between;
  font-size: 13px; font-weight: 620; margin-bottom: 7px; letter-spacing: -.005em;
}
.field .req { color: var(--danger); font-weight: 700; }
.field .opt { font-family: var(--font-mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
.field .help { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }

.control {
  width: 100%; padding: 12px 13px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink);
  outline: none; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  line-height: 1.4;
}
.control::placeholder { color: #B9B9B3; }
.control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10,10,10,.06); }
textarea.control { min-height: 96px; resize: vertical; }
select.control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238C8C86' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 38px;
}

/* phone with prefix */
.phone-wrap { display: flex; }
.phone-wrap .prefix {
  display: flex; align-items: center; padding: 0 12px; font-family: var(--font-mono); font-size: 14px;
  background: var(--paper-warm2); border: 1px solid var(--line); border-right: 0;
  border-radius: var(--r-sm) 0 0 var(--r-sm); color: var(--graphite);
}
.phone-wrap .control { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* choice groups (radio / checkbox / multiselect chips) */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper);
  font-size: 13.5px; font-weight: 540; cursor: pointer; transition: all .14s var(--ease);
  user-select: none;
}
.choice:hover { border-color: var(--ink-soft); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .mark {
  width: 18px; height: 18px; border: 1.5px solid var(--line); border-radius: 5px;
  display: grid; place-items: center; flex: none; transition: all .14s var(--ease);
}
.choice.radio .mark { border-radius: 50%; }
.choice .mark svg { width: 12px; height: 12px; color: #fff; opacity: 0; transform: scale(.5); transition: all .14s var(--ease); }
.choice.checked { border-color: var(--accent); background: rgba(10,10,10,.025); }
.choice.checked .mark { background: var(--accent); border-color: var(--accent); }
.choice.checked .mark svg { opacity: 1; transform: scale(1); }
.choice.radio.checked .mark { background: var(--accent); }
.choice.radio.checked .mark::after { content:''; width:7px; height:7px; border-radius:50%; background:#fff; }
.choice.radio .mark svg { display: none; }

/* field error */
.field.invalid .control { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180,50,31,.08); }
.field .err { display: none; font-size: 11.5px; color: var(--danger); margin-top: 6px; font-weight: 550; }
.field.invalid .err { display: block; animation: fade .2s var(--ease); }

/* honeypot */
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Date & time ---------- */
.dt-block { margin-bottom: 22px; }
.dt-block .field-label { margin-bottom: 10px; }
.cal {
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--paper);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.cal-head .mlabel { font-size: 14px; font-weight: 680; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: var(--r-xs); background: var(--paper); display: grid; place-items: center; }
.cal-nav button:hover:not(:disabled) { background: var(--paper-warm2); }
.cal-nav button:disabled { opacity: .35; cursor: not-allowed; }
.cal-nav svg { width: 16px; height: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); padding: 8px; gap: 2px; }
.cal-dow { text-align: center; font-family: var(--font-mono); font-size: 10px; color: var(--muted); padding: 6px 0; text-transform: uppercase; }
.cal-day {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: var(--r-xs);
  font-size: 13.5px; font-weight: 520; border: 0; background: transparent; color: var(--ink); position: relative;
}
.cal-day:hover:not(:disabled):not(.sel) { background: var(--paper-warm2); }
.cal-day.muted-day { color: #CFCEC9; }
.cal-day:disabled { color: #D8D7D2; cursor: not-allowed; }
.cal-day.today::after { content:''; position:absolute; bottom:5px; width:4px; height:4px; border-radius:50%; background: var(--accent); }
.cal-day.sel { background: var(--accent); color: var(--accent-ink); font-weight: 680; }
.cal-day.sel.today::after { background: #fff; }

.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 4px; }
.time-slot {
  padding: 10px 4px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper);
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; transition: all .13s var(--ease); text-align:center;
}
.time-slot:hover { border-color: var(--ink-soft); }
.time-slot.sel { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.dt-selected { margin-top: 12px; font-size: 13px; color: var(--graphite); }
.dt-selected b { color: var(--ink); }

/* ---------- Summary ---------- */
.summary-card { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
.summary-card .sc-head { padding: 14px 16px; background: var(--paper-warm); border-bottom: 1px solid var(--line-soft); }
.summary-card .sc-head .sid { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.summary-card .sc-head .svc { font-size: 16px; font-weight: 720; margin-top: 3px; }
.sum-row { display: flex; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.sum-row:last-child { border-bottom: 0; }
.sum-row .k { flex: none; width: 38%; font-size: 12.5px; color: var(--muted); }
.sum-row .v { flex: 1; font-size: 13.5px; font-weight: 540; word-break: break-word; }
.sum-row .v .pill {
  display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 100px;
  border: 1px solid var(--line); margin: 0 4px 4px 0; background: var(--paper-warm);
}
.sum-section-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 14px 16px 4px; }

.notice {
  margin-top: 16px; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--r-sm); padding: 14px 15px; background: var(--paper-warm); font-size: 13px; color: var(--graphite); line-height: 1.55;
}
.notice b { color: var(--ink); }

.agree {
  margin-top: 14px; display: flex; gap: 11px; align-items: flex-start; padding: 14px 15px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); cursor: pointer;
  transition: border-color .15s;
}
.agree.checked { border-color: var(--accent); }
.agree .mark { width: 20px; height: 20px; border: 1.5px solid var(--line); border-radius: 5px; flex: none; margin-top: 1px; display: grid; place-items: center; transition: all .14s; }
.agree.checked .mark { background: var(--accent); border-color: var(--accent); }
.agree .mark svg { width: 13px; height: 13px; color: #fff; opacity: 0; transition: opacity .14s; }
.agree.checked .mark svg { opacity: 1; }
.agree input { position: absolute; opacity: 0; }
.agree .txt { font-size: 13px; line-height: 1.5; }

.privacy-note { margin-top: 14px; font-size: 11.5px; color: var(--muted); line-height: 1.55; display: flex; gap: 8px; }
.privacy-note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }

/* ---------- Sticky CTA bar ---------- */
.cta-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: var(--app-max); z-index: 50;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-soft);
  display: flex; gap: 10px; align-items: center;
}
.app--wide .cta-bar { max-width: var(--wide-max); }

.btn {
  appearance: none; border: 1px solid var(--ink); border-radius: var(--r-sm);
  padding: 13px 18px; font-size: 14.5px; font-weight: 650; letter-spacing: -.01em;
  background: var(--paper); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s var(--ease), background .15s var(--ease), opacity .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.985); }
.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); flex: 1; }
.btn--primary:hover { opacity: .92; }
.btn--ghost { background: var(--paper); }
.btn--ghost:hover { background: var(--paper-warm2); }
.btn--wa { background: #1FAE54; border-color: #1FAE54; color: #fff; flex: 1; }
.btn--wa:hover { background: #1B9A4A; }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 20px; font-size: 15px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--icononly { flex: none; width: 50px; padding: 13px 0; }

/* ---------- Toast / inline alerts ---------- */
.alert {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); font-size: 13px; line-height: 1.45;
  border: 1px solid var(--line);
}
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert--err { background: var(--danger-bg); border-color: #F1C9C1; color: #7A2114; }
.alert--ok  { background: var(--ok-bg); border-color: #BFE3CE; color: #145C36; }

.toast-wrap { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--cta-h) + 14px); z-index: 80; width: calc(100% - 32px); max-width: 448px; pointer-events: none; }
.toast {
  pointer-events: auto; background: var(--ink); color: #fff; padding: 13px 15px; border-radius: var(--r-sm);
  font-size: 13px; box-shadow: var(--shadow-pop); display: flex; gap: 10px; align-items: center;
  animation: toastin .25s var(--ease);
}
.toast svg { width: 18px; height: 18px; flex: none; }
@keyframes toastin { from { opacity: 0; transform: translateY(10px); } to { opacity:1; transform:none; } }

/* ---------- Modal ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 90; background: rgba(10,10,10,.42);
  display: grid; place-items: end center; animation: fade .2s var(--ease);
}
.modal {
  width: 100%; max-width: var(--app-max); background: var(--paper);
  border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 22px var(--pad) calc(22px + env(safe-area-inset-bottom));
  animation: sheetup .28s var(--ease);
}
@keyframes sheetup { from { transform: translateY(100%); } to { transform: none; } }
.modal .grab { width: 38px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 16px; }
.modal h3 { font-size: 18px; font-weight: 720; margin-bottom: 8px; }
.modal p { font-size: 13.5px; color: var(--graphite); margin: 0 0 16px; line-height: 1.55; }
.copybox {
  font-family: var(--font-mono); font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
  background: var(--paper-warm); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 14px; max-height: 240px; overflow: auto; margin-bottom: 14px; color: var(--ink-soft);
}

/* ---------- Skeleton / empty ---------- */
.empty { text-align: center; padding: 60px var(--pad); }
.empty .ic { width: 48px; height: 48px; margin: 0 auto 14px; color: var(--muted); }
.empty h3 { font-size: 16px; font-weight: 680; }
.empty p { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- Responsive: desktop centered app ---------- */
@media (min-width: 540px) {
  body { background: var(--paper-warm2); }
  .app { margin-top: 0; min-height: 100dvh; }
}
@media (min-width: 720px) {
  body { padding: 0; }
  .app { box-shadow: 0 0 0 1px var(--line), var(--shadow-2); }
}

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