/* =====================================================================
   Hotel Rezerwacje — style wspólne + formularz dla gości
   Kolory hotelu: zmień --accent (i --accent-dark), żeby dopasować do strony.
   ===================================================================== */
:root {
  --accent: #2456a6;
  --accent-dark: #1b4282;
  --accent-soft: #eaf0fb;
  --bg: #f4f5f7;
  --card: #fff;
  --text: #161b26;
  --muted: #667085;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --ok: #12804a;
  --ok-soft: #e7f6ee;
  --warn: #b25e09;
  --warn-soft: #fff4e5;
  --err: #c4321f;
  --err-soft: #fdeeec;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px -8px rgba(16, 24, 40, .16), 0 4px 8px -4px rgba(16, 24, 40, .06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.5; }
body.embed { background: transparent; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 .3em; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: 1.1rem; margin: 0 0 .8em; letter-spacing: -.01em; font-weight: 650; }
h2 small { font-weight: 400; color: var(--muted); font-size: .85rem; }
h3 { margin: 0 0 .25em; font-size: 1.15rem; letter-spacing: -.01em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 20px 16px 40px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.lead { color: var(--muted); margin: 0 0 22px; font-size: 1.05rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }

/* ---------- Formularze ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 550; color: #344054; margin-bottom: 14px; }
input, select, textarea {
  font: inherit; font-size: .95rem; font-weight: 400; color: var(--text); padding: 10px 12px; min-height: 42px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 0; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #98a2b3; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
input:disabled { background: #f2f4f7; color: var(--muted); }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--text); font-weight: 400; font-size: .92rem; }
label.check input { width: 18px; height: 18px; min-height: 0; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 0 0 14px; padding: 12px 14px 2px; }
legend { color: #344054; font-size: .85rem; font-weight: 550; padding: 0 4px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: .92rem;
  text-decoration: none; cursor: pointer; text-align: center; white-space: nowrap; line-height: 1.2;
  padding: 10px 16px; min-height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: #fff; color: #344054;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05); transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: #f9fafb; border-color: #98a2b3; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.danger { color: var(--err); border-color: #f4c2bb; }
.btn.danger:hover { background: var(--err-soft); }
.btn.big { padding: 13px 24px; font-size: 1rem; min-height: 50px; }
.btn.small { padding: 5px 11px; font-size: .82rem; min-height: 32px; }
.btn .ic { flex: none; }

/* ---------- Komunikaty ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff); font-size: .95rem; }
.alert.err { background: var(--err-soft); border-color: #f6c9c2; color: #8f2617; }
.alert.ok { background: var(--ok-soft); border-color: #b9e4cb; color: #0d5c35; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 14px; }

/* =====================================================================
   Formularz dla gości
   ===================================================================== */
body:not(.admin) { background: radial-gradient(1200px 400px at 50% -120px, color-mix(in srgb, var(--accent) 12%, var(--bg)), var(--bg)); background-attachment: fixed; }
body.embed:not(.admin) { background: transparent; }
.pub-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 26px; }
.pub-head .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.pub-head .brand .logo { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.embed .pub-head { margin-bottom: 14px; }
.langs { display: inline-flex; gap: 2px; margin-left: auto; padding: 3px; background: #fff; border: 1px solid var(--line); border-radius: 99px; box-shadow: var(--shadow); }
.embed .langs { margin-right: 44px; }
.langs a { text-decoration: none; font-size: .78rem; font-weight: 650; padding: 4px 10px; border-radius: 99px; color: var(--muted); }
.langs a:hover { color: var(--text); }
.langs a.on { background: var(--accent); color: #fff; }

.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 22px; counter-reset: s; flex-wrap: wrap; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; background: #fff; border: 1px solid var(--line-strong); }
.steps li + li::after { order: -1; content: ""; width: 24px; height: 1px; background: var(--line-strong); margin-right: 2px; }
.steps li.on { color: var(--text); }
.steps li.on::before { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps li.done::before { content: "✓"; background: var(--accent-soft); border-color: transparent; color: var(--accent); }

.hero h1 { font-size: 2.1rem; }
.search { display: grid; grid-template-columns: 1.2fr 1.2fr .7fr .7fr .7fr auto; gap: 14px; align-items: end; padding: 18px; box-shadow: var(--shadow-lg); border-color: transparent; }
.search label { margin: 0; min-width: 0; }
.search input { min-width: 0; }
.search .btn { min-height: 46px; }
.search input, .search select { min-height: 46px; }

.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 30px 0 14px; }
.results-head h2 { margin: 0; font-size: 1.3rem; }
.results-head .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-info { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: .85rem; color: #344054; }

.offers { display: flex; flex-direction: column; gap: 14px; }
.offer { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: stretch; margin: 0; padding: 18px; transition: box-shadow .2s, border-color .2s; }
.offer:hover { box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.offer-visual { border-radius: 12px; background: linear-gradient(145deg, var(--accent-soft), color-mix(in srgb, var(--accent) 22%, #fff)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--accent); min-height: 96px; }
.offer-visual .ppl { display: flex; gap: 1px; }
.offer-visual small { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.offer-main { min-width: 0; }
.offer-main p { margin: .5em 0 0; color: #475467; font-size: .95rem; }
.offer-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.offer-meta .tag { font-size: .78rem; font-weight: 600; color: #475467; background: #f2f4f7; padding: 3px 9px; border-radius: 99px; }
.offer-price { text-align: right; min-width: 200px; display: flex; flex-direction: column; gap: 2px; align-items: flex-end; justify-content: center; padding-left: 20px; border-left: 1px dashed var(--line); }
.offer-price .btn { margin-top: 10px; }
.price { font-size: 1.55rem; font-weight: 750; color: var(--text); letter-spacing: -.02em; line-height: 1.2; }
.empty-state { text-align: center; padding: 36px 20px; }
.empty-state .ic-big { font-size: 2.2rem; }

.book-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.book-grid .summary { position: sticky; top: 16px; }
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.summary dl, .thanks dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 14px 0; }
.summary dt, .thanks dt { color: var(--muted); font-size: .9rem; }
.summary dd, .thanks dd { margin: 0; text-align: right; font-weight: 550; }
.summary dl { column-gap: 0; }
.summary dd { padding-left: 16px; }
.summary .total-row { border-top: 1px solid var(--line); padding-top: 12px; }
.summary h3 { font-size: 1.05rem; }
fieldset.pay label.check { margin-bottom: 10px; }

.thanks { max-width: 560px; margin: 10px auto; text-align: center; padding: 32px 26px; }
.thanks dl { text-align: left; max-width: 400px; margin: 22px auto; padding: 16px 18px; background: #f9fafb; border-radius: 12px; }
.ok-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 32px; line-height: 64px; margin: 0 auto 14px; font-weight: 700; box-shadow: 0 0 0 8px color-mix(in srgb, var(--ok-soft) 50%, transparent); }
.code-big { font-size: 1.15rem; background: var(--accent-soft); color: var(--accent-dark); padding: 2px 10px; border-radius: 8px; }

@media (max-width: 860px) {
  .search { grid-template-columns: 1fr 1fr; }
  .search .btn { grid-column: 1 / -1; }
  .offer { grid-template-columns: 64px 1fr; }
  .offer-visual { min-height: 64px; }
  .offer-visual small { display: none; }
  .offer-price { grid-column: 1 / -1; text-align: left; align-items: stretch; border-left: 0; border-top: 1px dashed var(--line); padding: 14px 0 0; min-width: 0; }
  .book-grid, .row2, .row3, .row4 { grid-template-columns: 1fr; }
  .book-grid .summary { position: static; order: -1; }
  .hero h1 { font-size: 1.6rem; }
}
