/* =====================================================================
   FreshRent – rezervácia, stav rezervácie, cenník (agent C)
   Nadväzuje na premenné a komponenty zo style.css (.card, .btn, .field, .badge).
   ===================================================================== */

.bk-sec { padding: 2.6rem 0 4.5rem; background: var(--bg); }
.req { color: var(--red); }
.muted { color: var(--muted); font-weight: 400; }

.bk-alert { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.4rem; padding: .95rem 1.2rem; border-radius: 6px; background: var(--red-soft); color: var(--red-dark); font-weight: 500; }
.bk-alert .ico { color: var(--red); }

/* ---------- Layout ---------- */
.bk { display: grid; grid-template-columns: minmax(0, 1fr) 23rem; gap: 1.6rem; align-items: start; }
.bk__main { display: grid; gap: 1.25rem; min-width: 0; }
.bk__side { position: sticky; top: calc(var(--hh, 5rem) + 1rem); display: grid; gap: 1rem; }

/* ---------- Kroky ---------- */
.bk-step { margin: 0; padding: 1.7rem 1.8rem 1.8rem; border: 1px solid #EDEDEF; min-width: 0; }
.bk-step__head { display: flex; align-items: center; gap: .85rem; padding: 0; margin-bottom: 1.3rem; float: left; width: 100%; }
.bk-step__head + * { clear: both; }
.bk-step__num { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .95rem; flex: none; box-shadow: 0 4px 12px rgba(227,26,37,.25); }
.bk-step__title { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--text); }
.bk-step__title small { font-family: var(--font); font-weight: 400; font-size: .85rem; color: var(--muted); }
.bk-step__lead { color: var(--muted); font-size: .92rem; margin: -.5rem 0 1.2rem; clear: both; }
.bk-hint { display: flex; gap: .55rem; align-items: flex-start; margin-top: 1rem; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.bk-hint .ico { width: 1.2rem; height: 1.2rem; color: var(--red); margin-top: .05rem; }
.bk-err { margin-top: .4rem; color: var(--red); font-size: .82rem; font-weight: 500; }
.bk-err:empty, .bk-err[hidden] { display: none; }

/* ---------- 1. Termín ---------- */
.bk-term { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.8rem; clear: both; }
.bk-cal { border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1rem .8rem; background: #fff; }
.bk:not(.has-cal) .bk-cal { display: none; }
.bk-term__side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.bk-plans { display: grid; gap: .55rem; }
.bk-plan { position: relative; cursor: pointer; }
.bk-plan input, .bk-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-plan__box { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem .85rem 2.6rem; border: 1px solid #E3E4E6; border-radius: 6px; background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; position: relative; }
.bk-plan__box::before { content: ""; position: absolute; left: 1rem; top: 50%; width: 1rem; height: 1rem; margin-top: -.5rem; border-radius: 50%; border: 1.5px solid #B9BCC0; background: #fff; transition: border .15s; }
.bk-plan__label { font-weight: 500; font-size: .92rem; }
.bk-plan__label small { color: var(--muted); font-size: .82rem; }
.bk-plan__price { margin-left: auto; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.bk-plan .badge { font-size: .62rem; }
.bk-plan:hover .bk-plan__box { border-color: #C9CBCE; }
.bk-plan input:checked + .bk-plan__box { border-color: var(--red); background: #FFFAFA; box-shadow: 0 0 0 3px rgba(227,26,37,.08); }
.bk-plan input:checked + .bk-plan__box::before { border: 5px solid var(--red); }
.bk-plan input:focus-visible + .bk-plan__box { outline: 2px solid var(--red); outline-offset: 2px; }

.bk-dates { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.bk-dates__item { padding: .8rem .95rem; border-radius: 6px; background: var(--bg); display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.bk-dates__lbl { display: flex; align-items: center; gap: .4rem; font-size: .76rem; color: var(--muted); }
.bk-dates__lbl .ico { width: 1rem; height: 1rem; }
.bk-dates__item strong { font-size: .92rem; font-weight: 600; }

/* ---------- 2. Doplnky ---------- */
.bk-extras { display: grid; gap: .75rem; clear: both; }
.bk-extra { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .85rem 1rem .85rem .85rem; border: 1px solid #E3E4E6; border-radius: 8px; transition: border-color .15s, background .15s; }
.bk-extra.is-on { border-color: var(--red); background: #FFFAFA; }
.bk-extra__img { width: 4.2rem; height: 4.2rem; border-radius: 6px; overflow: hidden; background: var(--bg); }
.bk-extra__img img { width: 100%; height: 100%; object-fit: cover; }
.bk-extra__ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--red); }
.bk-extra__ph .ico { width: 1.8rem; height: 1.8rem; }
.bk-extra__body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.bk-extra__name { font-size: .95rem; font-weight: 600; }
.bk-extra__desc { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.bk-extra__price { font-family: var(--font-head); font-weight: 700; font-size: .95rem; }
.bk-extra__price small { font-family: var(--font); font-weight: 400; color: var(--muted); font-size: .78rem; }
.bk-qty { display: inline-flex; align-items: center; border: 1px solid #E3E4E6; border-radius: 6px; background: #fff; height: 2.6rem; }
.bk-qty__btn { width: 2.4rem; height: 100%; font-size: 1.2rem; color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
.bk-qty__btn:hover { color: var(--red); }
.bk-qty__in { width: 2.4rem; height: 100%; border: 0; border-inline: 1px solid #EDEDEF; text-align: center; font-weight: 600; font-size: .95rem; -moz-appearance: textfield; appearance: textfield; outline: 0; }
.bk-qty__in::-webkit-outer-spin-button, .bk-qty__in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- 3./5. Rádiové karty ---------- */
.bk-opts { display: grid; gap: .75rem; clear: both; }
.bk-opts--2 { grid-template-columns: 1fr 1fr; }
.bk-opts--3 { grid-template-columns: repeat(3, 1fr); }
.bk-opt { position: relative; cursor: pointer; display: flex; }
.bk-opt__box { display: flex; gap: .85rem; align-items: flex-start; width: 100%; padding: 1.05rem 1.1rem; border: 1px solid #E3E4E6; border-radius: 8px; background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
.bk-opt__box strong { display: block; font-size: .93rem; font-weight: 600; margin-bottom: .2rem; }
.bk-opt__box small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.bk-opt__ico { width: 1.6rem; height: 1.6rem; color: #6B7075; flex: none; margin-top: .05rem; transition: color .15s; }
.bk-opt:hover .bk-opt__box { border-color: #C9CBCE; }
.bk-opt input:checked + .bk-opt__box { border-color: var(--red); background: #FFFAFA; box-shadow: 0 0 0 3px rgba(227,26,37,.08); }
.bk-opt input:checked + .bk-opt__box .bk-opt__ico { color: var(--red); }
.bk-opt input:focus-visible + .bk-opt__box { outline: 2px solid var(--red); outline-offset: 2px; }
.bk-opts.has-error .bk-opt__box { border-color: var(--red); }
.bk-address { margin-top: 1rem; }

/* ---------- 4. Kontakt ---------- */
.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; clear: both; }
.bk-grid__full { grid-column: 1 / -1; }
.field.has-error .bk-err { display: block; }
.bk-consents { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.check.has-error span { color: var(--red-dark); }

/* ---------- Súhrn ---------- */
.bk-sum { padding: 1.6rem 1.5rem 1.4rem; }
.bk-sum__title { font-size: 1.3rem; margin-bottom: 1.1rem; }
.bk-sum__rows { margin: 0; display: grid; gap: .55rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.bk-sum__rows div { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; }
.bk-sum__rows dt { color: var(--muted); }
.bk-sum__rows dd { margin: 0; font-weight: 600; text-align: right; }
.bk-sum__lines { display: grid; gap: .55rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.bk-sum__lines li, .bk-sum__x { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; }
.bk-sum__lines li strong, .bk-sum__x strong { font-weight: 600; white-space: nowrap; }
.bk-sum__extras { display: grid !important; gap: .45rem; }
.bk-sum__extras[hidden] { display: none !important; }
.bk-sum__x span { color: var(--muted); }
.bk-sum__total { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 0 .9rem; }
.bk-sum__total span { font-weight: 600; }
.bk-sum__total strong { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; }
.bk-sum__dep { display: flex; gap: .7rem; align-items: center; padding: .8rem .9rem; border-radius: 6px; background: var(--bg); font-size: .86rem; margin-bottom: 1.1rem; }
.bk-sum__dep .ico { color: var(--text); width: 1.7rem; height: 1.7rem; }
.bk-sum__dep small { display: block; color: var(--muted); font-size: .76rem; }
.bk-msg { font-size: .85rem; font-weight: 500; margin-bottom: .8rem; }
.bk-msg:empty { display: none; }
.bk-msg.is-err { color: var(--red); }
.bk-msg.is-ok { color: #1E8E4A; }
.bk-submit.is-loading span::after { content: "…"; }
.bk-sum__note { margin-top: .8rem; font-size: .76rem; color: var(--muted); text-align: center; line-height: 1.45; }
.bk-help { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.2rem; border-radius: 6px; background: var(--dark); color: #fff; }
.bk-help .ico { color: var(--red); width: 1.5rem; height: 1.5rem; }
.bk-help span { font-size: .82rem; color: rgba(255,255,255,.7); }
.bk-help strong { display: block; color: #fff; font-size: 1rem; }

/* =====================================================================
   Stav rezervácie / Ďakujeme
   ===================================================================== */
.st { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 1.6rem; align-items: start; }
.st__main { display: grid; gap: 1.25rem; min-width: 0; }
.st-card { padding: 1.7rem 1.8rem; }
.st-card__title { font-size: 1.25rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.st-hero { display: flex; gap: 1.3rem; align-items: flex-start; padding: 1.9rem 1.8rem; }
.st-hero__ico { flex: none; width: 3.4rem; height: 3.4rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #E7F6EC; color: #17663A; }
.st-hero__ico .ico { width: 1.8rem; height: 1.8rem; }
.st-hero h2 { font-size: 1.55rem; margin-bottom: .45rem; }
.st-hero p { color: var(--muted); }
.st-hero p strong { color: var(--text); }
.st-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .32rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 600; line-height: 1; color: #fff; background: var(--c, #6B7280); white-space: nowrap; }
.st-pill--soft { background: color-mix(in srgb, var(--c, #6B7280) 13%, #fff); color: var(--c, #6B7280); }
.st-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.4rem; margin: 0; }
.st-dl div { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.st-dl dt { font-size: .78rem; color: var(--muted); }
.st-dl dd { margin: 0; font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.st-lines { display: grid; gap: .5rem; }
.st-lines li { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; padding-bottom: .5rem; border-bottom: 1px dashed var(--line); }
.st-lines li.st-lines__total { border: 0; padding-top: .3rem; font-weight: 700; font-size: 1.05rem; }
.st-lines li.st-lines__total strong { font-family: var(--font-head); font-size: 1.5rem; }
.st-lines li.st-lines__dep { border: 0; color: var(--muted); font-size: .85rem; }
.st-pay { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.st-qr { width: 14.5rem; display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.st-qr__box { width: 14.5rem; height: 14.5rem; padding: .5rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; }
.st-qr__box svg { width: 100%; height: 100%; }
.st-qr__box .frpay-err { font-size: .8rem; color: var(--muted); text-align: center; }
.st-qr__cap { font-size: .75rem; color: var(--muted); text-align: center; }
.st-qr__logo { font-family: var(--font-head); font-weight: 800; font-size: .78rem; letter-spacing: .02em; }
.st-qr__logo span { color: var(--red); }
.st-bank { display: grid; gap: .6rem; margin: 0; }
.st-bank div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.st-bank dt { color: var(--muted); }
.st-bank dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.st-copy { margin-left: .4rem; font-size: .72rem; color: var(--red); font-weight: 600; text-decoration: underline; }
.st-note { margin-top: 1rem; padding: .85rem 1rem; border-radius: 6px; background: var(--bg); font-size: .86rem; color: var(--muted); }
.st-note--ok { background: #E7F6EC; color: #17663A; }
.st-note--warn { background: #FFF6E5; color: #8A5A00; }
.st-side { display: grid; gap: 1rem; position: sticky; top: calc(var(--hh, 5rem) + 1rem); }
.st-side .card { padding: 1.4rem 1.4rem; }
.st-side h3 { font-size: 1.05rem; margin-bottom: .8rem; }
.st-steps { display: grid; gap: .8rem; counter-reset: st; }
.st-steps li { display: flex; gap: .7rem; font-size: .86rem; color: var(--muted); counter-increment: st; }
.st-steps li::before { content: counter(st); flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--red-soft); color: var(--red); font-weight: 700; font-size: .75rem; display: inline-flex; align-items: center; justify-content: center; }
.st-steps li.is-done::before { content: "✓"; background: #E7F6EC; color: #17663A; }
.st-steps li strong { color: var(--text); display: block; font-weight: 600; }
.st-contact { display: grid; gap: .6rem; font-size: .9rem; }
.st-contact a { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.st-contact .ico { color: var(--red); width: 1.2rem; height: 1.2rem; }
.st-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.st-empty { padding: 3rem 2rem; text-align: center; }
.st-empty h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.st-empty p { color: var(--muted); margin-bottom: 1.4rem; }

/* =====================================================================
   Cenník
   ===================================================================== */
.pr-sec { padding: 3.2rem 0 1rem; background: var(--bg); }
.pr-sec + .pr-sec { padding-top: 1.6rem; }
.pr-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.pr-head .sec__lead { margin-top: .5rem; }
.pr-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.25rem; }
.pr-plan { position: relative; display: flex; flex-direction: column; padding: 1.8rem 1.5rem 1.5rem; border: 1px solid #EDEDEF; }
.pr-plan--hl { border-color: var(--red); box-shadow: 0 14px 34px rgba(227,26,37,.13); }
.pr-plan__badge { position: absolute; top: -.75rem; left: 1.5rem; }
.pr-plan__label { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; }
.pr-plan__sub { color: var(--muted); font-size: .9rem; margin-top: .15rem; }
.pr-plan__price { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; margin: 1rem 0 .1rem; line-height: 1; }
.pr-plan__per { font-size: .82rem; color: var(--muted); margin-bottom: 1.2rem; }
.pr-plan__list { display: grid; gap: .5rem; margin-bottom: 1.5rem; font-size: .88rem; }
.pr-plan__list li { display: flex; gap: .5rem; align-items: flex-start; }
.pr-plan__list .ico { width: 1.1rem; height: 1.1rem; color: var(--red); margin-top: .1rem; }
.pr-plan .btn { margin-top: auto; }
.pr-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.6rem; }
.pr-info__item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 1.4rem; }
.pr-info__item .ico { width: 2.1rem; height: 2.1rem; color: var(--text); flex: none; }
.pr-info__item strong { display: block; font-size: .98rem; margin-bottom: .25rem; }
.pr-info__item span { font-size: .85rem; color: var(--muted); line-height: 1.45; }
.pr-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.pr-extra { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.1rem; }
.pr-extra .bk-extra__img { flex: none; }
.pr-extra__body { flex: 1; min-width: 0; }
.pr-extra__body strong { display: block; font-size: .93rem; }
.pr-extra__body span { display: block; font-size: .8rem; color: var(--muted); margin-top: .15rem; line-height: 1.4; }
.pr-extra__price { font-family: var(--font-head); font-weight: 700; white-space: nowrap; }
.pr-sec__title { font-size: 1.5rem; margin-bottom: 1.2rem; }
.pr-cta { margin: 2.4rem 0 3rem; padding: 2rem 2.2rem; border-radius: 8px; background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; position: relative; overflow: hidden; isolation: isolate; }
.pr-cta::after { content: ""; position: absolute; right: 18%; top: -30%; bottom: -30%; width: 5rem; background: repeating-linear-gradient(90deg, var(--red) 0 1rem, transparent 1rem 1.9rem); transform: skewX(-24deg); opacity: .18; z-index: -1; }
.pr-cta h2 { color: #fff; font-size: 1.6rem; }
.pr-cta p { color: rgba(255,255,255,.75); margin-top: .35rem; }

/* =====================================================================
   Responzivita
   ===================================================================== */
@media (max-width: 1180px) {
  .bk { grid-template-columns: minmax(0, 1fr) 20rem; }
  .bk-term { grid-template-columns: 1fr; }
  .bk-cal { max-width: 26rem; }
}
@media (max-width: 980px) {
  .bk, .st { grid-template-columns: 1fr; }
  .bk__side, .st-side { position: static; }
  .bk-term { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bk-cal { max-width: none; }
  .pr-info { grid-template-columns: 1fr; }
  .bk-opts--3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .bk-term { grid-template-columns: 1fr; }
  .st-pay { grid-template-columns: 1fr; justify-items: center; }
  .st-pay > div:last-child { width: 100%; }
}
@media (max-width: 640px) {
  .bk-sec { padding: 1.4rem 0 3rem; }
  .bk-step { padding: 1.3rem 1.1rem 1.4rem; }
  .bk-step__title { font-size: 1.15rem; }
  .bk-opts--2, .bk-grid { grid-template-columns: 1fr; }
  .bk-cal { padding: .7rem .5rem .6rem; border: 0; margin-inline: -.3rem; }
  .bk-extra { grid-template-columns: 3.2rem minmax(0, 1fr); gap: .8rem; }
  .bk-extra__img { width: 3.2rem; height: 3.2rem; }
  .bk-qty { grid-column: 2; justify-self: start; }
  .bk-dates { grid-template-columns: 1fr 1fr; }
  .st-card, .st-hero { padding: 1.3rem 1.1rem; }
  .st-hero { flex-direction: column; gap: .9rem; }
  .st-dl { grid-template-columns: 1fr 1fr; }
  .pr-sec { padding-top: 2rem; }
  .pr-cta { padding: 1.5rem 1.3rem; }
}
@media print {
  .bk-help, .st-actions, .site-header, .site-footer { display: none !important; }
  .st { grid-template-columns: 1fr; }
}
