/* VOS Calendar Picker - Dropdown overlay */
.vos-cal {
    width: 100%;
    position: relative;
}

/* Dropdown trigger bar - matches .modern-contact-form input exactly */
.vos-cal-trigger {
    width: 100%;
    padding: 15px;
    background: #e0dcd4;
    border: 1px solid rgba(224, 220, 212, 0.3);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    font-family: "Helvetica Neue", Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    -webkit-user-select: none;
    color: #000;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.vos-cal-trigger:hover {
    border-color: rgba(224, 220, 212, 0.5);
}

.vos-cal.open .vos-cal-trigger {
    border-color: #e0dcd4;
    box-shadow: 0 0 0 3px rgba(224, 220, 212, 0.1);
    border-radius: 8px 8px 0 0;
}

.vos-cal-trigger-text {
    flex: 1;
    color: #000;
    text-align: left;
}

.vos-cal-trigger-text.placeholder {
    color: #999;
    font-size: 13px;
    font-weight: 300;
}

.vos-cal-trigger-icon {
    font-size: 12px;
    color: #333;
    transition: transform 0.3s ease;
    margin-left: 12px;
}

.vos-cal.open .vos-cal-trigger-icon {
    transform: rotate(180deg);
}

/* Calendar panel - overlay */
.vos-cal-picker {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    z-index: 100;
    background: #e0dcd4;
    border: 1px solid rgba(224, 220, 212, 0.3);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 7px;
    display: none;
    max-height: 60vh;
    overflow-y: auto;
    box-sizing: border-box;
}

/* When picker should open upward (near bottom of viewport) */
.vos-cal.open-up .vos-cal-trigger {
    border-radius: 0 0 8px 8px;
}

.vos-cal.open-up .vos-cal-picker {
    top: auto;
    bottom: 100%;
    border-radius: 8px 8px 0 0;
    border-top: 1px solid rgba(224, 220, 212, 0.3);
    border-bottom: none;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
}

.vos-cal.open .vos-cal-picker {
    display: block;
    animation: vosCalFadeIn 0.15s ease;
}

/* Header: month/year + arrows */
.vos-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-left: 8px;
}

.vos-cal-month-year {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #000;
    font-family: 'VAA', Arial, "Helvetica Neue", Helvetica, sans-serif;
}

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

.vos-cal-nav button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: #000;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
    padding: 0;
    line-height: 1;
}

.vos-cal-nav button:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* Day-of-week headers */
.vos-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 6px;
}

.vos-cal-weekday {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #000;
    padding: 6px 0;
    letter-spacing: 0.5px;
    font-family: inherit;
}

/* Sunday header */
.vos-cal-weekday:last-child {
    color: #999;
}

/* Day grid */
.vos-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.vos-cal-day {
    text-align: center;
    padding: 0;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
    color: #000;
    border: none;
    background: none;
    font-family: inherit;
    line-height: 1;
    height: 32px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
}

.vos-cal-day:hover:not(.disabled):not(.empty) {
    background: rgba(0, 0, 0, 0.08);
}

.vos-cal-day.empty {
    cursor: default;
}

.vos-cal-day.disabled {
    color: #aaa;
    cursor: not-allowed;
    text-decoration: line-through;
}

.vos-cal-day.sunday {
    color: #aaa;
}

.vos-cal-day.today:not(.selected) {
    font-weight: 700;
    color: #000;
}

.vos-cal-day.today:not(.selected)::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #000;
    border-radius: 50%;
}

.vos-cal-day.selected {
    background: #000;
    color: #fff;
    font-weight: 600;
}

.vos-cal-day.selected:hover {
    background: #222;
}

/* Time slots section */
.vos-cal-time {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: none;
}

.vos-cal-time.visible {
    display: block;
    animation: vosCalFadeIn 0.25s ease;
}

.vos-cal-time-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 10px;
}

.vos-cal-time-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vos-cal-time-slot {
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #000;
    background: transparent;
    user-select: none;
    -webkit-user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vos-cal-time-slot:hover {
    background: rgba(0, 0, 0, 0.06);
}

.vos-cal-time-slot.selected {
    border-color: #000;
    background: #000;
    color: #fff;
}

.vos-cal-slot-label {
    font-weight: 600;
}

.vos-cal-slot-time {
    font-size: 13px;
    opacity: 0.7;
}

.vos-cal-time-slot.selected .vos-cal-slot-time {
    opacity: 0.85;
}

@keyframes vosCalFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 480px) {
    .vos-cal-picker {
        max-height: 85vh;
        z-index: 200;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    .vos-cal-day {
        font-size: 13px;
    }
}
