/* Generator zapytań — paleta z logo: niebieski (glob) + złota fala + zieleń dla akcji */
:root {
  --bg: #f5f8fb;
  --card: #eaf1f7;
  --accent: #2e6da4;        /* niebieski z logo, przyciemniony dla kontrastu */
  --accent-hover: #255a89;
  --on-accent: #eef6fd;
  --heading: #16283a;
  --text: #2c3e50;
  --muted: #7d90a5;
  --border: #a9c0d4;
  --tag-bg: #e2edf6;
  --tag-text: #2b5d8a;
  --tag-border: #9dbcd8;
  --action: #2f8a4c;        /* zieleń: przyciski funkcyjne (dodaj/wyślij) */
  --action-hover: #256e3c;
  --on-action: #eefbf2;
  --gold: #f09010;          /* fala z logo — drobne akcenty */
  --error: #b02a2a;
  --ok: #2f8a4c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 16px 96px; }

/* ---------- nagłówek ---------- */
.site-header {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 3px solid var(--gold); margin-bottom: 20px;
}
.site-header img { height: 44px; width: auto; }
.site-header .brand { font-size: 15px; color: var(--muted); }

/* ---------- pasek postępu ---------- */
.progress { display: flex; gap: 6px; margin: 4px 0 24px; }
.progress span {
  flex: 1; height: 5px; border-radius: 3px; background: var(--tag-bg);
  transition: background .25s;
}
.progress span.done { background: var(--accent); }
.progress-label { font-size: 13px; color: var(--muted); margin-bottom: 18px; }

/* ---------- widoki ---------- */
section[data-view] { display: none; }
section[data-view].active { display: block; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

h1 { font-size: 30px; color: var(--heading); margin-bottom: 10px; line-height: 1.2; }
h2 { font-size: 23px; color: var(--heading); margin-bottom: 8px; line-height: 1.25; }
.lead { font-size: 17px; color: var(--text); margin-bottom: 22px; max-width: 640px; }
.hint { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

/* ---------- landing ---------- */
.landing { text-align: center; padding: 36px 0 12px; }
.landing h1 { font-size: 34px; }
.landing .lead { margin: 14px auto 30px; }
.steps-how { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0 auto 34px; max-width: 760px; text-align: left; }
.steps-how .how {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px;
}
.steps-how .how b { display: block; color: var(--heading); margin-bottom: 4px; font-size: 16px; }
.steps-how .how .num {
  display: inline-flex; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); align-items: center; justify-content: center;
  font-size: 15px; margin-bottom: 8px;
}

/* ---------- galeria na landing (bez cen) ---------- */
.landing-gallery { margin: 8px auto 30px; max-width: 980px; }
.landing-gallery h2 { font-size: 20px; margin-bottom: 14px; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.gallery-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; cursor: pointer; padding: 0; font-family: inherit; text-align: center;
  transition: border-color .15s, transform .1s;
}
.gallery-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.gallery-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: top center; display: block; background: #dde7f0; }
.gallery-item span { display: block; font-size: 12.5px; color: var(--heading); padding: 7px 6px; line-height: 1.2; }
@media (min-width: 560px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .gallery-grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------- przyciski ---------- */
.btn {
  font-family: inherit; font-size: 17px; cursor: pointer; border-radius: 8px;
  padding: 14px 28px; min-height: 56px; border: 1px solid transparent;
  transition: background .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: .55; cursor: wait; }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--tag-bg); }
.btn-action { background: var(--action); color: var(--on-action); }
.btn-action:hover { background: var(--action-hover); }
.btn-action:disabled { opacity: .55; cursor: wait; }
.btn-link { background: none; border: none; color: var(--accent); text-decoration: underline; cursor: pointer; font-family: inherit; font-size: 15px; padding: 6px; }
.nav-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.nav-row .spacer { flex: 1; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- formularz ---------- */
.form-grid { display: grid; gap: 18px; max-width: 520px; }
.field label { display: block; font-size: 15px; color: var(--heading); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 17px; color: var(--text);
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 13px 14px;
  min-height: 52px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px rgba(46,109,164,.18); }
.field .err { display: none; font-size: 13.5px; color: var(--error); margin-top: 5px; }
.field.invalid input { border-color: var(--error); }
.field.invalid .err { display: block; }

/* honeypot — poza ekranem */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }

/* ---------- kafle wyboru ---------- */
.tile-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 6px 0 10px; }
.tile {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--card); border: 2px solid var(--border); border-radius: 12px;
  padding: 16px 18px; min-height: 64px; cursor: pointer; font-family: inherit; font-size: 17px;
  color: var(--heading); transition: border-color .15s, background .15s;
}
.tile:hover { border-color: var(--accent); }
.tile.selected { border-color: var(--accent); background: var(--tag-bg); }
.tile.selected .tile-check { visibility: visible; }
.tile .icon { width: 34px; height: 34px; flex: none; color: var(--accent); }
.tile .tile-body { flex: 1; }
.tile .tile-sub { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.tile .tile-check {
  visibility: hidden; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.tile-grid.big .tile { min-height: 96px; }

/* chips (filtry w katalogu) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.chip {
  font-family: inherit; font-size: 14.5px; cursor: pointer;
  background: var(--card); color: var(--heading); border: 1.5px solid var(--border);
  border-radius: 999px; padding: 9px 15px; min-height: 40px;
}
.chip:hover { border-color: var(--accent); }
.chip.selected { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.filter-group { margin-bottom: 8px; }
.filter-group > b { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; font-weight: normal; }

/* ---------- katalog ---------- */
.catalog-top { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.search-row { position: relative; max-width: 520px; margin-bottom: 12px; }
.search-row input {
  width: 100%; font-family: inherit; font-size: 16px; padding: 13px 14px 13px 42px;
  border: 1px solid var(--border); border-radius: 999px; background: #fff; min-height: 52px;
}
.search-row svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }

.filters-toggle { display: none; }

.disclaimer {
  background: var(--tag-bg); border-left: 4px solid var(--accent); border-radius: 6px;
  padding: 12px 14px; font-size: 14px; color: var(--tag-text); margin: 12px 0 18px;
}

.artist-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.artist-card {
  background: var(--card); border: 2px solid var(--border); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.artist-card:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(46,109,164,.14); }
.artist-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.artist-card .photo { width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: top center; background: #dde7f0; display: block; }
.artist-card .body { padding: 10px 10px 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.artist-card h3 { font-size: 15px; color: var(--heading); line-height: 1.25; }

.genre-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.genre-tag {
  font-size: 12.5px; background: var(--tag-bg); color: var(--tag-text);
  border: 1px solid var(--tag-border); border-radius: 999px; padding: 3px 10px;
}

.price-badge {
  display: inline-block; align-self: flex-start;
  background: var(--accent); color: var(--on-accent);
  border-radius: 6px; padding: 6px 12px; font-size: 14.5px;
}
.price-badge small { display: block; font-size: 11px; opacity: .85; }
/* kompaktowy badge na kafelku katalogu */
.artist-card .price-badge { padding: 4px 8px; font-size: 12px; border-radius: 5px; }
.artist-card .price-badge small { font-size: 9.5px; }

.card-actions { display: flex; gap: 8px; align-items: center; margin-top: auto; }
.pick-btn {
  flex: 1; font-family: inherit; font-size: 13px; cursor: pointer; border-radius: 7px;
  min-height: 38px; border: 1.5px solid var(--action); background: transparent; color: var(--action);
}
.pick-btn:hover { background: #e4f4ea; }
.pick-btn.picked { background: var(--action); color: var(--on-action); }

.no-results {
  background: var(--card); border: 1px dashed var(--border); border-radius: 12px;
  padding: 26px 20px; text-align: center; margin-top: 10px;
}
.no-results b { display: block; color: var(--heading); font-size: 17px; margin-bottom: 6px; }
.no-results p { font-size: 14.5px; color: var(--text); max-width: 520px; margin: 0 auto 14px; }

/* pasek dolny (sticky) */
.selection-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--heading); color: #f6eaea;
  display: none; align-items: center; gap: 14px; padding: 12px 16px;
}
.selection-bar.visible { display: flex; }
.selection-bar .count { flex: 1; font-size: 15px; }
.selection-bar .btn { min-height: 48px; padding: 10px 22px; }
.selection-bar .btn-primary { background: var(--action); }
.selection-bar .btn-primary:hover { background: var(--action-hover); }

/* ---------- modal artysty ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(24,8,8,.55); z-index: 50;
  display: none; align-items: flex-end; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg); width: 100%; max-width: 720px; max-height: 92vh; overflow-y: auto;
  border-radius: 16px 16px 0 0; position: relative;
}
.modal .photo { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top center; display: block; background: #e7dede; }
.modal .modal-body { padding: 20px 22px 28px; }
.modal h2 { margin-bottom: 6px; }
.modal .desc { font-size: 15.5px; margin: 14px 0; }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(24,8,8,.65); color: #fff; border: none; font-size: 20px; cursor: pointer;
}
.yt-links { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.yt-links a {
  display: inline-flex; align-items: center; gap: 8px; color: var(--accent);
  font-size: 15px; text-decoration: none; border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px; background: var(--card);
}
.yt-links a:hover { border-color: var(--accent); }
.yt-links svg { width: 22px; height: 22px; color: #c0392b; flex: none; }
.more-link { display: inline-block; margin: 6px 0 14px; color: var(--accent); font-size: 15px; }

/* ---------- podsumowanie ---------- */
.summary-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 20px; }
.summary-item {
  display: flex; align-items: center; gap: 10px; background: var(--card);
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; font-size: 15px;
}
.summary-item .nm { flex: 1; color: var(--heading); }
.summary-item .pr { color: var(--muted); font-size: 13.5px; }
.summary-item .custom-badge {
  font-size: 12px; background: var(--tag-bg); color: var(--tag-text);
  border: 1px solid var(--tag-border); border-radius: 999px; padding: 2px 8px;
}
.summary-item button { background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; padding: 4px 8px; }
.summary-item button:hover { color: var(--error); }
.summary-meta { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.summary-meta b { color: var(--heading); font-weight: normal; }

.form-error {
  display: none; background: #fdecec; border: 1px solid var(--error); color: var(--error);
  border-radius: 8px; padding: 12px 14px; font-size: 14.5px; margin: 14px 0;
}
.form-error.visible { display: block; }

/* ---------- potwierdzenie ---------- */
.confirm-box { text-align: center; padding: 40px 0; max-width: 620px; margin: 0 auto; }
.confirm-box .check {
  width: 74px; height: 74px; border-radius: 50%; background: var(--action); color: var(--on-action);
  display: flex; align-items: center; justify-content: center; font-size: 36px; margin: 0 auto 22px;
}
.confirm-box p { margin-bottom: 12px; font-size: 16px; }

/* ---------- responsywność ---------- */
@media (min-width: 560px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .artist-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-how { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .artist-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1100px) {
  .artist-grid { grid-template-columns: repeat(6, 1fr); }
  .tile-grid.big { grid-template-columns: repeat(2, 1fr); }
  .modal-overlay { align-items: center; }
  .modal { border-radius: 16px; }
  h1 { font-size: 36px; }
}

/* ---------- wyszukiwarka: autopodpowiedzi (od 3 liter) ---------- */
.search-row { position: relative; }
.search-suggest {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 26px rgba(22, 40, 58, .18); overflow: hidden; z-index: 30;
}
.search-suggest button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--text); text-align: left;
}
.search-suggest button + button { border-top: 1px solid var(--tag-bg); }
.search-suggest button:hover, .search-suggest button:focus-visible { background: var(--tag-bg); }
.search-suggest img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }

/* ---------- osadzone YouTube w modalu ---------- */
.yt-embed {
  aspect-ratio: 16 / 9; width: 100%;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); background: #000;
  margin-top: 10px;
}
.yt-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-fallback {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px;
  color: var(--accent); text-decoration: none; background: var(--card);
}
.yt-fallback svg { width: 26px; height: 26px; color: #c33; flex: none; }

/* ---------- ostrzeżenie: zajęty termin ---------- */
.busy-warning {
  margin: 10px 0; padding: 12px 16px;
  background: #fdf3e7; border: 1px solid #e0b070; border-left: 4px solid var(--gold);
  border-radius: 10px; color: #6b4a12;
}
.busy-warning p { margin: 6px 0 10px; }

/* ---------- modal: akcja nad opisem (widoczna bez scrollowania) ---------- */
.modal-top-action {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 4px 0 10px;
}
.modal-top-action .btn { margin: 0; }
