:root {
    --brand: #1a187c;
    --accent: #FFC107;
    --muted: #6c757d;
    --bg: #ffffff;
    --bg-soft: #f8f9fa;
    --border: rgba(0,0,0,.08);
    --shadow: 0 10px 25px rgba(0,0,0,.06);
    --shadow-2: 0 16px 40px rgba(0,0,0,.10);
    --radius: 16px;
    --radius-lg: 20px;
    --good-bg: rgba(25,135,84,.12);
    --good-fg: #0f5132;
    --info-bg: rgba(13,202,240,.16);
    --info-fg: #055160;
    --bad-bg: rgba(220,53,69,.14);
    --bad-fg: #842029;
}

/* =========================
   Reservation wrapper
   ========================= */
.reservation-section {
    width: 100%;
    max-width: 1100px;
    padding: clamp(14px, 2vw, 18px);
    margin: 20px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}


/* cards */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: var(--shadow);
}

/* step sections fill width */
#dateSelectionSection,
#rentalSelectionSection,
#infoSection {
    width: 100%;
}

/* =========================
   Step indicator
   ========================= */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.step-item {
    flex: 1;
    text-align: center;
    color: var(--muted);
    min-width: 90px;
}

    .step-item.active {
        color: var(--brand);
    }

.step-circle {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #e9ecef;
    display: grid;
    place-items: center;
    margin: 0 auto;
    font-weight: 900;
    transition: background-color .2s ease, transform .2s ease;
}

.step-item.active .step-circle {
    background: var(--brand);
    color: #fff;
    transform: scale(1.05);
}

.step-line {
    flex: 1;
    height: 3px;
    border-radius: 999px;
    background: #e9ecef;
}
/* =========================
   SPORT MODAL
   ========================= */
#sportPickerModal.custom-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sport-picker-modal {
    width: 100%;
    max-width: 800px;
    background: #fff;
    border-radius: 24px;
    padding: 28px 24px 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.sport-picker-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    color: #4b4b4b;
    text-align: center;
    margin-bottom: 8px;
}

.sport-picker-subtitle {
    font-size: 1.05rem;
    color: #6f6f6f;
    text-align: center;
    max-width: 520px;
    margin: 0 auto 24px;
    line-height: 1.5;
}

.sport-card-btn {
    width: 100%;
    min-height: fit-content;
    border: 1px solid #d9d9d9;
    border-radius: 22px;
    background: #fff;
    padding: 22px 10px;
    transition: all .2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 14px;
}

    .sport-card-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(0,0,0,.08);
        border-color: #1a187c;
    }

.sport-card-visual {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

    .sport-card-visual img {
        max-width: 120px;
        max-height: 90px;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
    }

.sport-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1a187c;
    line-height: 1.1;
    margin: 0;
}

.sport-card-desc {
    font-size: 0.98rem;
    line-height: 1.45;
    color: #666;
    max-width: 190px;
    min-width:170px;
    margin: 0 auto;
}

.sport-modal-close-wrap {
    text-align: center;
    margin-top: 22px;
}

.sport-modal-close-btn {
    min-width: 130px;
    border: none;
    background: #f3f3f3;
    color: #111;
    font-weight: 700;
    border-radius: 10px;
    padding: 12px 24px;
}

    .sport-modal-close-btn:hover {
        background: #e9e9e9;
    }

#selectedSportBadge {
    text-transform: capitalize;
    background-color: rgb(0, 0, 88);
}
/* =========================
   Calendar
   ========================= */
.calendar-compact {
    width: 100%;
    font-size: .85rem;
    border-collapse: collapse;
}

    .calendar-compact td,
    .calendar-compact th {
        padding: .20rem !important;
        border: 1px solid rgba(0,0,0,.05);
        text-align: center;
    }

    .calendar-compact .TitleStyle {
        font-size: .95rem;
        padding: .35rem !important;
    }

    .calendar-compact .DayHeaderStyle {
        font-size: .75rem;
        color: var(--muted);
        padding: .25rem !important;
    }

    .calendar-compact a {
        display: block;
        padding: .18rem 0;
        border-radius: 10px;
        text-decoration: none;
        color: #111;
        transition: background .15s ease;
    }

        .calendar-compact a:hover {
            background: rgba(26, 24, 124, .10);
        }

    .calendar-compact .SelectedDayStyle {
        background: var(--brand) !important;
        color: #fff !important;
        border-radius: 10px;
    }

/* legend */
.legend .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-right: 6px;
    vertical-align: middle;
}

.legend .selected {
    background: var(--brand);
}

.legend .booked {
    background: #f59f00;
}

.legend .unavailable {
    background: #ced4da;
}

/* =========================
   Timetable
   ========================= */
.timetable-shell {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: auto;
    max-height: 520px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.02);
}

/* smooth scroll on mobile */
.timetable-shell {
    -webkit-overflow-scrolling: touch;
}

.timetable {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .85rem;
}

    .timetable th,
    .timetable td {
        border-bottom: 1px solid rgba(0,0,0,.06);
        border-right: 1px solid rgba(0,0,0,.05);
        padding: 8px 10px;
        text-align: center;
        white-space: nowrap;
    }

        .timetable th:first-child,
        .timetable td:first-child {
            border-left: 1px solid rgba(0,0,0,.05);
        }

    .timetable thead th {
        position: sticky;
        top: 0;
        z-index: 3;
        background: #fff;
        box-shadow: 0 1px 0 rgba(0,0,0,.06);
    }

/* sticky time column */
.time-col {
    width: 100px;
    font-weight: 900;
    background: #fff;
    position: sticky;
    left: 0;
    z-index: 2;
}

.timetable tbody tr:nth-child(even) td {
    background: rgba(0,0,0,.015);
}

    .timetable tbody tr:nth-child(even) td.time-col {
        background: #fff;
    }

/* =========================
   Slot
   ========================= */
.slot {
    min-width: 80px;
    min-height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 600;
    letter-spacing: .2px;
    user-select: none;
    transition: transform .12s ease, filter .12s ease, outline-color .12s ease;
}

    .slot.reservable {
        background: var(--good-bg);
        color: var(--good-fg);
        cursor: pointer;
    }

        .slot.reservable:hover {
            filter: brightness(1.03);
            transform: translateY(-1px);
        }

    .slot.queue {
        background: var(--info-bg);
        color: var(--info-fg);
        cursor: not-allowed;
    }

    .slot.blocked {
        background: var(--bad-bg);
        color: var(--bad-fg);
        cursor: not-allowed;
        opacity: .92;
    }

    /* selection */
    .slot.selected {
        outline: 3px solid rgba(25,135,84,.85);
    }

    .slot.selected-range {
        outline: 2px solid rgba(25,135,84,.70);
        opacity: .92;
    }

    /* sport filter */
    .slot.sport-disabled.reservable {
        pointer-events: none;
        cursor: not-allowed;
        opacity: .35;
        filter: grayscale(1);
        background: rgba(0,0,0,.06) !important;
        color: #6c757d !important;
    }

    .slot.past {
        background: #fff !important;
        border: 1px solid #eee;
        min-height: 34px;
        cursor: default;
        pointer-events: none;
    }

/* =========================
   Summary + totals
   ========================= */
.summary-details p {
    margin-bottom: 8px;
    color: #666;
    font-size: .9rem;
}

.summary-text-muted {
    font-size: .85rem;
    color: #adb5bd;
    margin-bottom: 4px;
}

/* make players input look premium */
.player-input-wrapper {
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    color: var(--muted);
    background: #fff;
}

.total-price-display {
    text-align: right;
}

    .total-price-display .label {
        font-size: .9rem;
        color: #adb5bd;
    }

    .total-price-display .amount {
        font-size: 1.8rem;
        font-weight: 300;
        color: #222;
        overflow-wrap: anywhere;
    }

/* =========================
   Buttons
   ========================= */
.btn_proceed_details,
#btn_proceed_details,
#btn_proceed_rentals,
.btn_proceed_rentals {
    background: var(--accent);
    color: #111; /* accent is bright, black text looks cleaner */
    border: none;
    height:100%; 
    margin-top:0px;
    border-radius: 5px;
    font-weight: 900;
transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

    .btn_proceed_details:hover,
    #btn_proceed_rentals:hover {
        filter: brightness(1.03);
        transform: translateY(-1px);
     }

/* primary “Book Reservation” button */
.btn.btn-primary {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    font-weight: 900;
    border-radius: 5px;
width: 100%;
    height: 44px;
}

    .btn.btn-primary:hover {
        filter: brightness(1.03);
        transform: translateY(-1px);
    }


/* primary “Book Reservation” button */
.btn.btn-outline-secondary {
    background: #fff;
    color: #6c757d;
    border-color: #6c757d;
    height: 44px;
    font-weight: 900;
    border-radius: 5px;
    width: 100%;
    height: 44px;
}

    .btn.btn-outline-secondary:hover {
        background: #6c757d;
        border-color: #6c757d;
        color: #fff;
        filter: brightness(1.03);
        transform: translateY(-1px);
    }

/* =========================
   Form fields
   ========================= */
.form-floating-custom {
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,.10);
    margin-bottom: 20px;
}

.form-control-custom {
    border: none;
    border-radius: 0;
    padding: 18px 0 6px;
    width: 100%;
    outline: none;
    font-size: 1rem;
}

.form-label-custom {
    position: absolute;
    top: 0;
    left: 0;
    font-size: .85rem;
    color: var(--muted);
    transition: all .2s;
    pointer-events: none;
}

/* =========================
   Rentals + cart
   ========================= */
#equipmentContainer {
    row-gap: 14px;
}

.rental-card {
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: var(--shadow);
    padding: 22px 16px 16px;
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    position: relative;
    overflow: hidden;
}

    .rental-card:hover {
        transform: translateY(-4px);
        border-color: rgba(26, 24, 124, .25);
        box-shadow: var(--shadow-2);
    }

    .rental-card::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 5px;
        background: linear-gradient(90deg, var(--accent), var(--brand));
        opacity: .9;
    }

.rental-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.rental-title {
    font-weight: 900;
    font-size: 16px;
    color: #222;
    margin-top: 8px;
    margin-bottom: 2px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.rental-price {
    font-size: 13px;
    color: var(--muted);
}

.rental-stock {
    font-size: 13px;
    color: #222;
}

.rental-badge {
    display: inline-flex;
    margin-left: auto;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .3px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(26,24,124,.10);
    color: var(--brand);
}

    .rental-badge.low {
        background: #fff3e0;
        color: #b35c00;
    }

    .rental-badge.out {
        background: #f1f3f5;
        color: #adb5bd;
    }

.qty-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 120px;
    width: 120px;
    overflow: visible;
    border: 1px solid #ddd;
    border-radius: 14px;
    background: #fff;
}

    .qty-stepper button {
        width: 40px;
        height: 50px;
        border: none;
        background: transparent;
        font-size: 24px;
        font-weight: 700;
        cursor: pointer;
    }

        .qty-stepper button:hover {
            background: #f7f8f9;
        }

    .qty-stepper .qty-val {
        width: 40px;
        text-align: center;
        font-weight: 700;
        font-size: 24px;
        color: #111;
        border-left: 1px solid rgba(0,0,0,.12);
        border-right: 1px solid rgba(0,0,0,.12);
    }

.btn-add-rental {
    width: 100%;
    max-width: 220px;
    border: 0;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-weight: 900;
    padding: 10px 12px;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(26,24,124,.18);
    transition: transform .15s ease, filter .15s ease;
}

    .btn-add-rental:hover {
        filter: brightness(1.03);
        transform: translateY(-1px);
    }

    .btn-add-rental:disabled {
        background: #cfd4da;
        box-shadow: none;
        cursor: not-allowed;
    }

/* cart */
.cart-line {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0,0,0,.08);
}

    .cart-line:last-child {
        border-bottom: 0;
    }

.cart-name {
    font-weight: 900;
    color: #222;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.cart-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.cart-controls {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.cart-btn {
    width: 44px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid #9aa4af;
    background: #fff;
    font-weight: 900;
    cursor: pointer;
}

    .cart-btn:hover {
        background: #f7f8f9;
    }

.cart-x {
    width: 44px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid #ff2a2a;
    color: #ff2a2a;
    background: #fff;
    font-weight: 900;
    cursor: pointer;
}

    .cart-x:hover {
        background: rgba(255,42,42,.06);
    }

/* =========================
   Modal
   ========================= */
.custom-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    display: none;
}

.custom-modal-content {
    max-width: 420px;
    width: calc(100% - 28px);
    margin: 10vh auto;
    background: #fff;
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* =========================
   Responsive rules (important)
   ========================= */

/* tablets */
@media (max-width: 992px) {
    .reservation-section {
        max-width: 980px;
    }

    .total-price-display {
        text-align: left;
        margin-top: 10px;
    }

    .timetable-shell {
        max-height: 420px;
    }
}

/* phones */
@media (max-width: 768px) {
    .step-indicator {
        gap: 6px;
    }

    .step-line {
        display: none;
    }
    /* cleaner on mobile */
    .step-item {
        min-width: 0;
    }

    .reservation-section {
        padding: 12px;
    }
}

/* very small phones */
@media (max-width: 576px) {
    .slot {
        min-width: 60px;
        font-size: .60rem;
        border-radius: 10px;
    }

    .time-col {
        width: 86px;
        font-size: .60rem;
    }

    .timetable th, .timetable td {
        padding: 7px 8px;
    }

    .total-price-display .amount {
        font-size: 1.55rem;
    }

    .qty-stepper {
        grid-template-columns: 40px 40px 40px;
    }

        .qty-stepper button {
            height: 38px;
        }
}



/*payment modal*/
/* Payment summary modal (matches your brand/accent) */
.custom-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    display: none;
    padding: 12px;
}

.custom-modal-content {
    width: min(520px, 96vw);
    margin: 8vh auto;
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    border: 1px solid rgba(0,0,0,.06);
}