.rdv-page {
    background: #f4f6fa;
}

.rdv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0;
}

.rdv-brand img {
    display: block;
    max-width: 220px;
    max-height: 72px;
    object-fit: contain;
}

.rdv-panel {
    background: #fff;
    border: 1px solid rgba(4, 32, 69, .08);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.rdv-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.rdv-planner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fafc;
}

.rdv-planner-panel {
    position: sticky;
    top: 24px;
}

.rdv-planner-profile {
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
}

.rdv-planner-panel .rdv-planner-photo {
    width: 112px;
    height: 112px;
    flex-basis: 112px;
}

.rdv-planner-name {
    color: #182230;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
}

.rdv-planner-name strong {
    font-weight: 700;
}

.rdv-planner-photo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 50%;
    object-fit: cover;
}

.rdv-planner-photo-placeholder {
    background: #e7f1ff;
    color: #206bc4;
    font-size: 24px;
}

.rdv-weekdays,
.rdv-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.rdv-weekdays {
    margin-bottom: 8px;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.rdv-day {
    position: relative;
    aspect-ratio: 1.45 / 1;
    min-height: 66px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    color: #182230;
    text-align: left;
    padding: 10px;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.rdv-day:hover {
    border-color: #206bc4;
    box-shadow: 0 8px 18px rgba(32, 107, 196, .12);
    transform: translateY(-1px);
}

.rdv-day.is-selected {
    border-color: #206bc4;
    background: #eef6ff;
    box-shadow: inset 0 0 0 1px #206bc4;
}

.rdv-day.is-disabled {
    background: #f8fafc;
    color: #98a2b3;
    cursor: not-allowed;
}

.rdv-day.is-disabled:hover {
    border-color: #dbe3ef;
    box-shadow: none;
    transform: none;
}

.rdv-day-date {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.rdv-day-number {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.rdv-day-month {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.rdv-day-note {
    display: block;
    margin-top: 8px;
    color: #206bc4;
    font-size: 11px;
    font-weight: 700;
}

.rdv-calendar-hint {
    margin-top: 14px;
}

.rdv-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.rdv-slot {
    min-height: 44px;
    justify-content: center;
}

.rdv-form-panel {
    position: sticky;
    top: 24px;
}

@media (max-width: 767.98px) {
    .rdv-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .rdv-panel {
        padding: 18px;
    }

    .rdv-planner-panel {
        position: static;
    }

    .rdv-planner-profile {
        align-items: center;
        display: flex;
        justify-items: initial;
        text-align: left;
    }

    .rdv-planner-panel .rdv-planner-photo {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
    }

    .rdv-weekdays,
    .rdv-calendar {
        gap: 6px;
    }

    .rdv-day {
        min-height: 54px;
        aspect-ratio: 1.1 / 1;
        padding: 7px;
    }

    .rdv-day-number {
        font-size: 15px;
    }

    .rdv-day-month {
        font-size: 10px;
    }

    .rdv-day-note {
        display: none;
    }

    .rdv-slot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rdv-form-panel {
        position: static;
    }
}
