/* Demo forms: hotel/ uses the site's look plus these; kbs/ has its own plain look below. */

/* ---------- hotel ---------- */
.demo { padding-top: 48px; padding-bottom: 80px; }
.demo h1 { font-size: clamp(28px, 4vw, 40px); }
.eyebrow { color: var(--orange-ink); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin: 0 0 8px; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; max-width: 860px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.group { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin: 6px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.group:not(:first-child) { margin-top: 28px; }
.group small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); font-size: 13px; }
.row { display: grid; gap: 16px; margin-bottom: 16px; }
.row.two { grid-template-columns: 1fr 1fr; }
.row.three { grid-template-columns: 1fr 1fr 1fr; }
.row label, .row fieldset { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.row fieldset { border: 0; padding: 0; }
.lbl { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; }
.lbl i { font-style: normal; font-weight: 500; font-size: 11px; color: var(--muted); background: var(--alt); border-radius: 5px; padding: 1px 6px; margin-left: 4px; }
.demo input[type=text], .demo input[type=tel], .demo input[type=date], .demo select {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff; width: 100%;
  border: 1px solid #cfcac3; border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
.demo input:focus, .demo select:focus { outline: 3px solid rgba(249,169,73,.45); border-color: var(--orange); }
.radios { display: flex; gap: 18px; align-items: center; min-height: 44px; }
.radios label { flex-direction: row; align-items: center; gap: 8px; font-size: 16px; }
.radios input { width: 18px; height: 18px; accent-color: var(--orange-ink); }
.radios input:focus { outline: 3px solid rgba(249,169,73,.45); outline-offset: 2px; }
.actions { display: flex; gap: 10px; align-items: flex-end; justify-content: flex-end; }
.btn { font: 600 16px/1 system-ui, sans-serif; border: 0; border-radius: 10px; padding: 13px 22px; background: var(--ink); color: #fff; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid #cfcac3; }
.recipe h2 { font-size: 18px; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
.steps-list { list-style: none; counter-reset: s; padding: 0; margin: 12px 0; font-size: 14px; }
.steps-list li { padding: 6px 0 6px 0; border-bottom: 1px dashed var(--line, #ddd); }
.steps-list li.k { color: var(--muted, #666); font-family: ui-monospace, Consolas, monospace; font-size: 12px; padding-left: 14px; }
.steps-list li.k::before { content: "↹ "; }
.result { margin-top: 24px; max-width: 860px; }
.result dl, .kbs #result dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 12px 0; }
.result dt, .kbs #result dt { color: var(--muted, #666); }
.result dd, .kbs #result dd { margin: 0; font-weight: 600; }
.result dd.empty, .kbs #result dd.empty { color: #bbb; font-weight: 400; }
@media (max-width: 860px) {
  .demo-grid, .row.two, .row.three { grid-template-columns: 1fr; }
  .actions { justify-content: flex-start; }
}

/* ---------- KBS look-alike ---------- */
body.kbs *, body.kbs *::before, body.kbs *::after { box-sizing: border-box; }
body.kbs { margin: 0; background: #e9edf2; color: #1e2a36; font: 13px/1.45 Tahoma, Verdana, "Segoe UI", Arial, sans-serif; }
.kbs-wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.kbs-demo-note { background: #fff4d6; color: #6b4e00; border-bottom: 1px solid #e6cf8c; padding: 8px 16px; text-align: center; font-size: 12px; }
.kbs-demo-note a { color: #6b4e00; font-weight: 700; }
.kbs-top { background: linear-gradient(#1f4e79, #163a5c); color: #fff; }
.kbs-top .kbs-wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.kbs-title { font-size: 22px; font-weight: 700; letter-spacing: .04em; }
.kbs-title span { font-size: 13px; font-weight: 400; opacity: .8; letter-spacing: 0; margin-left: 8px; }
.kbs-user { font-size: 12px; opacity: .85; }
.kbs-menu { background: #d5dde6; border-bottom: 1px solid #b7c3d0; }
.kbs-menu .kbs-wrap { display: flex; flex-wrap: wrap; }
.kbs-menu span { padding: 8px 14px; color: #1f4e79; border-right: 1px solid #b7c3d0; }
.kbs-menu span.on { background: #fff; font-weight: 700; }
.kbs main { padding-top: 18px; padding-bottom: 40px; }
.kbs-panel { background: #fff; border: 1px solid #b7c3d0; margin-bottom: 16px; }
.kbs-panel-h { background: #f0f3f7; border-bottom: 1px solid #b7c3d0; padding: 8px 12px; font-weight: 700; color: #1f4e79; }
.kbs-panel-h.ok { color: #1d6b2f; background: #e7f4ea; }
.kbs-section { padding: 10px 12px 4px; font-weight: 700; color: #a03a12; border-bottom: 1px solid #eee; margin: 0 12px; padding-left: 0; }
.kbs-table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; }
.kbs-table th { width: 17%; text-align: right; font-weight: 400; color: #34495e; padding: 6px 10px; white-space: nowrap; }
.kbs-table th em { color: #c0392b; font-style: normal; }
.kbs-table td { width: 33%; padding: 6px 10px 6px 0; }
.kbs input, .kbs select { font: 13px Tahoma, Verdana, Arial, sans-serif; width: 100%; height: 26px; border: 1px solid #8fa3b8; border-radius: 2px; padding: 2px 6px; background: #fff; text-transform: uppercase; }
.kbs input:focus, .kbs select:focus { outline: 2px solid #f0b400; background: #fffbe8; }
.kbs-actions { padding: 10px 12px; border-top: 1px solid #dde3ea; background: #f7f9fb; display: flex; gap: 8px; justify-content: flex-end; }
.kbs-actions button { font: 700 13px Tahoma, Verdana, Arial, sans-serif; padding: 6px 18px; border: 1px solid #1f4e79; background: linear-gradient(#2e6aa3, #1f4e79); color: #fff; border-radius: 2px; cursor: pointer; }
.kbs-actions button[type=reset] { background: #eef1f5; color: #1f4e79; }
.kbs #result dl { padding: 0 12px; }
.recipe-kbs .steps-list, .recipe-kbs p { margin: 8px 12px; }
@media (max-width: 720px) {
  .kbs-table, .kbs-table tbody, .kbs-table tr { display: block; }
  .kbs-table th, .kbs-table td { display: block; width: auto; text-align: left; padding: 4px 12px; }
}

/* demo links on the home page */
.demo-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.demo-links a { text-decoration: none; font-weight: 600; border: 1px solid var(--ink); border-radius: 10px; padding: 10px 16px; color: var(--ink); background: #fff; }
.demo-links a:hover { border-color: var(--orange); color: var(--orange-ink); }
