/* Quarto Livre — base comum ao site e ao painel. As cores da marca vêm do cadastro do hotel (js/config.js). */
:root {
  --pri: #0f1838; --pri-2: #1d2a5c; --acc: #d4a62a; --acc-2: #f3d98a; --bg: #f8f5ee; --ink: #1a1d2b;
  --f-titulo: Georgia, serif; --f-texto: system-ui, sans-serif;
  --muted: color-mix(in srgb, var(--ink) 62%, white);
  --line: color-mix(in srgb, var(--ink) 13%, transparent);
  --r: 14px;
  --sombra: 0 1px 2px rgb(0 0 0 / .05), 0 10px 28px -14px rgb(0 0 0 / .22);
  --ok: #17824d; --warn: #b86e00; --bad: #c22f2f; --info: #2459c4; --clean: #7046c9; --off: #687083; --ocup: #3949ab;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--f-texto); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-titulo); line-height: 1.12; margin: 0; font-weight: 700; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; display: inline-block; vertical-align: middle; }
.i-cheio { stroke: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .04em; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 1px solid transparent; border-radius: 999px; padding: .75em 1.35em; font-weight: 700; font-size: .95rem; text-decoration: none; line-height: 1.1; transition: background .15s, box-shadow .15s, transform .1s; white-space: nowrap; background: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.btn-acc { background: var(--acc); color: var(--pri); }
.btn-acc:hover { background: color-mix(in srgb, var(--acc) 82%, white); }
.btn-pri { background: var(--pri); color: #fff; }
.btn-pri:hover { background: var(--pri-2); }
.btn-ghost { border-color: var(--line); background: #fff; }
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 5%, white); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-bad { background: var(--bad); color: #fff; }
.btn-whats { background: #1faa55; color: #fff; }
.btn-whats:hover { background: #17914a; }
.btn-sm { padding: .55em .95em; font-size: .85rem; }
.btn-bloco { width: 100%; }
.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; font-weight: 700; }

/* Campos */
.campo { display: grid; gap: .3rem; align-content: start; }
.campo > span, .rotulo { font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.campo input, .campo select, .campo textarea, .saida-fixa {
  width: 100%; padding: .65em .85em; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font: inherit; color: var(--ink); min-height: 46px;
}
.saida-fixa { display: flex; align-items: center; background: color-mix(in srgb, var(--ink) 4%, white); color: var(--muted); }
.campo textarea { min-height: 84px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 2px solid color-mix(in srgb, var(--acc) 60%, transparent); outline-offset: 0; border-color: var(--acc); }
.campo input[type="color"] { padding: 4px; height: 46px; cursor: pointer; }

.pilulas { display: flex; flex-wrap: wrap; gap: .4rem; }
.pilulas label { position: relative; }
.pilulas input { position: absolute; opacity: 0; pointer-events: none; }
.pilulas span { display: inline-flex; align-items: center; gap: .45em; padding: .55em 1em; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: .9rem; cursor: pointer; user-select: none; }
.pilulas input:checked + span { background: var(--pri); color: #fff; border-color: var(--pri); }
.pilulas input:checked + span .i { color: var(--acc); }
.pilulas input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }

.erro-msg { color: var(--bad); font-weight: 700; font-size: .9rem; }
.grade-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 560px) { .grade-2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: .12rem 0 0; accent-color: var(--pri); flex: none; }

/* Ficha do hóspede (FNRH) */
.ficha-grupo { border: 0; padding: 0; margin: 0; display: grid; gap: .8rem; min-width: 0; }
.ficha-grupo legend { font-weight: 700; font-size: .95rem; padding: 0; margin-bottom: .7rem; }
.aviso-eca { font-size: .85rem; padding: .7rem .85rem; background: color-mix(in srgb, var(--warn) 10%, white); border-left: 3px solid var(--warn); }

/* Logo */
.logo { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; }
.logo-mono { display: inline-grid; place-items: center; background: var(--pri); color: var(--acc); font-family: var(--f-titulo); font-weight: 700; font-size: 1.15rem; border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent); }

.fora-do-ar { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: .9rem; padding: 2rem; }
.fora-do-ar h1 { font-size: 2.2rem; }
.fora-do-ar p { color: var(--muted); max-width: 30rem; }

/* Avisos rápidos */
.toasts { position: fixed; z-index: 95; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: .5rem; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: .8rem 1rem; border-radius: 12px; box-shadow: var(--sombra); display: flex; gap: .6rem; align-items: center; animation: entra .25s ease-out; font-size: .92rem; font-weight: 600; }
.toast.erro { background: var(--bad); }
.toast.ok { background: var(--ok); }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
