/* ================= INTERVIEW CALENDAR ================= */

.interview-calendar-container {
    margin: 20px 0;
    max-width: var(--assistant-message-max-width, 750px);
    width: 100%;
}

/* Карточка без overflow:hidden — не режет сетку.
   Без ширины — сжимается по контенту до показа времени. */
.interview-calendar {
    display: inline-flex;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
}

/* После выбора даты — растягивается на всю доступную ширину */
.interview-calendar.cal--expanded {
    display: flex;
    width: 100%;
}

/* ---- Левая колонка: сетка месяца ---- */

.cal-grid-section {
    padding: 28px 28px 24px;
}

/* Заголовок: название слева, стрелки справа */
.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cal-month-year {
    font-family: "Manrope", sans-serif;
    font-size: 1.15em;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.cal-nav-btns {
    display: flex;
    gap: 4px;
}

.cal-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #3F3FE6;
    font-size: 1.4em;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s;
    padding: 0;
}

.cal-nav-btn:hover:not(:disabled) {
    background: #f0f0ff;
}

.cal-nav-btn:disabled {
    opacity: 0.25;
    cursor: default;
}

/* Строка дней недели */
.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 40px);
    margin-bottom: 4px;
}

.cal-weekdays span {
    font-family: "Manrope", sans-serif;
    font-size: 0.75em;
    font-weight: 600;
    color: #b0b0b0;
    text-align: center;
    padding: 4px 0;
}

/* Сетка дней — фиксированные колонки, карточка сама подстраивается */
.cal-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 40px);
    row-gap: 2px;
}

.cal-day {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    font-family: "Manrope", sans-serif;
    font-size: 0.9em;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}

.cal-day--empty,
.cal-day--overflow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c8c8c8;
    pointer-events: none;
    font-family: "Manrope", sans-serif;
    font-size: 0.9em;
    font-weight: 400;
    background: transparent;
    border: none;
}

.cal-day:hover:not(:disabled):not(.cal-day--selected) {
    background: #eeeeff;
    color: #3F3FE6;
}

.cal-day--today:not(.cal-day--selected) {
    background: #eeeeff;
    color: #3F3FE6;
    font-weight: 700;
}

.cal-day--selected {
    background: #3F3FE6;
    color: #fff !important;
    font-weight: 700;
}

.cal-day--disabled {
    color: #c8c8c8;
    cursor: default;
}

/* ---- Правая колонка: время ---- */

.cal-time-section {
    flex: 1;
    flex-direction: column;
    padding: 28px 28px 24px;
    border-left: 1px solid #f0f0f0;
    min-width: 0;
}

/* display:none / flex задаётся инлайн через JS */

.cal-time-header {
    font-family: "Manrope", sans-serif;
    font-size: 1.15em;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.cal-time-slots {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    align-content: start;
}

.cal-time-slot {
    padding: 9px 6px;
    background: #f0f0ff;
    border: none;
    border-radius: 20px;
    font-family: "Manrope", sans-serif;
    font-size: 0.85em;
    font-weight: 600;
    color: #3F3FE6;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, color 0.15s, transform 0.1s;
    white-space: nowrap;
}

.cal-time-slot:hover:not(:disabled):not(.cal-time-slot--selected) {
    background: #dddeff;
    transform: translateY(-1px);
}

.cal-time-slot--selected {
    background: #3F3FE6;
    color: #fff;
    cursor: default;
}

.cal-time-slot--disabled,
.cal-time-slot:disabled {
    background: transparent;
    color: #c0c0c0;
    cursor: default;
}

/* Прошедшее время — чуть темнее "занятого", чтобы различались */
.cal-time-slot--past {
    color: #b0b0b0;
}

.cal-book-row {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.cal-book-btn {
    padding: 11px 28px;
    background: #3F3FE6;
    border: none;
    border-radius: 12px;
    font-family: "Manrope", sans-serif;
    font-size: 0.9em;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}

.cal-book-btn:hover:not(:disabled) {
    background: #3232c4;
}

.cal-book-btn:disabled {
    opacity: 0.35;
    cursor: default;
}
