/* ============================================
   فرم دیدگاه ووکامرس - استایل کامل
   ============================================ */

/* کانتینر اصلی */
.wrf-wrapper {
    max-width: 100%;
    margin: 30px 0;
}

.wrf-container {
    background: #ffffff;
    padding: 30px 35px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8ecf4;
}

.wrf-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 5px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f2f7;
}

.wrf-product-info {
    margin: 5px 0 20px 0;
    padding: 10px 14px;
    background: #f7f9fc;
    border-radius: 8px;
    border-right: 4px solid #4a90d9;
}

.wrf-product-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a2332;
}

/* فرم */
.wrf-row {
    margin-bottom: 20px;
}

.wrf-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.wrf-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #1a2332;
    margin-bottom: 6px;
}

.wrf-required {
    color: #e74c3c;
    font-weight: 700;
}
.wrf-stars input{
	display: none !important;
}
.wrf-field input[type="text"],
.wrf-field input[type="email"],
.wrf-field textarea {
    width: 100%;
    padding: 11px 15px;
    border: 2px solid #e2e6ee;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafbfc;
    box-sizing: border-box;
    font-family: inherit;
}

.wrf-field input:focus,
.wrf-field textarea:focus {
    border-color: #4a90d9;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(74, 144, 217, 0.12);
}

.wrf-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* کاربر لاگین شده */
.wrf-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f7f9fc;
    border-radius: 10px;
    border: 1px solid #e8ecf4;
    margin-bottom: 20px;
}

.wrf-user-info img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.wrf-user-name {
    font-weight: 600;
    color: #1a2332;
}

.wrf-user-email {
    color: #7a8a9e;
    font-size: 13px;
}

/* ستاره‌ها */
.wrf-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    padding: 5px 0;
}

.wrf-stars input {
    display: none;
}

.wrf-stars label {
    font-size: 36px;
    color: #d0d7e6;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.15s ease;
    line-height: 1;
    padding: 0 3px;
}

.wrf-stars label:hover {
    transform: scale(1.1);
}

.wrf-stars label:hover,
.wrf-stars label:hover ~ label,
.wrf-stars input:checked ~ label {
    color: #f5b301;
}

.wrf-stars input:checked + label {
    color: #f5b301;
}

.wrf-rating-text {
    display: block;
    font-size: 13px;
    color: #7a8a9e;
    margin-top: 4px;
    min-height: 20px;
}

/* دکمه */
.wrf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 36px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wrf-btn-primary {
    background: #4a90d9;
    color: #ffffff;
}

.wrf-btn-primary:hover {
    background: #3a7bc8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 217, 0.3);
}

.wrf-btn-primary:active {
    transform: translateY(0);
}

.wrf-btn-primary:disabled {
    background: #b0c4de;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* لودر */
.wrf-loader {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
    color: #4a90d9;
    font-weight: 500;
}

.wrf-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e2e6ee;
    border-top: 3px solid #4a90d9;
    border-radius: 50%;
    animation: wrf-spin 0.8s linear infinite;
}

@keyframes wrf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* پیام‌ها */
.wrf-message {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 500;
    display: none;
}

.wrf-message.wrf-success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wrf-message.wrf-error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wrf-message.show {
    display: block;
}

.wrf-alert {
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 500;
}

.wrf-alert.wrf-error {
    background: #fde8e8;
    color: #c0392b;
    border-right: 4px solid #e74c3c;
}

/* واکنش‌گرایی */
@media (max-width: 600px) {
    .wrf-container {
        padding: 20px;
    }
    
    .wrf-row-2col {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .wrf-stars label {
        font-size: 30px;
    }
    
    .wrf-btn {
        width: 100%;
        padding: 14px;
    }
    
    .wrf-loader {
        display: block;
        margin: 10px 0 0 0;
        text-align: center;
    }
}

/* ============================================
   بخش لیست نظرات
   ============================================ */

.wrf-reviews-section {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid #f0f2f7;
}

.wrf-reviews-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 20px;
}

.wrf-review-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 15px;
    border: 1px solid #eef0f5;
    transition: all 0.3s ease;
}

.wrf-review-item:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-color: #dde1ea;
}

.wrf-review-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.wrf-review-author {
    font-weight: 700;
    color: #1a2332;
    font-size: 15px;
}

.wrf-review-phone {
    font-size: 13px;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 0 10px;
    border-radius: 20px;
    font-weight: 500;
}

.wrf-review-date {
    font-size: 12px;
    color: #8a9aa8;
    margin-right: auto;
}

.wrf-review-rating {
    margin: 4px 0 8px 0;
    font-size: 16px;
    letter-spacing: 2px;
}

.wrf-review-content {
    color: #2d3a4a;
    font-size: 14px;
    line-height: 1.8;
}

.wrf-review-content p {
    margin: 0;
}

.wrf-no-reviews {
    text-align: center;
    color: #8a9aa8;
    padding: 30px 0;
    font-size: 14px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px dashed #dde1ea;
}

/* واکنش‌گرایی برای لیست نظرات */
@media (max-width: 600px) {
    .wrf-review-item {
        padding: 15px;
    }
    
    .wrf-review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .wrf-review-date {
        margin-right: 0;
        font-size: 11px;
    }
}
/* ============================================
   بخش لیست نظرات با صفحه‌بندی
   ============================================ */

.wrf-reviews-section {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid #f0f2f7;
}

.wrf-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.wrf-reviews-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a2332;
    margin: 0;
}

.wrf-reviews-count {
    font-size: 14px;
    color: #7a8a9e;
    background: #f0f2f7;
    padding: 2px 12px;
    border-radius: 20px;
}

/* آیتم نظر */
.wrf-review-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 15px;
    border: 1px solid #eef0f5;
    transition: all 0.3s ease;
    animation: wrf-fade-in 0.4s ease;
}

@keyframes wrf-fade-in {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wrf-review-item:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-color: #dde1ea;
}

.wrf-review-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.wrf-review-author {
    font-weight: 700;
    color: #1a2332;
    font-size: 15px;
}

.wrf-review-phone {
    font-size: 13px;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 0 10px;
    border-radius: 20px;
    font-weight: 500;
}

.wrf-review-date {
    font-size: 12px;
    color: #8a9aa8;
    margin-right: auto;
}

.wrf-review-rating {
    margin: 4px 0 8px 0;
    font-size: 16px;
    letter-spacing: 2px;
}

.wrf-review-content {
    color: #2d3a4a;
    font-size: 14px;
    line-height: 1.8;
}

.wrf-review-content p {
    margin: 0;
}

/* پیام بدون نظر */
.wrf-no-reviews {
    text-align: center;
    color: #8a9aa8;
    padding: 30px 0;
    font-size: 14px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px dashed #dde1ea;
}

/* ============================================
   صفحه‌بندی
   ============================================ */

.wrf-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eef0f5;
}

.wrf-load-more-btn {
    background: #4a90d9;
    color: #ffffff;
    border: none;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wrf-load-more-btn:hover {
    background: #3a7bc8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 217, 0.3);
}

.wrf-load-more-btn:disabled {
    background: #b0c4de;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wrf-pagination-info {
    font-size: 13px;
    color: #7a8a9e;
}

/* ============================================
   واکنش‌گرایی
   ============================================ */

@media (max-width: 600px) {
    .wrf-reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wrf-review-item {
        padding: 15px;
    }
    
    .wrf-review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .wrf-review-date {
        margin-right: 0;
        font-size: 11px;
    }
    
    .wrf-pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .wrf-load-more-btn {
        width: 100%;
        padding: 12px;
    }
}