/* Booking flow shared styles — used across all 6 step pages.
   Loaded via <link> w book/_layout.html.twig. */

.book-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 32px;
    max-width: 720px;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.book-card__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.book-card__sub {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 24px;
}

/* Radio "options" — duże klikalne karty zamiast standard radio */
.book-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
@media (max-width: 600px) {
    .book-options { grid-template-columns: 1fr; }
}
.book-option {
    display: flex;
    gap: 14px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    align-items: center;
}
.book-option:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.book-option[data-checked="true"] {
    border-color: #d81817;
    background: #fef2f2;
}
.book-option input { display: none; }
.book-option__icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(216, 24, 23, 0.12);
    color: #d81817;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.book-option__title {
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
}
.book-option__desc {
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
    line-height: 1.4;
}

/* Sub-options (input pól) */
.book-suboption {
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 12px;
}
.book-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.book-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}
.book-input:focus {
    outline: none;
    border-color: #d81817;
    box-shadow: 0 0 0 3px rgba(216, 24, 23, 0.15);
}

/* Date row — 2 picker'y obok siebie */
.book-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}
@media (max-width: 600px) {
    .book-date-row { grid-template-columns: 1fr; }
}
.book-date-info {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.book-date-info__icon {
    color: #d81817;
    font-size: 22px;
}
.book-date-info__text {
    color: #991b1b;
    font-size: 14px;
    font-weight: 500;
}
.book-date-info__text strong {
    font-size: 18px;
    font-weight: 700;
    color: #b91c1c;
}

/* Buttons */
.book-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}
.book-actions--right {
    justify-content: flex-end;
}
.book-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 0;
    transition: all 0.15s;
    text-decoration: none;
}
.book-btn--primary {
    background: #d81817;
    color: #fff;
}
.book-btn--primary:hover {
    background: #b01215;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(216, 24, 23, 0.3);
    text-decoration: none;
}
.book-btn--secondary {
    background: #f1f5f9;
    color: #475569;
}
.book-btn--secondary:hover {
    background: #e2e8f0;
    color: #475569;
    text-decoration: none;
}

/* Alerts */
.book-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
}
.book-alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.book-alert--info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}
.book-alert ul { margin: 0; padding-left: 18px; }

/* ─── Step 2: interactive calendar ─────────────────────────── */
.book-cal {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin: 0 0 18px;
}
.book-cal__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.book-cal__month {
    font-weight: 700;
    font-size: 16px;
    color: #0f172a;
}
.book-cal__nav {
    display: flex;
    gap: 6px;
}
.book-cal__nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    color: #475569;
    font-family: inherit;
    transition: all 0.12s;
}
.book-cal__nav-btn:hover:not(:disabled) {
    border-color: #cbd5e1;
    color: #0f172a;
    background: #f8fafc;
}
.book-cal__nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.book-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}
.book-cal__dow {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    padding: 6px 0;
    font-weight: 700;
}
.book-cal__day {
    aspect-ratio: 1 / 1;
    min-height: 40px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    background: transparent;
    border: 0;
    font-family: inherit;
    font-weight: 500;
    transition: background 0.12s, color 0.12s;
    padding: 0;
}
.book-cal__day:hover:not(:disabled):not(.book-cal__day--start):not(.book-cal__day--end) {
    background: #f1f5f9;
}
.book-cal__day--start,
.book-cal__day--end {
    background: #d81817;
    color: #fff;
    font-weight: 700;
}
.book-cal__day--range {
    background: rgba(216, 24, 23, 0.10);
    border-radius: 0;
    color: #0f172a;
}
.book-cal__day--disabled {
    color: #cbd5e1;
    cursor: not-allowed;
    background: transparent;
}
.book-cal__day--empty {
    visibility: hidden;
    cursor: default;
}

/* Date + time pickers row */
.book-time-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 0 0 14px;
}
@media (max-width: 600px) {
    .book-time-row { grid-template-columns: 1fr; }
}
.book-time-col { display: flex; flex-direction: column; }
.book-time-pair {
    display: flex;
    gap: 8px;
}
.book-time-pair__date {
    flex: 2;
    background: #f8fafc;
    color: #475569;
    cursor: default;
}
.book-time-pair__time {
    flex: 1;
    cursor: pointer;
    min-width: 80px;
}

.book-cal-duration {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin: 0 0 16px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
}
.book-cal-duration strong {
    color: #0f172a;
    font-weight: 700;
}

/* Cart summary panel */
.book-summary {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 18px;
    font-size: 13px;
    color: #475569;
    margin-bottom: 16px;
}
.book-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}
.book-summary__row strong { color: #0f172a; }

/* ─── Shared cart layout (Step 4 + Step 5) ─────────────────
   Wcześniej `.cart-grid` był defined inline w cart.html.twig — pay.html.twig
   używał tej samej klasy ale CSS nie applied → summary aside trafiał pod
   main column. Moved to shared żeby oba step'y miały spójny 2-col layout
   (main form po lewej, sticky summary card po prawej). */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}
@media (max-width: 800px) {
    .cart-grid { grid-template-columns: 1fr; }
}

.cart-summary-aside { position: sticky; top: 16px; }
.cart-summary-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    position: relative;
}
.cart-summary__title {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}
.cart-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}
.cart-summary__row--discount { color: #d97706; }
.cart-summary__row--total {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 0;
    padding-top: 14px;
    margin-top: 6px;
    border-top: 2px solid #0f172a;
}
.cart-summary__row--total span:last-child {
    color: #d81817;
    font-size: 22px;
    font-weight: 700;
}
.cart-summary__updating {
    display: none;
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    padding-top: 8px;
}
.cart-summary-card.is-updating .cart-summary__updating { display: block; }
