/* Calendly-style callback date/time picker */
.callback-scheduler {
    margin-top: 10px;
}

.callback-scheduler__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 14px;
    align-items: start;
}

.callback-scheduler__cal-panel,
.callback-scheduler__times-panel {
    border-radius: 14px;
    border: 1px solid rgba(201, 176, 106, 0.35);
    background: rgba(8, 20, 40, 0.55);
    padding: 12px;
}

.callback-scheduler__cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.callback-scheduler__month {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    text-align: center;
    text-transform: capitalize;
}

.callback-scheduler__nav {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.callback-scheduler__nav:hover {
    background: rgba(255, 255, 255, 0.12);
}

.callback-scheduler__weekdays,
.callback-scheduler__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.callback-scheduler__weekday {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(226, 232, 240, 0.55);
    padding: 4px 0;
}

.callback-scheduler__day {
    appearance: none;
    border: none;
    background: transparent;
    min-height: 36px;
    border-radius: 10px;
    font: inherit;
    font-size: 0.85rem;
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.callback-scheduler__day.is-empty {
    visibility: hidden;
}

.callback-scheduler__day.is-unavailable,
.callback-scheduler__day.is-past {
    color: rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.35);
    text-decoration: line-through;
    cursor: not-allowed;
}

.callback-scheduler__day.is-available {
    cursor: pointer;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #dcfce7;
}

.callback-scheduler__day.is-available:hover {
    background: rgba(34, 197, 94, 0.22);
}

.callback-scheduler__day.is-selected {
    background: linear-gradient(165deg, #c9b06a 0%, #a88642 100%);
    border-color: #e2d49a;
    color: #0a0e27;
    font-weight: 700;
}

.callback-scheduler__times-title {
    margin: 0 0 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #f8fafc;
}

.callback-scheduler__times {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 260px;
    overflow: auto;
}

.callback-scheduler__slot {
    appearance: none;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(14, 165, 233, 0.12);
    color: #e0f2fe;
    border-radius: 10px;
    padding: 10px 8px;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.callback-scheduler__slot:hover:not(:disabled) {
    background: rgba(14, 165, 233, 0.22);
}

.callback-scheduler__slot.is-selected {
    background: linear-gradient(165deg, #c9b06a 0%, #a88642 100%);
    border-color: #e2d49a;
    color: #0a0e27;
}

.callback-scheduler__slot.is-disabled,
.callback-scheduler__slot:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(100, 116, 139, 0.35);
    color: rgba(148, 163, 184, 0.7);
}

.callback-scheduler__empty {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.7);
    line-height: 1.4;
}

.form-field-group.form-validation-error .callback-scheduler__cal-panel,
.form-field-group.form-validation-error .callback-scheduler__times-panel,
.callback-scheduler.form-validation-error .callback-scheduler__cal-panel,
.callback-scheduler.form-validation-error .callback-scheduler__times-panel {
    border-color: rgba(248, 113, 113, 0.85);
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
}

@media (max-width: 720px) {
    .callback-scheduler__layout {
        grid-template-columns: 1fr;
    }

    .callback-scheduler__times {
        max-height: none;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
