:root {
    --accent: #c60010;
    --accent-dark: #1f221d;
    --accent-white: #ffff;

    --hs-primary: var(--accent);
    --hs-primary-hover: var(--accent-dark);
    --hs-bg-card: #f3f3f3;

    --primary-color: var(--accent);
    --border-radius: 8px;
}

body {
    background-color: #f5f5f5;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* NAVBAR / STEPS */

.navbar-brand img {
    height: 36px;
}

.step-indicator {
    font-size: 0.85rem;
}

.step-indicator .badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.35rem;
}

.step-indicator .step-label {
    font-weight: 500;
}

.reservation-nav-actions {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.reservation-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.34rem 0.62rem !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.04em !important;
    text-transform: none !important;
    line-height: 1.1;
    border-width: 1px !important;
    box-shadow: none !important;
    min-height: 30px;
}

.reservation-nav-btn i {
    font-size: 0.88rem;
}

/* KARTY / SEKCJE */

.card-soft {
    background-color: var(--hs-bg-card);
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hs-primary);
}

.activity-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    background-color: #fee2e2;
    color: #b91c1c;
    border-radius: 999px;
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6b7280;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

/* PRZYCISKI – GLOBALNE */

.btn {
    background-color: var(--primary-color);
    border: 2px var(--primary-color) solid;
    color: var(--accent-white);
    padding: 0.75em 1.5em;
    border-radius: var(--border-radius);
    display: inline-block;
    font-size: 13px;
    letter-spacing: 0.25px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.15s ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.btn:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--accent-white);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.btn:active {
    transform: translateY(1px) scale(0.97);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* warianty */

.btn-outline-secondary {
    background-color: transparent;
    color: #374151;
    border-color: #d1d5db;
    box-shadow: none;
}

.btn-outline-secondary:hover {
    background-color: var(--accent-dark);
    color: var(--accent-white);
    border-color: var(--accent-dark);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.btn-link {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    color: #6b7280;
    text-transform: none;
    font-weight: 400;
}

.btn-link:hover {
    background: transparent;
    color: #111827;
    transform: none;
    box-shadow: none;
}

/* DROBNE ELEMENTY */

.badge-info-soft {
    background-color: #fee2e2;
    color: var(--accent-dark);
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    border: 1px solid #fecaca;
    background-color: #fef2f2;
    color: #b91c1c;
    font-size: 0.7rem;
    margin-right: 0.25rem;
}

.timeline-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 0.45rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #fecaca;
    border-left: 4px solid #c60010;
    border-radius: 0.65rem;
    background: #fff;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-step__label {
    color: #374151;
    padding-right: 0.7rem;
}

.timeline-step__amount {
    color: #1f221d;
    font-size: 0.95rem;
}

.payment-timeline {
    border: 1px solid #fee2e2;
    border-radius: 0.75rem;
    background: #fff9f9;
    padding: 0.7rem;
}

.option-item {
    border-radius: 0.9rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e5e7eb;
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    background-color: #ffffff;
    margin-bottom: 0.5rem;
}

.option-price {
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.9rem;
}

.options-selected-preview {
    min-height: 2.25rem;
    padding: 0.45rem 0.6rem;
    border: 1px dashed #d1d5db;
    border-radius: 0.55rem;
    background: #f9fafb;
    line-height: 1.35;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background-color: #fee2e2;
    color: #b91c1c;
    font-size: 0.7rem;
    margin-left: 0.3rem;
}

.pill-soft {
    background-color: #e5e7eb;
    color: #4b5563;
}

.qty-input {
    width: 64px;
}

.side-card-sticky {
    position: sticky;
    top: 88px;
}

.installment-choice {
    min-width: 72px;
}

.installment-choice.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.child-block {
    background-color: #ffffff;
}

.offering-summary-card__image {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 0.65rem;
    border: 1px solid #e5e7eb;
}

.offering-summary-card__media {
    position: relative;
}

.offering-summary-card__media-chip {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.75);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
}

.offering-summary-card__meta-icon {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.offering-summary-card__meta-icon i {
    color: var(--accent);
}

.offering-summary-card__promo-badge {
    margin-top: 0.35rem;
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #fee2e2;
    color: #c60010;
    border: 1px solid #fecaca;
    font-size: 0.75rem;
    font-weight: 600;
}

.offering-summary-card__price-current {
    font-weight: 800;
    color: #c60010;
    font-size: 1.02em;
}

.offering-summary-card__includes {
    border: 1px solid #fecaca;
    background: #fff;
    border-radius: 0.6rem;
    padding: 0.55rem 0.65rem;
}

.offering-summary-card__includes-title {
    display: block;
    color: #1f221d;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.offering-summary-card__includes-content {
    color: #374151;
    font-size: 0.78rem;
    line-height: 1.35;
    white-space: pre-line;
}

.offering-summary-card__details-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 0.55rem;
    border: 1px solid #c60010;
    background: #fff;
    color: #c60010;
    font-weight: 700;
    padding: 0.45rem 0.6rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.offering-summary-card__details-link:hover {
    background: #c60010;
    color: #fff;
}

/* overlay ładowania między krokami */

.loading-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.28);
    z-index: 2000;
    backdrop-filter: blur(2px);
}

.loading-box {
    background: #ffffff;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.35);
}

.spinner-border-accent {
    color: var(--primary-color);
    width: 1.4rem;
    height: 1.4rem;
}

/* CHECKBOX wymagany – czerwony przy błędzie */

.form-check-input.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 0.15rem rgba(220, 38, 38, 0.35);
}

.form-check-input.is-invalid + .form-check-label {
    color: #dc2626;
    font-weight: 500;
}

/* ZGODY – spójny wygląd i kolory */

#agreementsSection .form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

#agreementsSection .form-check + .form-check {
    margin-top: 0.35rem;
}

#agreementsSection .form-check-input {
    margin: 0.2rem 0 0 0;
    float: none;
    flex-shrink: 0;
    border-color: #9ca3af;
}

#agreementsSection .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

#agreementsSection .form-check-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
}

#agreementsSection .form-check-label {
    color: #111827 !important;
    line-height: 1.45;
}

#agreementsSection .form-check-label a {
    color: #c60010;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(198, 0, 16, 0.35);
}

#agreementsSection .form-check-label a:hover {
    color: var(--accent-dark);
    border-bottom-color: rgba(31, 34, 29, 0.35);
}

.security-note {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin-top: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid #86efac;
    background: #ecfdf3;
    color: #166534;
}

.security-note i {
    margin-top: 0.05rem;
}

/* MODALE – ikony success/warning */

.modal-icon-wrapper {
    text-align: center;
    margin-bottom: 0.75rem;
}

.modal-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(198, 0, 16, 0.08);
    color: #c60010;
    border: 2px solid #c60010;
}

.modal-icon-circle i {
    font-size: 1.6rem;
}

/* Logo w modalach */

.modal-logo-img {
    height: 32px;
}

/* RWD */

@media (max-width: 991.98px) {
    .side-card-sticky {
        position: static;
        margin-top: 0;
    }
}

@media (max-width: 767.98px) {
    .navbar .container-xxl {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    .navbar-brand {
        margin-right: 0;
    }

    .navbar-brand img {
        height: 30px;
    }

    main.container-xxl {
        padding-inline: 1rem;
    }

    .card-soft {
        padding: 1.25rem !important;
    }

    .step-indicator {
        margin-left: auto !important;
        margin-top: 0 !important;
        width: auto;
        display: flex !important;
        align-items: center;
        gap: 0.35rem;
    }

    /* Na mobile ukrywamy pasek krokow i zostawiamy tylko akcje Panel/Wyloguj */
    .step-indicator > .d-flex.align-items-center:not(.reservation-nav-actions) {
        display: none !important;
    }

    .reservation-nav-actions {
        justify-content: flex-end;
        width: auto;
        margin-top: 0;
        margin-left: 0 !important;
        gap: 0.3rem;
        flex-wrap: nowrap;
    }

    .reservation-nav-actions form {
        margin: 0 !important;
    }

    .reservation-nav-btn {
        padding: 0.38rem 0.72rem !important;
        font-size: 0.74rem !important;
        min-height: 32px;
    }

    .reservation-nav-btn i {
        font-size: 0.92rem;
    }

    .step-indicator .bi-chevron-right {
        display: none !important;
    }

    .activity-chip {
        margin-top: 0.6rem;
    }
}
