/**
 * BOOKING LAYOUT WRAPPER
 */
.booking-wrapper {
    display: flex;
    gap: 24px;
    background: #fff;
    padding: 10px;
    align-items: stretch;
}

.calendar-container,
.slots-container {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    background-color: #fff;
}

/**
 * LEFT SIDE: SQUARE CALENDAR
 */
.calendar-container {
    flex: 1;
    max-width: 400px;
    min-width: 380px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    aspect-ratio: 1 / 1;
}

.calendar-container .ant-picker-panel {
    display: flex;
    flex-direction: column;
    border: none;
    background: transparent;
}

/* FIX FOR ALIGNMENT: COLUMN HEADERS & DATES */
.calendar-container .ant-picker-content {
    width: 100% !important;
    table-layout: fixed !important;
    /* Force equal column widths */
    flex: 1;
    border-collapse: collapse;
}

/* Align Header (Su, Mo, Tu...) */
.calendar-container .ant-picker-content thead th {
    height: 40px !important;
    vertical-align: middle;
    text-align: center !important;
    /* Center the Su, Mo, Tu labels */
    color: #333 !important;
    font-weight: 500 !important;
    padding: 0 !important;
    font-size: 14px;
}

/* CELL SIZING & ALIGNMENT */
.calendar-container .ant-picker-cell {
    padding: 2px 0 !important;
    text-align: center !important;
    /* Ensure the cell container is centered */
}

.calendar-container .ant-picker-cell-inner {
    width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    margin: 0 auto !important;
    /* Centers the circle/square within the column */
    border-radius: 6px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* YEAR/MONTH VIEW GRID FIX */
.calendar-container .ant-picker-year-panel .ant-picker-content,
.calendar-container .ant-picker-month-panel .ant-picker-content {
    height: 100%;
}

.calendar-container .ant-picker-month-panel .ant-picker-cell-inner,
.calendar-container .ant-picker-year-panel .ant-picker-cell-inner {
    width: 80% !important;
    height: 45px !important;
    white-space: nowrap;
    margin: 0 auto !important;
}

/**
 * RIGHT SIDE: TIME SLOTS
 */
.slots-container {
    flex: 1.5;
    padding: 24px;
    overflow-y: auto;
}

.time-group {
    margin-bottom: 24px;
}

.time-group .section-subtitle {
    margin-bottom: 14px;
    font-weight: 600;
    color: #1a3673;
    font-size: 15px;
}

.slot-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.slot {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    background: #f0f2f5;
    border-radius: 8px;
    font-size: 13px;
    color: #595959;
    cursor: pointer;
}

.slot.empty {
    background: #fafafa;
    color: #d9d9d9;
    cursor: default;
}

/**
 * BRANDING & SELECTION (#1a3673)
 */
.calendar-container .ant-picker-cell-selected .ant-picker-cell-inner,
.slot.selected {
    background-color: #1a3673 !important;
    color: #ffffff !important;
}

.calendar-container .ant-picker-cell-today .ant-picker-cell-inner::before {
    border: 1px solid #1a3673 !important;
}

/* Header UI */
.custom-calendar-header {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-bottom: 15px;
}

.select-group {
    display: flex;
    gap: 4px;
}

.view-toggle-radio .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
    background-color: #1a3673 !important;
    color: #ffffff !important;
    border-color: #1a3673 !important;
}

/* ==========================================
   RESPONSIVE OVERRIDES
   ========================================== */
@media (max-width: 550px) {
    .booking-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .calendar-container {
        width: 100%;
        max-width: 100%;
        min-width: unset;
        aspect-ratio: auto;
    }

    .slots-container {
        padding: 10px;
        width: 100%;
        flex: none;
    }

    .slot-row {
        flex-wrap: wrap;
    }

    .slot {
        min-width: calc(33.33% - 8px);
        padding: 6px 0;
        border-radius: 6px;
    }

    .workshop-header {
        justify-content: center;
    }

    .workshop-header .step-line {
        width: 60px;
    }
}