﻿/* ===================================================================
       ATV SEATING COUNTERS
       =================================================================== */
.atv-counter {
    background: #f4f4f5;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    padding: 4px;
}

.atv-counter button {
    border: none;
    background: transparent;
    width: 32px;
    height: 32px;
    font-weight: bold;
    color: #52525b;
    transition: all 0.15s;
}

    .atv-counter button:hover {
        background: #e4e4e7;
        border-radius: 6px;
    }

.atv-counter input {
    width: 40px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 600;
    padding: 0;
    color: #18181b;
}

    .atv-counter input:focus {
        outline: none;
        box-shadow: none;
    }

/* ===================================================================
       CAL.COM-STYLE CALENDAR  (FullCalendar v6 overrides)
       =================================================================== */
#fullcalendar-container {
    --cal-red: #dc3545;
}

    #fullcalendar-container .fc {
        font-family: inherit;
    }

        /* Kill every gridline / table border the bootstrap5 theme adds */
        #fullcalendar-container .fc-scrollgrid,
        #fullcalendar-container .fc-scrollgrid td,
        #fullcalendar-container .fc-scrollgrid th,
        #fullcalendar-container .fc-theme-standard td,
        #fullcalendar-container .fc-theme-standard th,
        #fullcalendar-container .fc table,
        #fullcalendar-container .fc td,
        #fullcalendar-container .fc th {
            border: none !important;
            background: transparent !important;
        }

    /* Header: "June 2026"  +  prev/next chevrons on the right */
    #fullcalendar-container .fc-header-toolbar {
        margin-bottom: 1.25rem;
        align-items: center;
    }

    #fullcalendar-container .fc-toolbar-title {
        font-size: 1.25rem;
        font-weight: 700;
        color: #18181b;
    }

    #fullcalendar-container .fc-title-year {
        color: #a1a1aa;
        font-weight: 600;
        margin-left: .3rem;
    }

    #fullcalendar-container .fc-button,
    #fullcalendar-container .fc-button-primary {
        background: transparent !important;
        border: none !important;
        color: #52525b !important;
        box-shadow: none !important;
        width: 34px;
        height: 34px;
        padding: 0 !important;
        border-radius: 8px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

        #fullcalendar-container .fc-button:hover {
            background: #f4f4f5 !important;
            color: #18181b !important;
        }

        #fullcalendar-container .fc-button:focus,
        #fullcalendar-container .fc-button:active {
            box-shadow: none !important;
            outline: none !important;
        }

        #fullcalendar-container .fc-button:disabled {
            opacity: .3;
            background: transparent !important;
        }

        #fullcalendar-container .fc-button i,
        #fullcalendar-container .fc-button .fc-icon {
            font-size: 1rem;
        }

    #fullcalendar-container .fc-button-group {
        gap: 4px;
    }

    /* Weekday header row */
    #fullcalendar-container .fc-col-header-cell {
        padding: .35rem 0 .75rem;
    }

    #fullcalendar-container .fc-col-header-cell-cushion {
        text-transform: uppercase;
        font-size: .68rem;
        letter-spacing: .07em;
        font-weight: 600;
        color: #71717a;
        text-decoration: none !important;
        padding: 0;
    }

    /* Day cells -> centered rounded squares, no event bars / background fills */
    #fullcalendar-container .fc-daygrid-day-events,
    #fullcalendar-container .fc-daygrid-day-bg,
    #fullcalendar-container .fc-daygrid-event-harness,
    #fullcalendar-container .fc-bg-event {
        display: none !important;
    }

    #fullcalendar-container .fc-daygrid-day-frame {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        margin: 3px;
        border-radius: 10px;
        transition: background .15s ease;
    }

    #fullcalendar-container .fc-daygrid-day-top {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        opacity: 1;
    }

    #fullcalendar-container .fc-daygrid-day-number {
        padding: 0;
        color: #18181b;
        font-size: .95rem;
        font-weight: 500;
        text-decoration: none !important;
    }

    /* Selectable days (today + future) */
    #fullcalendar-container .fc-day-future .fc-daygrid-day-frame,
    #fullcalendar-container .fc-day-today .fc-daygrid-day-frame {
        background: #f4f4f5;
        cursor: pointer;
    }

    #fullcalendar-container .fc-day-future:hover .fc-daygrid-day-frame,
    #fullcalendar-container .fc-day-today:hover .fc-daygrid-day-frame {
        background: #e4e4e7;
    }

    /* Past / out-of-range days: visible but clearly greyed out (NOT removed) */
    #fullcalendar-container .fc-day-past .fc-daygrid-day-frame,
    #fullcalendar-container .fc-day-disabled .fc-daygrid-day-frame {
        background: transparent !important;
        cursor: default;
    }

    #fullcalendar-container .fc-day-past .fc-daygrid-day-number,
    #fullcalendar-container .fc-day-disabled .fc-daygrid-day-number {
        color: #c2c2cc;
    }

    /* Empty other-month cells (showNonCurrentDates is off) — keep them blank */
    #fullcalendar-container .fc-day-other .fc-daygrid-day-frame {
        background: transparent !important;
        cursor: default;
    }

    #fullcalendar-container .fc-day-other .fc-daygrid-day-top {
        display: none;
    }

    /* Today indicator dot + neutralise FullCalendar's default yellow today bg */
    #fullcalendar-container .fc .fc-daygrid-day.fc-day-today {
        background: transparent !important;
    }

    #fullcalendar-container .fc-day-today .fc-daygrid-day-frame::after {
        content: "";
        position: absolute;
        bottom: 6px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--cal-red);
    }

    /* Selected day -> solid red */
    #fullcalendar-container .fc-day-selected .fc-daygrid-day-frame {
        background: var(--cal-red) !important;
    }

    #fullcalendar-container .fc-day-selected .fc-daygrid-day-number {
        color: #fff !important;
        font-weight: 600;
    }

    #fullcalendar-container .fc-day-selected .fc-daygrid-day-frame::after {
        background: #fff;
    }

/* ===================================================================
       RIGHT PANEL — selected date header, 12h/24h toggle, slot cards
       =================================================================== */
.cal-day-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #18181b;
}

.time-format-toggle {
    display: inline-flex;
    background: #f4f4f5;
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
}

    .time-format-toggle .tf-btn {
        border: none;
        background: transparent;
        cursor: pointer;
        font-size: .78rem;
        font-weight: 600;
        color: #71717a;
        padding: .25rem .65rem;
        border-radius: 6px;
        transition: all .15s ease;
    }

        .time-format-toggle .tf-btn.active {
            background: #fff;
            color: #18181b;
            box-shadow: 0 1px 2px rgba(0,0,0,.08);
        }

#time-slots-wrapper {
    min-height: 200px;
}

.slot-btn {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #e4e4e7;
    background: #D1D1D1;
    padding: .85rem 1rem !important;
    text-align: center !important;
    transition: all .15s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1.5px 2px rgba(0,0,0,0.09);
}

    .slot-btn:hover {
        border-color: var(--cal-red);
        transform: translateY(-1px);
        box-shadow: 0 4px 14px rgba(220,53,69,.10);
    }

    .slot-btn .slot-time {
        font-weight: 700;
        color: #18181b;
        font-size: 1rem;
    }

    .slot-btn .slot-seats {
        font-size: .78rem;
        margin-top: 2px;
    }

        .slot-btn .slot-seats.text-success {
            color: #198754 !important;
            font-weight: 500;
        }

/* ===================================================================
       STEP 2 — booking form
       =================================================================== */
#step-2-form {
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#step-2-form .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #212529;
    margin-bottom: 0.5rem;
}

#step-2-form .form-control,
#step-2-form .form-select {
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

    #step-2-form .form-control:focus,
    #step-2-form .form-select:focus {
        border-color: #dc3545;
        box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
        outline: none;
    }

#btn-back {
    font-weight: 600;
    font-size: 0.95rem;
    color: #6c757d;
    transition: color 0.2s ease;
}

    #btn-back:hover {
        color: #212529;
    }

#step-2-form button[type="submit"] {
    border-radius: 50px;
    padding: 0.6rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
    transition: all 0.2s ease;
}

    #step-2-form button[type="submit"]:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(220, 53, 69, 0.3);
    }

/* intl-tel-input fills the field width */
.iti {
    width: 100%;
}

.iti__country-list {
    z-index: 1000;
}

/* Calendar mobile fix */
@@media (max-width: 767.98px) {
    .border-start {
        border-left: none !important;
        border-top: 1px solid #eaeaea !important;
        padding-top: 2rem !important;
        margin-top: 1.5rem !important;
    }
}
