/* /book/ (guided brief + quick form) and /contact/ (ways to reach us, office card). Tokens come from /styles.css. */

/* ───────── /contact/ ───────── */
.ct-hero { padding-bottom: clamp(3rem, 7vw, 6rem); }
.ct-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.ct-way { display: grid; gap: .55rem; align-content: start; padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .3s, box-shadow .3s cubic-bezier(.16, 1, .3, 1), transform .3s cubic-bezier(.16, 1, .3, 1); }
.ct-way b { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 680; line-height: 1.2; }
.ct-way > span:last-child { color: var(--ink-2); line-height: 1.5; }
.ct-way__ic { width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--blue-wash); color: var(--blue-d); margin-bottom: .5rem; }
.ct-way__ic .ic { width: 1.4rem; height: 1.4rem; }
.ct-way:hover { border-color: var(--rule-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.ct-way--main { background: var(--blue); border-color: var(--blue); color: #fff; }
.ct-way--main > span:last-child { color: #e3ebff; }
.ct-way--main .ct-way__ic { background: rgb(255 255 255 / .16); color: #fff; }
.ct-way--main:hover { border-color: var(--blue-d); background: var(--blue-d); }
.ct-office { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: stretch; }
.ct-office__photo { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; min-height: 24rem; box-shadow: var(--shadow); }
.ct-office__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.ct-office__photo figcaption { position: absolute; left: .75rem; bottom: .75rem; display: inline-flex; align-items: center; gap: .35rem; background: rgb(255 255 255 / .94); font-size: .85rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px; }
.ct-office__photo figcaption .ic { color: var(--blue); width: 1rem; height: 1rem; }
.ct-office__info { display: grid; gap: 1rem; align-content: start; padding: clamp(1rem, 2vw, 1.5rem); background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); }
.ct-office__info iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); background: var(--paper); filter: grayscale(.4); }
.ct-office__info .office__list li:last-child { border-bottom: 0; }
@media (max-width: 860px) {
  .ct-ways { grid-template-columns: 1fr; }
  .ct-office { grid-template-columns: 1fr; }
  .ct-office__photo { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ───────── /book/ ───────── */
.bk-top { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.25rem); }
.bk-top .display { margin-bottom: .9rem; }
.bk-top .lead { margin-bottom: .6rem; }
.bk-call { color: var(--ink-2); }
.bk-call a { font-weight: 650; color: var(--blue-d); white-space: nowrap; }
.bk-main { padding-block: clamp(1.75rem, 4vw, 3rem) clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--rule); }
.bk-tabs { display: inline-flex; flex-wrap: wrap; gap: .4rem; padding: .35rem; margin-bottom: 1.5rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; }
.bk-tabs [role="tab"] { display: inline-flex; align-items: baseline; gap: .5rem; min-height: 2.9rem; padding: .55rem 1.2rem; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; cursor: pointer; transition: background .25s, color .25s; }
.bk-tabs [role="tab"] b { font-weight: 650; }
.bk-tabs [role="tab"] span { font-size: .88rem; color: var(--ink-3); }
.bk-tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; }
.bk-tabs [role="tab"][aria-selected="true"] span { color: #c9d0dc; }
.bk-quick .form { max-width: 46rem; }

/* the guided brief: chat + live request sheet */
.gb { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.gb__chat { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; min-height: 34rem; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.gb__log { display: flex; flex-direction: column; gap: .85rem; padding: clamp(1rem, 2.5vw, 1.75rem); max-height: 34rem; overflow-y: auto; }
.gb-msg { display: flex; gap: .6rem; align-items: flex-end; max-width: 88%; animation: gb-in .55s cubic-bezier(.16, 1, .3, 1) both; }
.gb-msg__av { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.gb-msg__b { padding: .8rem 1rem; border-radius: 18px 18px 18px 6px; background: var(--sheet); border: 1px solid var(--rule); font-size: 1.05rem; line-height: 1.5; }
.gb-msg__b p + p, .gb-msg__b p + a, .gb-msg__b a + p { margin-top: .5rem; }
.gb-msg__hint { color: var(--ink-3); font-size: .95rem; }
.gb-msg--me { align-self: flex-end; }
.gb-msg--me .gb-msg__b { background: var(--blue); border-color: var(--blue); color: #fff; border-radius: 18px 18px 6px 18px; }
.gb-link { display: inline-flex; align-items: center; min-height: 2.6rem; padding: .45rem 1rem; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 620; text-decoration: none; }
.gb-link:hover { background: var(--blue-d); }
.gb-dots { display: inline-flex; gap: 4px; padding: .3rem 0; }
.gb-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: gb-dot 1s infinite ease-in-out; }
.gb-dots i:nth-child(2) { animation-delay: .15s; } .gb-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes gb-dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes gb-in { from { opacity: 0; transform: translateY(10px); } }

.gb__dock { padding: 1rem clamp(1rem, 2.5vw, 1.75rem); border-top: 1px solid var(--rule); background: var(--sheet); display: grid; gap: .85rem; }
.gb__dock:empty { display: none; }
.gb-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.gb-chip { min-height: 3rem; padding: .6rem 1.15rem; border-radius: 999px; border: 1.5px solid var(--rule-2); background: var(--sheet); color: var(--ink); font: inherit; font-weight: 560; font-size: 1rem; cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .2s cubic-bezier(.16, 1, .3, 1); }
.gb-chip:hover { border-color: var(--blue); }
.gb-chip:active { transform: translateY(1px); }
.gb-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gb-go { justify-self: start; }
.gb-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.gb-form { display: grid; gap: .85rem; }
.gb-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.gb-field { display: grid; gap: .35rem; }
.gb-field > span:not(.sr) { font-weight: 600; font-size: .95rem; }
.gb-field input, .gb-field textarea { width: 100%; min-height: 3.1rem; padding: .75rem .9rem; border: 1.5px solid var(--rule-2); border-radius: var(--r); background: #fff; font: inherit; font-size: 1rem; color: var(--ink); }
.gb-field textarea { resize: vertical; }
.gb-field input:focus, .gb-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(38 100 235 / .18); }
.gb-err, .gb-status.is-bad { color: var(--flag); font-weight: 550; }
.gb-status:empty { display: none; }
.gb-form .form__consent { margin: 0; }
.gb__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; padding: .75rem clamp(1rem, 2.5vw, 1.75rem); border-top: 1px solid var(--rule); font-size: .95rem; color: var(--ink-2); background: var(--sheet); }
.gb__foot a { font-weight: 650; color: var(--blue-d); white-space: nowrap; }
.gb__back { min-height: 2.5rem; padding: .35rem 1rem; border-radius: 999px; border: 1.5px solid var(--rule-2); background: transparent; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.gb__back:disabled { opacity: .4; cursor: default; }

/* the request sheet, like the report sheet */
.gb__sheet { position: sticky; top: 6rem; background: var(--sheet); border-radius: 0 0 var(--r) var(--r); border-top: 4px solid var(--blue); box-shadow: var(--shadow); }
.gb__sheet-toggle { display: none; }
.gb__sheet-body { padding: 1.15rem 1.25rem 1rem; }
.gb__sheet-top { display: flex; align-items: center; gap: .7rem; padding-bottom: .9rem; border-bottom: 1px solid var(--rule); }
.gb__sheet-top div { display: grid; flex: 1; }
.gb__sheet-top strong { font-weight: 680; }
.gb__sheet-top div span { font-size: .85rem; color: var(--ink-3); }
.gb__stamp { font-size: .7rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; padding: .25rem .5rem; border: 1.5px solid var(--rule-2); border-radius: 3px; color: var(--ink-3); white-space: nowrap; transition: background .4s, color .4s, border-color .4s; }
.gb__stamp.is-done { background: var(--blue); border-color: var(--blue); color: #fff; }
.gb__rows { margin: 0; }
.gb__row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .75rem; padding: .7rem .4rem; border-bottom: 1px dashed var(--rule); border-radius: 3px; transition: background 1.2s; }
.gb__row dt { font-size: .82rem; font-weight: 600; color: var(--ink-3); padding-top: .1rem; }
.gb__row dd { margin: 0; color: var(--ink-3); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gb__row.is-set dd { color: var(--ink); font-weight: 550; }
.gb__row.is-new { animation: gb-flash 1.6s cubic-bezier(.16, 1, .3, 1); }
@keyframes gb-flash { 0% { background: var(--blue-wash); } 100% { background: transparent; } }
.gb__sheet-fine { margin-top: .85rem; font-size: .82rem; color: var(--ink-3); }

@media (max-width: 900px) {
  .gb { grid-template-columns: 1fr; }
  .gb__sheet { order: -1; position: static; border-radius: var(--r); border-top-width: 3px; }
  .gb__sheet-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; min-height: 3rem; padding: .7rem 1rem; border: 0; background: transparent; font: inherit; font-weight: 620; color: var(--ink); cursor: pointer; }
  .gb__sheet-toggle b { font-weight: 600; color: var(--blue-d); font-variant-numeric: tabular-nums; }
  .gb__sheet-body { display: none; padding-top: 0; }
  .gb__sheet.is-open .gb__sheet-body { display: block; }
  .gb__chat { min-height: 0; }
  .gb__log { max-height: 60vh; }
  .gb-msg { max-width: 94%; }
}
@media (max-width: 560px) {
  .gb-2 { grid-template-columns: 1fr; }
  .gb-chip { flex: 1 1 auto; }
  .gb-go { justify-self: stretch; justify-content: center; }
  .bk-tabs { display: flex; border-radius: var(--r); }
  .bk-tabs [role="tab"] { flex: 1 1 100%; flex-direction: column; align-items: flex-start; gap: 0; border-radius: 4px; }
}
@media (max-width: 720px) { .bk-main { padding-bottom: 6.5rem; } }
@media (prefers-reduced-motion: reduce) {
  .gb-msg, .gb__row.is-new, .gb-dots i { animation: none; }
  .gb__log { scroll-behavior: auto; }
}
/* hidden must win over the panels' own display rules (tab switching) */
.gb[hidden], .bk-quick[hidden], [data-guided][hidden], #panel-quick[hidden], [data-bk-tabs][hidden] { display: none !important; }
