/* Broker Review Form Styles */
.broker-review-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.broker-review-form h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 3px solid #c6a969;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.review-form .form-group {
    margin-bottom: 1.5rem;
}

.review-form label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.review-form input[type="text"],
.review-form select,
.review-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.review-form input[type="text"]:focus,
.review-form select:focus,
.review-form textarea:focus {
    outline: none;
    border-color: #c6a969;
    box-shadow: 0 0 0 3px rgba(198, 169, 105, 0.1);
}

.review-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-review-btn {
    background: #c6a969;
    color: white;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-review-btn:hover,
.submit-review-btn:focus {
    background: #1d3142;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(29, 49, 66, 0.3);
    outline: none;
}

.submit-review-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

#review-form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    display: none;
}

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

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

/* Review Display Styles */
.broker-reviews-list {
    margin-top: 2rem;
}

.review-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    position: relative;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reviewer-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #c6a969;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.reviewer-details h4 {
    margin: 0;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.review-date {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.review-rating {
    font-size: 1.2rem;
}

.review-content {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

.review-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
}

.review-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.edit-review-btn {
    background: #3498db;
    color: white;
}

.edit-review-btn:hover {
    background: #2980b9;
}

.delete-review-btn {
    background: #e74c3c;
    color: white;
}

.delete-review-btn:hover {
    background: #c0392b;
}

/* Edit Review Modal */
.review-edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.review-edit-modal.active {
    display: flex;
}

.review-edit-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.review-edit-content h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #c6a969;
    padding-bottom: 0.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-actions button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.save-edit-btn {
    background: #c6a969;
    color: white;
}

.save-edit-btn:hover {
    background: #b39858;
}

.cancel-edit-btn {
    background: #95a5a6;
    color: white;
}

.cancel-edit-btn:hover {
    background: #7f8c8d;
}

/* No Reviews Message */
.no-reviews-message {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    color: #6c757d;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .broker-review-form {
        padding: 1.5rem;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .review-actions {
        flex-direction: column;
    }
    
    .review-actions button {
        width: 100%;
    }
}
