/* Visit Reservation - Frontend Styles */
.vr-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Calendar ──────────────────────────────── */
.vr-month-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.vr-month-label {
    font-size: 20px;
    font-weight: 600;
    text-transform: capitalize;
}

.vr-nav-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.2s;
}

.vr-nav-btn:hover {
    background: #f0f0f0;
}

.vr-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 15px;
}

.vr-cal-header {
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 0;
    color: #666;
    text-transform: uppercase;
}

.vr-cal-day {
    text-align: center;
    padding: 10px 4px;
    min-height: 50px;
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 14px;
    position: relative;
    transition: all 0.2s;
}

.vr-cal-day.vr-empty {
    border: none;
}

.vr-cal-day.vr-past {
    color: #ccc;
}

.vr-cal-day.vr-today {
    border-color: #2271b1;
}

.vr-cal-day.vr-available {
    cursor: pointer;
    background: #f0faf0;
    border-color: #46b450;
}

.vr-cal-day.vr-available:hover {
    background: #e0f5e0;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(70, 180, 80, 0.2);
}

.vr-cal-day.vr-few-spots {
    cursor: pointer;
    background: #fff8e1;
    border-color: #f0b849;
}

.vr-cal-day.vr-few-spots:hover {
    background: #fff3cd;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(240, 184, 73, 0.2);
}

.vr-cal-day .vr-day-number {
    font-weight: 600;
    display: block;
}

.vr-cal-day .vr-day-spots {
    font-size: 11px;
    color: #666;
    display: block;
    margin-top: 2px;
}

.vr-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #666;
}

.vr-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vr-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.vr-dot-available { background: #46b450; }
.vr-dot-few { background: #f0b849; }
.vr-dot-unavailable { background: #ccc; }

/* ── Slots Selection ───────────────────────── */
.vr-slots-section {
    margin-top: 25px;
}

.vr-slots-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.vr-slot-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.vr-slot-card:hover {
    border-color: #2271b1;
    background: #f5f9ff;
}

.vr-slot-card.selected {
    border-color: #2271b1;
    background: #e8f2fd;
}

.vr-slot-time {
    font-size: 18px;
    font-weight: 600;
}

.vr-slot-meta {
    text-align: right;
    font-size: 14px;
    color: #666;
}

.vr-slot-price {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

/* ── Booking Form ──────────────────────────── */
.vr-booking-section {
    margin-top: 25px;
}

.vr-booking-summary {
    background: #f5f9ff;
    border: 1px solid #d1e3f6;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.vr-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vr-form-row {
    display: flex;
    gap: 16px;
}

.vr-form-group {
    flex: 1;
}

.vr-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.vr-form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.vr-form-group input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

.vr-spots-control {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
}

.vr-spots-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.vr-spots-btn:hover {
    background: #e0e0e0;
}

.vr-spots-btn:first-child {
    border-radius: 6px 0 0 6px;
}

.vr-spots-btn:last-child {
    border-radius: 0 6px 6px 0;
}

.vr-spots-control input {
    width: 60px;
    text-align: center;
    border-left: none;
    border-right: none;
    border-radius: 0;
    height: 40px;
    box-sizing: border-box;
}

.vr-total-price {
    margin-top: 8px;
    font-size: 18px;
}

.vr-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

/* ── Buttons ───────────────────────────────── */
.vr-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.vr-btn-primary {
    background: #2271b1;
    color: #fff;
}

.vr-btn-primary:hover {
    background: #1a5a8e;
}

.vr-btn-primary:disabled {
    background: #9fc5e5;
    cursor: not-allowed;
}

.vr-btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.vr-btn-secondary:hover {
    background: #e0e0e0;
}

/* ── Confirmation ──────────────────────────── */
.vr-confirmation {
    text-align: center;
    padding: 30px 20px;
}

.vr-confirmation-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.vr-confirmation h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

/* ── Message Pages ─────────────────────────── */
.vr-message-page {
    text-align: center;
    padding: 40px 20px;
}

.vr-message-icon {
    font-size: 56px;
    margin-bottom: 15px;
}

.vr-message-icon.vr-success { color: #46b450; }
.vr-message-icon.vr-error { color: #dc3232; }
.vr-message-icon.vr-info { color: #2271b1; }

.vr-error-detail {
    color: #dc3232;
    background: #fef1f1;
    padding: 10px 15px;
    border-radius: 6px;
    display: inline-block;
}

.vr-booking-recap {
    text-align: left;
    max-width: 350px;
    margin: 20px auto 0;
    background: #f9f9f9;
    padding: 15px 20px;
    border-radius: 8px;
}

.vr-booking-recap ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 600px) {
    .vr-form-row {
        flex-direction: column;
    }

    .vr-month-nav {
        font-size: 14px;
    }

    .vr-month-label {
        font-size: 16px;
    }

    .vr-cal-day {
        padding: 6px 2px;
        min-height: 40px;
        font-size: 12px;
    }

    .vr-cal-day .vr-day-spots {
        font-size: 9px;
    }
}
