/* ==========================================================================
   Czysta Forma — wypożyczalnia jako zakładka cennika (inc/rental_section.php, assets/js/rental.js)
   Korzysta ze zmiennych i klas z site.css (.field, .consent, .btn, .card, .eyebrow).
   ========================================================================== */

/* Tryb „wypożyczalnia” w kalkulatorze: bez etapów zamówienia i podsumowania usług */
.wizard.is-rent .wizard__progress, .wizard.is-rent .summary, .wizard.is-rent [data-svc-rows],
.wizard.is-rent [data-modes-block], .wizard.is-rent [data-zones-block] { display: none !important; }
.wizard.is-rent .wizard__body { grid-template-columns: minmax(0, 1fr); }
.wizard.is-rent .wizard__main { border-right: 0; padding-bottom: clamp(18px, 3vw, 36px); }
.cat-tab--rent .ico { color: var(--violet); }
.cat-tab--rent.is-active .ico { color: var(--violet-300); }

.rent { animation: rentIn .35s var(--ease); }
.rent__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); grid-template-areas: 'head book' 'details book'; gap: 0 clamp(24px, 4vw, 48px); align-items: start; }
.rent__head { grid-area: head; }
.rent__details { grid-area: details; }
.rent__book { grid-area: book; align-self: start; }
.rent__title { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 800; line-height: 1.2; text-wrap: balance; }
.rent__lead { margin: 10px 0 22px; font-size: 1rem; color: var(--muted); max-width: 620px; text-wrap: pretty; }

/* Zdjęcie sprzętu (assets/img/wypozyczalnia-puzzi.*) */
.rent__visual { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 22px 22px 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.rent__photo { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto; }
.rent__price { position: absolute; top: 18px; left: 18px; z-index: 1; display: flex; align-items: baseline; gap: 6px; padding: 10px 16px; border-radius: 16px; color: #fff; background: var(--grad); box-shadow: var(--glow); }
.rent__price b { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.rent__price span { font-size: .85rem; font-weight: 700; opacity: .85; }
.rent__model { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--ink-3); text-align: center; }
.rent__model .ico { color: var(--violet); }

.rent__details > .rent__subtitle:first-child { margin-top: 30px; }
.rent__subtitle { margin: 30px 0 12px; font-size: 1.05rem; font-weight: 800; }
.rent__list { display: grid; gap: 10px; }
.rent__list li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; }
.rent__list .ico { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--violet-100); color: var(--violet); stroke-width: 3; }
.rent__list--rules li { color: var(--muted); font-size: .95rem; }
.rent__list--rules .ico { background: var(--surface); border: 1px solid var(--line); stroke-width: 2.2; }
.rent__where { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: .95rem; }
.rent__where .ico { flex: none; color: var(--violet); }

/* Karta rezerwacji */
.rent__book { position: sticky; top: calc(var(--header-h) + var(--promo-h) + 20px); }
.rent__card { padding: clamp(18px, 3vw, 28px); border-radius: var(--radius-xl); background: linear-gradient(180deg, #FCFBFF, var(--violet-50)); border: 1px solid var(--line); }
.rent__card-title { font-size: 1.35rem; font-weight: 800; }
.rent__hint { margin-top: 6px; font-size: .92rem; color: var(--muted); }
.rent__alt { margin-top: 14px; text-align: center; font-size: .92rem; color: var(--muted); }
.rent__alt button { color: var(--violet); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Kalendarz zakresu dat */
.rcal { margin-top: 18px; }
.rcal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rcal__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; text-transform: capitalize; }
.rcal__nav { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); transition: .2s var(--ease); }
.rcal__nav:hover:not(:disabled) { border-color: var(--violet); color: var(--violet); }
.rcal__nav:disabled { opacity: .35; cursor: default; }
.rcal__nav .ico { width: 18px; height: 18px; }
.rcal__dow, .rcal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.rcal__dow { margin-bottom: 6px; text-align: center; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.rcal__grid { row-gap: 4px; min-height: 240px; }
.rcal__loading { grid-column: 1 / -1; align-self: center; text-align: center; color: var(--muted); font-size: .9rem; }
.rcal__day { position: relative; height: 44px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--ink); transition: background-color .15s, color .15s; -webkit-tap-highlight-color: transparent; }
.rcal__day::before { content: ''; position: absolute; inset: 2px; z-index: -1; border-radius: 12px; transition: .2s var(--ease); }
.rcal__day { isolation: isolate; }
.rcal__day:not(:disabled)::before { background: var(--surface); border: 1.5px solid var(--line); }
.rcal__day:not(:disabled):hover::before { border-color: var(--violet); }
.rcal__day:disabled { color: #C9C6D6; cursor: default; }
.rcal__day.is-full { color: #B5B1C6; text-decoration: line-through; }
.rcal__day.is-closed:not(.is-range) { color: #B5B1C6; }
.rcal__day.is-empty { visibility: hidden; }
.rcal__day.is-today::after { content: ''; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--violet-300); }
.rcal__day.is-range { color: var(--violet-600); }
.rcal__day.is-range::before { inset: 2px 0; border-radius: 0; background: var(--violet-100); border: 0; }
.rcal__day.is-start, .rcal__day.is-end { color: #fff; }
.rcal__day.is-start::before, .rcal__day.is-end::before { inset: 2px; border-radius: 12px; background: var(--grad); border: 0; box-shadow: var(--glow); }
.rcal__day.is-start.is-end::before { inset: 2px; }
.rcal__day.is-hover::before { background: var(--violet-100); border-color: transparent; }
.rcal__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: .8rem; color: var(--muted); }
.rcal__legend span { display: inline-flex; align-items: center; gap: 6px; }
.rlg { width: 12px; height: 12px; border-radius: 4px; }
.rlg--free { background: var(--violet-50); border: 1.5px solid var(--line); }
.rlg--full { background: #E8E5F3; }
.rlg--sel { background: var(--grad); }

/* Podsumowanie i formularz */
.rent__sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--violet-50); border: 1.5px solid var(--violet-100); animation: rentIn .35s var(--ease); }
.rent__sum-dates { display: flex; align-items: center; gap: 12px; }
.rent__sum-dates > .ico { width: 18px; height: 18px; color: var(--violet-400); }
.rent__sum-dates small, .rent__sum-price small, .rent__sum-price span { display: block; font-size: .78rem; font-weight: 700; color: var(--muted-2); }
.rent__sum-dates b { font-family: var(--font-display); font-size: 1rem; }
.rent__sum-price { text-align: right; }
.rent__sum-price b { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--violet); line-height: 1.15; }
.rent__fields { margin-top: 20px; animation: rentIn .4s var(--ease); }
.rent__submit { margin-top: 20px; }
.rent__card .field__error { margin-top: 10px; }
@keyframes rentIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.rent__done { text-align: center; padding: 10px 0; animation: rentIn .4s var(--ease); }
.rent__done-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #22C38A, #16A36A); box-shadow: 0 12px 30px -10px rgba(22, 163, 106, .6); }
.rent__done-icon .ico { width: 30px; height: 30px; stroke-width: 3; }
.rent__done p { margin-top: 8px; }
.rent__done-period { font-weight: 700; }
.rent__done .btn { margin-top: 18px; }

@media (max-width: 1024px) {
    .rent__grid { grid-template-columns: 1fr; grid-template-areas: 'head' 'book' 'details'; }
    .rent__book { position: static; max-width: 620px; width: 100%; margin: 22px auto 0; }
    .rent__lead { margin-bottom: 16px; font-size: .95rem; }
    .rent__photo { max-width: 300px; }
}
@media (max-width: 480px) {
    .rent__visual { padding: 60px 12px 12px; }
    .rent__photo { max-width: 240px; }
    .rent__card { padding: 16px 12px; }
    .rent__price { top: 14px; left: 14px; padding: 8px 14px; }
    .rent__price b { font-size: 1.35rem; }
    .rcal__day { height: 40px; font-size: .9rem; }
    .rent__sum { flex-direction: column; align-items: stretch; }
    .rent__sum-price { text-align: left; }
}
