/* ============================================
   com_reviews — чистое современное оформление
   ============================================ */

.reviews-list,
.reviews-form {
    max-width: 780px;
    margin: 0 auto;
    padding: 10px 15px 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2c3e2d;
    line-height: 1.55;
    box-sizing: border-box;
}

.reviews-list *,
.reviews-form * {
    box-sizing: border-box;
}

/* ---- Заголовок ---- */
.reviews-list .page-header,
.reviews-form .page-header {
    margin: 0 0 28px;
    padding: 0;
    border: none;
    text-align: center;
}

.reviews-list .page-header h1,
.reviews-form .page-header h1 {
    margin: 0;
    padding: 0 0 12px;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a5c1a;
    border-bottom: 3px solid #4caf50;
    display: inline-block;
}

/* ---- Кнопка «Оставить отзыв» ---- */
.reviews-list .reviews-actions {
    text-align: center;
    margin-bottom: 32px;
}

.reviews-list .reviews-actions .btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(180deg, #43a047 0%, #2e7d32 100%);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(46, 125, 50, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.reviews-list .reviews-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(46, 125, 50, 0.45);
    color: #fff !important;
    text-decoration: none;
}

/* ---- Карточки отзывов ---- */
.reviews-list .reviews-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reviews-list .review-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px 22px;
    border: 1px solid #e0ebe0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s;
}

.reviews-list .review-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.reviews-list .review-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 12px;
}

.reviews-list .review-author {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1b5e20;
}

.reviews-list .review-stars {
    color: #f9a825;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.reviews-list .review-stars .star.empty {
    color: #d0d8d0;
}

.reviews-list .review-date {
    margin-left: auto;
    font-size: 0.85rem;
    color: #7a8f7a;
}

.reviews-list .review-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2e4a2e;
}

.reviews-list .review-text {
    font-size: 0.95rem;
    color: #3d4f3d;
    line-height: 1.6;
}

/* ---- Пустой список ---- */
.reviews-list .alert-info {
    text-align: center;
    padding: 28px 20px;
    background: #f1f8f1;
    border: 1px dashed #a5d6a7;
    border-radius: 12px;
    color: #2e7d32;
    font-size: 1rem;
}

/* ---- Пагинация ---- */
.reviews-list .pagination {
    margin-top: 28px;
    text-align: center;
}

.reviews-list .pagination ul {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.reviews-list .pagination li a,
.reviews-list .pagination li span {
    display: block;
    min-width: 36px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
    text-decoration: none;
    font-size: 14px;
    background: #fff;
}

.reviews-list .pagination li.active span {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
}

.reviews-list .pagination li a:hover {
    background: #e8f5e9;
}

/* ============================================
   Форма «Оставить отзыв»
   ============================================ */

.reviews-form form {
    background: #fff;
    border: 1px solid #e0ebe0;
    border-radius: 14px;
    padding: 28px 28px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.reviews-form fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.reviews-form .control-group {
    margin-bottom: 20px;
}

.reviews-form .control-label {
    display: block;
    margin-bottom: 7px;
}

.reviews-form .control-label label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1b5e20;
    margin: 0;
}

.reviews-form .control-label label .star,
.reviews-form .control-label .required {
    color: #c62828;
}

/* Поля ввода */
.reviews-form .controls input[type="text"],
.reviews-form .controls input[type="email"],
.reviews-form .controls select,
.reviews-form .controls textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #2c3e2d;
    background: #fafcfa;
    border: 1.5px solid #c8e6c9;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.reviews-form .controls input::placeholder,
.reviews-form .controls textarea::placeholder {
    color: #9aaa9a;
}

.reviews-form .controls input:hover,
.reviews-form .controls select:hover,
.reviews-form .controls textarea:hover {
    border-color: #81c784;
    background: #fff;
}

.reviews-form .controls input:focus,
.reviews-form .controls select:focus,
.reviews-form .controls textarea:focus {
    outline: none;
    border-color: #43a047;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.18);
}

.reviews-form .controls textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
}

.reviews-form .controls select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232e7d32' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Кнопки формы */
.reviews-form .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid #e8f0e8;
}

.reviews-form .form-actions .btn-primary,
.reviews-form .form-actions button[type="submit"] {
    padding: 12px 28px;
    background: linear-gradient(180deg, #43a047 0%, #2e7d32 100%);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(46, 125, 50, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}

.reviews-form .form-actions .btn-primary:hover,
.reviews-form .form-actions button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(46, 125, 50, 0.4);
}

.reviews-form .form-actions .btn {
    padding: 12px 22px;
    background: #fff;
    color: #2e7d32 !important;
    font-size: 15px;
    font-weight: 500;
    border: 1.5px solid #a5d6a7;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.reviews-form .form-actions .btn:hover {
    background: #f1f8f1;
    border-color: #66bb6a;
    color: #1b5e20 !important;
    text-decoration: none;
}

/* ---- Мобильные ---- */
@media (max-width: 600px) {
    .reviews-list,
    .reviews-form {
        padding: 8px 10px 24px;
    }

    .reviews-list .page-header h1,
    .reviews-form .page-header h1 {
        font-size: 1.4rem;
    }

    .reviews-list .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .reviews-list .review-date {
        margin-left: 0;
    }

    .reviews-form form {
        padding: 20px 16px 18px;
    }

    .reviews-form .form-actions {
        flex-direction: column;
    }

    .reviews-form .form-actions .btn-primary,
    .reviews-form .form-actions button[type="submit"],
    .reviews-form .form-actions .btn {
        width: 100%;
        text-align: center;
    }
}


/* ---- Категория ---- */
.reviews-list .review-category {
    display: inline-block;
    padding: 2px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1b5e20;
    background: #e8f5e9;
    border-radius: 20px;
    border: 1px solid #c8e6c9;
}

/* ---- Согласие ---- */
.reviews-form .control-group-consent {
    margin-top: 8px;
    margin-bottom: 8px;
}

.reviews-form .consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%;
}

.reviews-form .consent-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #2e7d32;
    cursor: pointer;
}

.reviews-form .consent-row .consent-label,
.reviews-form .consent-row label {
    font-weight: 500 !important;
    color: #3d4f3d !important;
    font-size: 0.9rem !important;
    line-height: 1.4;
    margin: 0 !important;
    cursor: pointer;
}

.reviews-form .consent-row .consent-label a,
.reviews-form .consent-row label a {
    color: #2e7d32;
    text-decoration: underline;
}

.reviews-form .consent-row .consent-label a:hover,
.reviews-form .consent-row label a:hover {
    color: #1b5e20;
}

