/* Psikancl.cz — základní styly (později učešeme design) */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #222;
    background: #f5f6f8;
    line-height: 1.6;
}

.site-header {
    background: #1f3864;
    padding: 14px 20px;
}
.site-header .logo {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
}

.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

h1 { margin-bottom: 16px; color: #1f3864; }
h2 { margin: 24px 0 10px; color: #2e5d9e; }

a { color: #2e5d9e; }

.org-list, .akce-list {
    list-style: none;
}
.org-list li, .akce-list li {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 8px;
}

.badge {
    display: inline-block;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}
.badge-open    { background: #d9f2d9; color: #1a6e1a; }
.badge-closed  { background: #f2e3d9; color: #8a4b00; }
.badge-results { background: #d9e6f2; color: #1f3864; }

.notice {
    background: #fff;
    border: 1px solid #ddd;
    border-left: 4px solid #2e5d9e;
    border-radius: 4px;
    padding: 14px 18px;
    margin: 16px 0;
}

.breadcrumb { font-size: 0.9rem; margin-bottom: 6px; }

.site-footer {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    padding: 30px 0;
}

/* ── Admin ─────────────────────────────────────────── */
.admin-bar {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 14px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.form { max-width: 560px; }
.form label { display: block; margin-bottom: 12px; font-weight: 600; font-size: 0.9rem; }
.form input[type=text], .form input[type=email], .form input[type=password],
.form input[type=tel], .form input[type=number], .form input[type=date],
.form input[type=datetime-local],
.form select, .form textarea {
    display: block;
    width: 100%;
    padding: 8px 10px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font: inherit;
    font-weight: 400;
}
.form label.chk { font-weight: 400; }
.form label.chk input { margin-right: 6px; }
.form button, .btn {
    display: inline-block;
    background: #2e5d9e;
    color: #fff;
    border: 0;
    border-radius: 5px;
    padding: 10px 18px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.form button:hover, .btn:hover { background: #1f3864; }
.form fieldset { border: 1px solid #ddd; border-radius: 6px; padding: 12px 14px; margin-bottom: 14px; }
.form legend { font-weight: 700; padding: 0 6px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.tbl {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-bottom: 20px;
}
.tbl th, .tbl td { border: 1px solid #ddd; padding: 8px 10px; text-align: left; font-size: 0.9rem; }
.tbl th { background: #2e5d9e; color: #fff; }
.tbl tr:nth-child(even) td { background: #eef2f8; }
.tbl select, .tbl input { font: inherit; padding: 4px 6px; }
.input-s { width: 70px; }

.flash { border-radius: 5px; padding: 10px 14px; margin-bottom: 14px; }
.flash-ok  { background: #d9f2d9; color: #1a6e1a; }
.flash-err { background: #f6dcdc; color: #a02020; }

.btn-link { background: none; border: 0; color: #2e5d9e; cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.btn-link.danger { color: #a02020; }
.muted { color: #888; }
.mono { font-family: monospace; font-size: 0.85rem; }

/* ── Wizard formulář ───────────────────────────────── */
.wizard { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 20px; }
.wizard-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.wstep {
    background: #eef2f8; color: #666;
    padding: 6px 12px; border-radius: 16px;
    font-size: 0.85rem; cursor: default;
}
.wstep.active { background: #2e5d9e; color: #fff; font-weight: 600; }

.wpanel h2 { margin-top: 0; }
.wpanel label { display: block; margin-bottom: 12px; font-weight: 600; font-size: 0.9rem; }
.wpanel input, .wpanel select, .wpanel textarea {
    display: block; width: 100%; padding: 8px 10px; margin-top: 4px;
    border: 1px solid #ccc; border-radius: 4px; font: inherit; font-weight: 400;
}
.wpanel input[type=file] { padding: 6px; }

.wizard-nav { display: flex; justify-content: space-between; margin-top: 20px; gap: 10px; }
.wizard-nav .btn { min-width: 130px; }
.btn-sec { background: #888; }
.btn-sec:hover { background: #666; }

.pes-karta {
    border: 1px solid #ddd; border-left: 4px solid #2e5d9e;
    border-radius: 6px; padding: 14px 16px; margin-bottom: 16px;
    background: #fafbfd;
}
.pes-hlava { display: flex; justify-content: space-between; align-items: center; }
.pes-hlava h3 { margin: 0 0 8px; color: #2e5d9e; }

.cenik-box, .cena-souhrn {
    background: #eef2f8; border-radius: 6px;
    padding: 10px 14px; margin: 14px 0; font-size: 0.95rem;
}
.cena-souhrn strong { color: #1f3864; font-size: 1.1rem; }

.platba-box { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.tbl-plain th, .tbl-plain td { border: 1px solid #ddd; }
.qr-box { text-align: center; }
.qr-box img { border: 1px solid #ddd; border-radius: 6px; }

@media (max-width: 600px) {
    .grid2 { grid-template-columns: 1fr; }
    .platba-box { flex-direction: column; }
}

/* hidden atribut musí vždy vyhrát nad display pravidly tříd */
[hidden] { display: none !important; }

/* pravé zarovnání tlačítek Pokračovat / Odeslat v navigaci wizardu */
#w-dal, #odeslat { margin-left: auto; }

/* ── Úvod a stránka pro organizace ─────────────────── */
.uvod-text { font-size: 1.05rem; max-width: 700px; margin-bottom: 24px; }
.uvod-cta {
    margin-top: 28px; padding: 14px 18px;
    background: #eef2f8; border-radius: 6px;
}
.vyhody, .postup { max-width: 700px; margin: 0 0 20px 20px; }
.vyhody li, .postup li { margin-bottom: 10px; }

/* odsazení odkazu Zpět + honeypot */
.zpet-odkaz { margin-top: 36px; }
.hp { position: absolute; left: -9999px; }

/* odsazení kontaktního formuláře od textu nad ním */
#kontakt ~ .form, #kontakt ~ form.form { margin-top: 24px; }

/* ── Logo v hlavičce ───────────────────────────────── */
.site-header { display: flex; align-items: center; padding: 10px 20px; }
.logo-link { display: inline-flex; line-height: 0; }
.logo-img { height: 44px; width: auto; }
@media (max-width: 600px) { .logo-img { height: 36px; } }

/* ── Zavírací křížek u hlášení ─────────────────────── */
.flash { position: relative; padding-right: 42px; }
.flash-x {
    position: absolute; top: 6px; right: 10px;
    background: none; border: 0; cursor: pointer;
    font-size: 1.3rem; line-height: 1; padding: 0 2px;
    color: inherit; opacity: .55;
}
.flash-x:hover { opacity: 1; }

/* ── Ceník v tabulce ───────────────────────────────── */
.cenik-tbl { border-collapse: collapse; margin-top: 8px; background: #fff; }
.cenik-tbl th, .cenik-tbl td {
    border: 1px solid #d5dde8; padding: 6px 14px;
    font-size: 0.9rem; text-align: left; font-weight: 400;
}
.cenik-tbl th { background: #dde5f0; font-weight: 600; }
.cenik-tbl td:first-child { font-weight: 600; }

/* ── Sjednocení vzhledu rozbalovacích polí ─────────── */
.form select, .wpanel select, .tbl select {
    background-color: #fff;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232e5d9e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}
.form select:focus, .wpanel select:focus { outline: 2px solid #2e5d9e; outline-offset: -1px; }
.wpanel select option, .form select option { background: #fff; color: #222; }
