/* ===== ОСНОВНЫЕ СТИЛИ МЕДИЦИНСКИХ ОТЗЫВОВ ===== */
.mr-reviews-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 30px 0;
}

/* ===== СЕТКА - ФОРМА И ОТЗЫВЫ РЯДОМ ===== */
.mr-reviews-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .mr-reviews-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===== ЛЕВАЯ КОЛОНКА: ФОРМА И СТАТИСТИКА ===== */
.mr-left-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ===== КАРТОЧКА СТАТИСТИКИ ===== */
.mr-stats {
    background: linear-gradient(135deg, #007c91 0%, #00acc1 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.mr-average-rating {
    margin-bottom: 15px;
}

.mr-average-number {
    font-size: 48px;
    font-weight: 700;
    display: block;
    line-height: 1;
    color: white;
}

.mr-average-text {
    font-size: 18px;
    opacity: 0.9;
}

.mr-total-reviews {
    font-size: 16px;
    opacity: 0.9;
}

/* ===== КАРТОЧКА ФОРМЫ (МЕДИЦИНСКИЙ СТИЛЬ) ===== */
.mr-review-form {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 107, 116, 0.08);
    border: 1px solid #e0f7fa;
    position: relative;
    overflow: hidden;
}

.mr-review-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007c91 0%, #00acc1 100%);
}

.mr-review-form h3 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    color: #006064;
    text-align: center;
}

.mr-review-form > p {
    text-align: center;
    color: #546e7a;
    margin-bottom: 25px;
    font-size: 16px;
}

/* ===== ФОРМА ===== */
#mr_review_form {
    space-y: 20px;
}

.mr-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .mr-form-row {
        grid-template-columns: 1fr;
    }
}

.mr-form-group {
    margin-bottom: 20px;
}

.mr-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #37474f;
    font-size: 15px;
}

.mr-form-group input,
.mr-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #b0bec5;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8fdff;
    box-sizing: border-box;
}

.mr-form-group input:focus,
.mr-form-group textarea:focus {
    outline: none;
    border-color: #007c91;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 124, 145, 0.1);
}

.mr-form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.5;
}

/* ===== ВИДЖЕТ РЕЙТИНГА ===== */
.mr-rating-input {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #f0f9ff;
    border-radius: 8px;
}

.mr-star {
    cursor: pointer;
    font-size: 28px;
    color: #cfd8dc;
    transition: all 0.2s ease;
    padding: 2px;
}

.mr-star:hover {
    color: #ffb74d;
    transform: scale(1.1);
}

.mr-star.active {
    color: #ff9800;
}

.mr-rating-hint {
    font-size: 13px;
    color: #607d8b;
    min-height: 18px;
    font-style: italic;
}

/* ===== КНОПКА ОТПРАВКИ ===== */
.mr-submit-btn {
    background: linear-gradient(135deg, #007c91 0%, #00acc1 100%);
    color: white;
    border: none;
    padding: 16px 35px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 180px;
    display: block;
    margin: 25px auto 0;
    box-shadow: 0 4px 12px rgba(0, 124, 145, 0.2);
}

.mr-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 145, 0.3);
}

.mr-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.mr-spinner {
    display: inline-block;
    margin-left: 12px;
}

.mr-spinner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    animation: mr-spinner 1.4s infinite ease-in-out both;
}

@keyframes mr-spinner {
    0%, 80%, 100% { 
        transform: scale(0); 
    }
    40% { 
        transform: scale(1.0); 
    }
}

.mr-form-notice {
    font-size: 13px;
    color: #78909c;
    margin-top: 12px;
    font-style: italic;
    text-align: center;
}

/* ===== ПРАВАЯ КОЛОНКА: СПИСОК ОТЗЫВОВ ===== */
.mr-reviews-list h3 {
    margin: 0 0 25px 0;
    font-size: 24px;
    font-weight: 600;
    color: #006064;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0f2f1;
}

/* ===== КАРТОЧКА ОТЗЫВА ===== */
.mr-review {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 124, 145, 0.08);
    border: 1px solid #e0f2f1;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
}

.mr-review:hover {
    box-shadow: 0 4px 20px rgba(0, 124, 145, 0.12);
    transform: translateY(-2px);
}

.mr-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f9fa;
}

.mr-reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mr-reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007c91 0%, #00acc1 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.mr-reviewer-info {
    display: flex;
    flex-direction: column;
}

.mr-reviewer-info strong {
    font-weight: 500;
    color: #006064;
    font-size: 16px;
}

.mr-reviewer-info span {
    font-size: 14px;
    color: #78909c;
}

.mr-review-rating {
    font-size: 20px;
    color: #ff9800;
}

.mr-review-content h4 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 500;
    color: #37474f;
}

.mr-review-content p {
    color: #546e7a;
    line-height: 1.6;
    font-size: 15px;
    margin: 0;
}

/* ===== СООБЩЕНИЯ И ОШИБКИ ===== */
#mr_message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #4caf50;
    font-size: 14px;
    display: none !important;
}

#mr_message.mr-message-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
    display: block !important;
}

#mr_message.mr-message-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
    display: block !important;
}

.mr-error {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .mr-review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .mr-review-rating {
        align-self: flex-start;
    }
    
    .mr-review-form,
    .mr-stats {
        padding: 20px;
    }
    
    .mr-review-form h3 {
        font-size: 24px;
    }
    
    .mr-review {
        padding: 20px;
    }
    
    .mr-reviewer-avatar {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .mr-rating-input {
        padding: 6px 10px;
    }
    
    .mr-star {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .mr-reviews-container {
        gap: 20px;
    }
    
    .mr-reviewer-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* ===== АНИМАЦИИ ===== */
@keyframes mr-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mr-review {
    animation: mr-fadeIn 0.5s ease-out;
}

#mr_message {
    animation: mr-fadeIn 0.3s ease-out;
}




/* ===== КНОПКИ ПАГИНАЦИИ ===== */
.mr-page-button {
    padding: 8px 14px;
    border: 1px solid #b0bec5;
    border-radius: 6px;
    color: #007c91;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    margin: 0 2px;
}

.mr-page-button:hover {
    background: #e0f7fa;
    border-color: #007c91;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 124, 145, 0.2);
}

.mr-page-button.active {
    background: linear-gradient(135deg, #007c91 0%, #00acc1 100%);
    color: white;
    border-color: #007c91;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 124, 145, 0.2);
}

.mr-page-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 145, 0.2);
}

.mr-page-button.loading {
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

/* ===== ЛОАДЕР ПРИ ЗАГРУЗКЕ ===== */
#mr-reviews-container.loading {
    position: relative;
    min-height: 200px;
    opacity: 0.6;
}

#mr-reviews-container.loading:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #e0f7fa;
    border-top: 3px solid #007c91;
    border-radius: 50%;
    animation: mr-spin 1s linear infinite;
    z-index: 10;
}

#mr-reviews-container.loading:after {
    content: 'Загрузка отзывов...';
    position: absolute;
    top: calc(50% + 30px);
    left: 50%;
    transform: translateX(-50%);
    color: #007c91;
    font-size: 14px;
    font-weight: 500;
}

@keyframes mr-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== ИНДИКАТОР ЗАГРУЗКИ ===== */
.mr-page-link .mr-spinner {
    display: inline-block;
    margin: 0;
}

.mr-page-link .mr-spinner-dot {
    width: 6px;
    height: 6px;
    background: #007c91;
}

/* ===== ОГРАНИЧЕНИЕ ВЫСОТЫ ДЛЯ ДЛИННЫХ ОТЗЫВОВ ===== */
.mr-review-content p {
    max-height: 150px;
    overflow: hidden;
    position: relative;
}

.mr-review-content p.expanded {
    max-height: none;
}

.mr-read-more {
    display: inline-block;
    margin-top: 10px;
    color: #007c91;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.mr-read-more:hover {
    text-decoration: underline;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ АВАТАРА ===== */
.mr-reviewer-avatar {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: bold;
}


.mr-pagination, .mr-form-group {
    text-align: center;
}






